Accessing SQL 6.5 Stored procedures thru VB4.0 
Author Message
 Accessing SQL 6.5 Stored procedures thru VB4.0

I am sorry, newbie question.

I have a stored procedure in a SQL 6.5 database. I am designing in VB
4.0.   What is the most efficient way to execute it and route its output
to a text box?

Thanks in advance.

CMN



Tue, 24 Aug 1999 03:00:00 GMT  
 Accessing SQL 6.5 Stored procedures thru VB4.0

Basicaly just call it

Dim MyRs as Recordset
Dim Mydb as database

Set Mydb=dbengine.workspaces.OpenDatabase(DSN,False,false,ConnectStr)
Set MyRs=MyDb.OpenRecordset("sp_test",dbSQLPasstrough)

Dim fld1 as field
Dim fld2 as field
Dim fld3 as field

If MyRs.EOF then
        Msgbox "The procedure sp_test did not return any lines"
Else
        fld1=MyRs(0)
        fld2=MyRs(1)
        fld3=MyRs(2)
Endif
...



Wed, 25 Aug 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Return value from stored procedure in SQL 6.5 to VB4 to a 16 bits client

2. Return a value from stored procedure in SQL 6.5 to VB4 to a 16 bits client

3. Passing parameters from Excel to SQL 6.5 stored procedures

4. Stored Procedures with VB5/SQL Server 6.5

5. executing SQL Server 6.5 stored procedure using VB 5

6. SQL 6.5 stored procedure - parameter not returning

7. S10008 Error From SQL Server 6.5 Running VB 5.0 Stored Procedures

8. sending parameters from VB 6 to SQL 6.5 stored procedure

9. ADO and SQL 6.5 sp_droplogin Stored procedure

10. VB 5.0 & Stored Procedure (SQL Server 6.5)

11. Passing parameters from Excel to SQL 6.5 stored procedures

12. SQL 6.5 Records via Stored Procedures

 

 
Powered by phpBB® Forum Software