-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Arun Raj.C
Message 1 in Discussion

Hi

I had created the following procedure, which returns three recordsets,
with different columns,

CREATE PROCEDURE gesp_FetchThreeRecs
As
Begin
 SELECT * FROM vw_ViewA
 SELECT * FROM vw_ViewB
 SELECT * FROM vw_ViewC
End

I want to access the three recordset in three different ADODB.Recordset
object
The VB code is as follows:

Dim conLocal As ADODB.Connection
Dim rsLocal1 As ADODB.Recordset
Dim rsLocal2 As ADODB.Recordset
Dim rsLocal3 As ADODB.Recordset
Dim cmdLocal As ADODB.Command

Private Sub Form_Load()

'gesp_FetchThreeRecs

    Set conLocal = New ADODB.Connection
    Set rsLocal1 = New ADODB.Recordset
    Set rsLocal2 = New ADODB.Recordset
    Set rsLocal3 = New ADODB.Recordset
    Set cmdLocal = New ADODB.Command

    conLocal.Open "Provider=sqloledb;Data Source=DATABASE;Initial
Catalog=DATABASE;Integrated Security=SSPI;"

    cmdLocal.ActiveConnection = conLocal
    cmdLocal.CommandText = "gesp_FetchThreeRecs"
    cmdLocal.CommandType = adCmdStoredProc
    Set rsLocal1 = cmdLocal.Execute
    End Sub


Is there any way to access and manipulate the three recordset returned
from the procedure, Currently I am able to access the first recordset
only

Regards

Arun Raj.C



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to