Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
With rst
.CursorLocation = adUseClient
.Open cmd, , adOpenStatic, adLockReadOnly, adCmdStoredProc
End With
End With
Use the above method if your stored procedure returns a resultset.
For non-resultset returning stored Procedure,(eg. INSERT query) you may use
Execute method of command object to execute the procedure.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.