connection string with DSN

flynn

Well-known member
Joined
Jul 28, 2005
Messages
58
I have an Access database that can be opened with the following connection string:
Code:
conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Databases\GFM.mdb;User Id=admin;Password=;")

I have created a System DSN that points to this database. Question is: Can I use the DSN in the connection string instead of hard coding the full path name?

tia,
flynn
 
Back
Top