BennyLinton
Registered User.
- Local time
- Yesterday, 21:32
- Joined
- Feb 21, 2014
- Messages
- 263
I have a SQL Server stored procedure I'm calling from VBA and need to know how to make sure it is working by returning a simple record count. Any ideas? If I run the query from SQL Server it returns a record count:
Code:
Private Sub Form_Load()
Dim cmd As ADODB.Command
Set cmd = New ADODB.Command
cmd.ActiveConnection = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=GCDF_DB;Data Source=BADLANDS"
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "UpdateStatus"
cmd.Execute
End Sub