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

Creating DSN

Status
Not open for further replies.

143Aroul

Programmer
Jul 17, 2003
16
FJ
I have done a project in vb6/msaccess/crystall report 8.5.
for the reporting i created ODBC DSN. This normally i suggest the user to goto control panel and select the ODBC ,create a system DSN like that.

But i would like to automise this task like when i install the software the DSN automatically created and the same for when i install the DSN should remove.

anyone can suggest?

Regards
Aroul
 
Aroul,

You can use the SQLConfigDataSource routine found in odbccp32.dll. As to where you should use this function you could do it from an InstallShield routine, or from your application the first time it runs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top