V
Vinod
Hi All,
Can any one help me to resolve in connection error issue with SQL Server 2005?
I'm using the following code to execute a stored procedure in SQL Server
2005 from Access 2003. Where the connection string does not include 'DSN'
name. The same code was working couple of days back but not now. When I look
at the server name it is matching with existed one and I'm able to execute
the stored procedure in SQL Server test database.
Some times I'm getting err.Number = -2147217900 and 3151.
Set qdfPass = CurrentDb.QueryDefs("qryPass")
'//Create connection string to qrypass
qdfPass.Connect = "ODBC;DRIVER={SQL
Server};SERVER=PERSONAL-4B2728\SQLEXPRESS;DATABASE=test;Trusted_Connection"
'//Update qrypass sql statement
qdfPass.SQL = "exec Restore_DB"
CurrentProject.Connection.Execute "qryPass"
Set qdfPass = Nothing
Please help me in resolving above said issue by sharing your thoughts and
ideas which could be appreciated.
Advanced Thanks
Vinod
Can any one help me to resolve in connection error issue with SQL Server 2005?
I'm using the following code to execute a stored procedure in SQL Server
2005 from Access 2003. Where the connection string does not include 'DSN'
name. The same code was working couple of days back but not now. When I look
at the server name it is matching with existed one and I'm able to execute
the stored procedure in SQL Server test database.
Some times I'm getting err.Number = -2147217900 and 3151.
Set qdfPass = CurrentDb.QueryDefs("qryPass")
'//Create connection string to qrypass
qdfPass.Connect = "ODBC;DRIVER={SQL
Server};SERVER=PERSONAL-4B2728\SQLEXPRESS;DATABASE=test;Trusted_Connection"
'//Update qrypass sql statement
qdfPass.SQL = "exec Restore_DB"
CurrentProject.Connection.Execute "qryPass"
Set qdfPass = Nothing
Please help me in resolving above said issue by sharing your thoughts and
ideas which could be appreciated.
Advanced Thanks
Vinod