如何连接数据库

问题描述:

我是数据库编程方面的一把手.最近我在此文件中遇到了一个问题.我的数据库软件是MS Acess2007,我的SDK是VS2007.所以我如何使用ADO.i连接数据库,我尝试过: br/>

i am a green hand in database programming.Recently i have a problem in this filed.my database software is MS Acess2007 and my SDK is VS2007.so how can i connect the database using ADO.i have tried:

m_pConnection->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=GPSInfo.mdb","","",adModeUnknown);


但是它不起作用,因为它已在ACESS2000中使用.如何设置连接字符串??


but it''s not work because it was used in ACESS2000.How to set the connecting string??