Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working with sqlbulkOperations, I got one code from msdn but i have to change database to .mdb how do i do that,

For instance i want to pass database name as c:\test\test.mdb instead of NorthWind here.
C++
retcode = SQLConnect(hdbc, (SQLCHAR*) "Northwind", SQL_NTS, (SQLCHAR*) NULL, 0, NULL, 0);

http://msdn.microsoft.com/en-us/library/windows/desktop/ms712471(v=vs.85).aspx[^]

This is the link where code is in msdn.

Thank You,
Posted
Updated 29-Aug-12 0:50am
v2

1 solution

Run odbcad32.exe and add your database as a DSN, and use the name you provide for the DSN, in your code.

Connecting with SQLConnect[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900