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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I create a DSN entry in ODBC at runtime ic C++ Builder?

Status
Not open for further replies.

BuilderSpec

Programmer
Joined
Dec 24, 2003
Messages
383
Location
GB
Hi all

Been trying for ages and searching but can't seem to find an answer...

Is there a way that programatically at runtime I can add a DSN entry to the ODBC table. I supply software that is database orientated and hate having to do the ODBC setuo manually before I can run the program.

Any ideas please ?

BuilderSpec
 
try to use SQLConfigDataSource/SQLCreateDataSource

Ion Filipski
1c.bmp
 
Thanks for help...however...

Do you know how I would specify the params ?

Database is Access db called C:\db.mdb no logon required.

Have included odbcinst.h to project to get the SQL call but now won't link ?

 
I think you can find that information on the help. It makes no sence me to copy/paste the help in the forum.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top