I have learned more. Sadly, the problem does not seem to be limited to my Windows 7 x64 machine. I have tried this application on two different XP machine and have received the exact same error message. This is particularly baffling since the
exact same application ran perfectly 12 months ago.
Here is the relevant VBA code:
Script:
Dim cn As ADODB.Connection
Dim cmd As ADODB.Command
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
cn.ConnectionString = "Driver={SQL Native Client};Server=<ip_address>;Database=<db>;Uid=<uid>;Pwd=<pwd>"
cn.CursorLocation = adUseClient
cn.Open
Set cmd = New ADODB.Command
Set cmd.ActiveConnection = cn
cmd.CommandText = "sp_name"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Append cmd.CreateParameter("@Param", adChar, adParamInput, 25, "Value")
Set rs = cmd.Execute
I have also determined that the problem occurs before any data is transmitted to the remote server.
Since the application did not change - the date stamp on the .doc file is last August - I do not know what to look for in order to resolve the problem. Can anyone please suggest an approach?