Receiving error msg when attempting to invoke a SQL Stored Procedure, from Access form, using a hard-coded UserID: Dom1\SQLDBA (domain\userid)
INVALID CONNECTION STRING ATTRIBUTE
Login failed for userid: Dom1\SQLDBA. Reason: Not associated w/ a trusted SQL Server conection.
--> (fyi, Dom1\SQLDBA is sysadm on the box)
here's the code:
strConnect = "ODBC" & "DSN= " & lsDev & _
";DRIVER=SQL Server" & _
";UID=" & "Dom1\SQLDBA" & _
";PWD=" & "pQrStUv" & _
";DATABASE=" & "DB_Prod" & _
";SERVER=" & "ProdServer1" & _
";LOGINTIMEOUT=50000" & _
";ODBCTimeout = 50000"
this next set of code (w/out a Userid/Pwd) works fine:
strConnect = "ODBC" & "DSN= " & lsDev & _
";DRIVER=SQL Server" & _
";UID=" & _
";PWD=" & _
";DATABASE=" & "DB_Prod" & _
";SERVER=" & "ProdServer1" & _
";LOGINTIMEOUT=50000" & _
";ODBCTimeout = 50000"
INVALID CONNECTION STRING ATTRIBUTE
Login failed for userid: Dom1\SQLDBA. Reason: Not associated w/ a trusted SQL Server conection.
--> (fyi, Dom1\SQLDBA is sysadm on the box)
here's the code:
strConnect = "ODBC" & "DSN= " & lsDev & _
";DRIVER=SQL Server" & _
";UID=" & "Dom1\SQLDBA" & _
";PWD=" & "pQrStUv" & _
";DATABASE=" & "DB_Prod" & _
";SERVER=" & "ProdServer1" & _
";LOGINTIMEOUT=50000" & _
";ODBCTimeout = 50000"
this next set of code (w/out a Userid/Pwd) works fine:
strConnect = "ODBC" & "DSN= " & lsDev & _
";DRIVER=SQL Server" & _
";UID=" & _
";PWD=" & _
";DATABASE=" & "DB_Prod" & _
";SERVER=" & "ProdServer1" & _
";LOGINTIMEOUT=50000" & _
";ODBCTimeout = 50000"