Hi Friends .. need a small help can anyone help me in showing how to call a stored procedure which returns a recordset .. yea i need to pass one parameter also for getting that required data .. thanks in advance..
Sameer
Hi Sameer,
If you are using VB6 then u need to use Command object.
Please see the below example
Dim mobjConn As ADODB.Connection
Dim mobjCmd As ADODB.Command
Dim mobjRst As ADODB.Recordset
Set mobjCmd = New ADODB.Command
mobjCmd.CommandType = adCmdStoredProc
mobjCmd.Parameters.Append mobjCmd.CreateParameter("<Param Name> ", <Param Datatype>, <Param Type>, ,<Value>)
mobjCmd.CommandText = strSPName
mobjCmd.Execute
Please let me know if you have any issues
Mahesh B Sayani