S
smk23
I would like to return a recordset using a command object:
Set mCmd = New ADODB.Command
With mCmd
.ActiveConnection = mConn
.CommandText = brSelectCommandText
.CommandType = adcmdStoredProc
Set mrst = New ADODB.Recordset
Set mrst = .Execute
When I run this, it returns the error "syntax error or access violation" on
the Execute line. The connection is checked prior to this and confirmed open.
When I run the text in .CommandText from Query Analyzer (SQL server 2000),
there is no problem (returns the recordset). WHat can I do now to find the
error?
Sam
Set mCmd = New ADODB.Command
With mCmd
.ActiveConnection = mConn
.CommandText = brSelectCommandText
.CommandType = adcmdStoredProc
Set mrst = New ADODB.Recordset
Set mrst = .Execute
When I run this, it returns the error "syntax error or access violation" on
the Execute line. The connection is checked prior to this and confirmed open.
When I run the text in .CommandText from Query Analyzer (SQL server 2000),
there is no problem (returns the recordset). WHat can I do now to find the
error?
Sam