connect to sql
"Andre" wrote in message
...
At first, yes. But the error persists even after installing the latest
version of MDAC.
I have the same problem which I cannot resolve, what drivers do I need ?
Sub Testing()
Dim cmdCommand As New ADODB.Command
Dim recSet As New ADODB.Recordset
Dim cn As New ADODB.Connection
cn.ConnectionString =
"Server=dimension9150;Database=IPS;Trusted_Connect ion=True"
cn.Open
cmdCommand.ActiveConnection = cn
cmdCommand.CommandText = "GetMonitors"
cmdCommand.CommandType = adCmdStoredProc
Set recSet = cmdCommand.Execute
Debug.Print recSet(0)
recSet.Close
End Sub
|