Calling stored procedures in VB 6

B

Bruce

I have a good connection to the SQL Server but, it can't
find the stored procedures that I wrote and placed there.
They are in the Master DB and work. The connection method
and open recordsets work, but when I add the command "EXEC
sp_name " into the open statement it keeps saying it can't
find the stored Procedure. Obviously it knows to expect
the SP but the method of defining it is wrong. I'be tried
variations of BMname..SPname and none work? Help.

Bruce Gilbert
(e-mail address removed)
 
C

Cor

Hi Bruce,

I do not know what it is in VB6 it is something as this in VB.net

Dim cmd As New SqlCommand("EXECUTE MyDatabase.dbo.SelectProc", conn)

But maybe you can get your answer for VB6 in one of the VB classic
newsgroups

microsoft.public.VB*

Cor
 
H

Herfried K. Wagner [MVP]

* "Bruce said:
I have a good connection to the SQL Server but, it can't
find the stored procedures that I wrote and placed there.
They are in the Master DB and work. The connection method
and open recordsets work, but when I add the command "EXEC
sp_name " into the open statement it keeps saying it can't
find the stored Procedure. Obviously it knows to expect
the SP but the method of defining it is wrong. I'be tried
variations of BMname..SPname and none work? Help.

Notice that there is a separate group available for ADO.NET questions:

ADO.NET group:

<
Web interface:

<http://msdn.microsoft.com/newsgroup...roup=microsoft.public.dotnet.framework.adonet>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top