|
|
Question : ADO connection string
|
|
I have an Excel application with an ADO database connection. The connection string is:
"DSN=LIVE_TRICS;DATABASE=" & sTRICSdbName & ";UID=eod_fe;PWD=design2"
My application will be used by several users, each of whom has a differently named DSN, so I need to replace "DSN=LIVE_TRICS" with the specific server details. I need some guidance on what information to take from the ODBC data source administrator (Control Panel/Administrative Tools) and the syntax of the string.
|
Answer : ADO connection string
|
|
I think what you are looking for is here:
http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForMicrosoftJet
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\somepath\mydb.mdb;" & _ "Jet OLEDB:Database Password=MyDbPassword", _ "myUsername", "myPassword"
Leon
|
|
|
|