Hello, I was hoping someone could help me with a SQL connection issue I'm having. I'm trying to automate a database that will run on a server without having to input my password everytime it needs to run...I'm trying to use the SQL Driver connection string:
I'm not able to get the above info to work in my code:
When my query executes, it still prompts me for my password. Any help would be greatly appreciated.
Thanks for your help.
Code:
Driver={SQLServer};Server=[server name];Database=[DB name];Uid=[ID];Pwd=[Password];
Code:
Dim SQLSvr As String
Dim db As DAO.Database
Dim rf As TableDef
Set db = CurrentDb
Driver={SQLServer};Server=[server name];Database=[DB name];Uid=[ID];Pwd=[Password];
DoCmd.OpenQuery "MyQuery"
End Sub
When my query executes, it still prompts me for my password. Any help would be greatly appreciated.
Thanks for your help.