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

CONNECTION_STRING

Status
Not open for further replies.

dwlerwill

Technical User
May 25, 2001
329
0
0
Hi All

I'm doing a program for work where some PC's have the old 3.51 OLEDB drivers. At the moment I have to have 2 exe files one for 4.0 and 1 for 3.51. What is the best way of fixing this so I can have one exe. Not sure how you can check when program loads and find out which drivers are on the PC.

Hope this is clear

David Lerwill
"If at first you don't succeed go to the pub"
 
Not the mopst elegant solution but you could place both conection string within your code strating with the newest first cheching for an error if no erro then continu else open up the connection using the older version
 
hi David,

Take a look at thread705-730665
It is for fixing broken references. You might use that to determine, wether OLEDB 4.0 or only 3.51 are available.

Good luck,
Andy

[blue]The last voice we will hear before the world explodes will be that of an expert saying:
"This is technically impossible!" - Sir Peter Ustinov[/blue]
HP:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top