Results 1 to 4 of 4

Thread: SQL sp's. Need help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154
    I can connect to an SQL server using ADO but I am new to writing SQL stored procedures. I have read some good info on sp's on this site but I can't seem to tie the two together.

    I open the connection and then I want to pass an input parameter to the stored procedure. I want the stored procedure to run the query and then return results.

    What I can't seem to grasp is what I need to do in VB and the sp.

    If someone had a really basic example showing code in VB and then the code in the SQL stored procedure I would be much abligged (reckon you haven't heard that kind-a talk in a while).

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    Hi, there.

    There is a sample code:
    http://support.microsoft.com/support...&SA=ALLKB&FR=0

    If you have SQL Server, then go to Enterprise Manager->Databases -> Pubs -> Objects -> Stored Procedures.
    Open any of the sp and you will see the syntax for writing sp.

    Larisa

  3. #3
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    Found one more sample code for ADO:

    http://support.microsoft.com/support...&SA=ALLKB&FR=0

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154
    Thanks. I was able to get it to work. Now I will just need to spend some time and learn it.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width