Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert database in ODBC

Status
Not open for further replies.

scienzia

Programmer
Feb 21, 2002
160
IT
Is it possible to make an application that inserts an Access database in the ODBC so that users don't have to do it manually?
 
Yep, I am pretty sure the API call is SQLConfigDataSource with ODBC_ADD_DSN

Matt
 
It is the right function, but it gives me 2 errors..

SQLConfigDataSource: undeclared identifier
ODBC_ADD_DSN : undeclared identifier

I put in my project the headers that were in the MSDN page, but it doesn't work anyway.

Could you please explain me how to use this function?
 
I belive you need to include

#include <sql.h>
#include <odbcinst.h>

(not sure about case)

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top