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

DSNless Connection String 1

Status
Not open for further replies.

lbunch

Programmer
Sep 5, 2006
120
0
0
US

I am using a standard connection like this for DSNless connection is SQL Server. I am still always prompted for Username and password. When I look at the table and connection string - it does reference ODBC; driver....etc. I believe if I took ODBC off of the string I received a diferent type of error.

Right now I am getting a 2800 error - I believe...

oConn.Open "Driver={SQL Server};" & _
"Server=MyServerName;" & _
"Database=myDatabaseName;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
 
My connection string is OK - I and I have check everything
I do not understand why I am being prompted for Trusted and needing me to input username and password when it is in my string...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top