executing stored procedures from VB3.0/SQL Server 6.0 
Author Message
 executing stored procedures from VB3.0/SQL Server 6.0

Hi All,

When I try to create a dynaset with the SQL string "EXEC joe" where "joe"
is the stored procedure, it gives me an error. Anyone know how to execute
stored procedures from Visual Basic?

Cheers,
Dan



Wed, 24 Mar 1999 03:00:00 GMT  
 executing stored procedures from VB3.0/SQL Server 6.0

If I remember correctly (which I may not), VB3 does not allow you to
create snapshots or dynasets from stored procedures... VB4 only allows
you to create snapshots, so VB3 certainly does not allow creation of
dynasets...

Quote:

> Hi All,

> When I try to create a dynaset with the SQL string "EXEC joe" where "joe"
> is the stored procedure, it gives me an error. Anyone know how to execute
> stored procedures from visual basic?

> Cheers,
> Dan

--
Karl Costenbader, President
Competent Consulting
Sacramento, CA

Home Page: http://www.competent.com


Wed, 24 Mar 1999 03:00:00 GMT  
 executing stored procedures from VB3.0/SQL Server 6.0

Unfortunately, you didn't mention which SQL server you are using nor which
error message exactly appeared.

If you simply want to execute a stored procedure which
_does_not_return_a_resultset_, you may use the EXECUTE method of your
database object.

If you are using a SQL server and the stored procedure _does_ return a
resultset, you need to specify the dbSQLPassThrough value as option
parameter when running CreateDynaset (dbSQLPassThrough has the numeric
value 64, e.g. &H40).

My wishes are with you,

*str



Wed, 07 Apr 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Executing SQL Server Stored Procedure from VB

2. executing SQL Server 6.5 stored procedure using VB 5

3. Executing SQL Server Stored Procedure in VBS

4. Executing a stored procedures in SQL server from VB

5. Executing a stored procedures in SQL server from VB

6. VB4 RDO Won't detect an error in an SQL Server 6.0 stored procedure

7. MS SQL Server 6.0 stored procedures

8. MS Sql Server 6.0 Stored Procedures

9. HELP! CreatePreparedStatement and SQL Server 6.0 stored procedure

10. HELP! CreatePreparedStatement and SQL Server 6.0 stored procedure

11. Help with Stored Procedures using SQL Server and VB3.0

12. Executing A Stored Procedure in VB 6.0 for .MDB

 

 
Powered by phpBB® Forum Software