Results 1 to 2 of 2

Thread: Stored Procedures-Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    203

    Stored Procedures-Help

    I don't know how to create stored procedures---Can any1 help me ?
    I need to access some records off a table-> employeeInfo and use them to populate the recordset. Now how would I create a store prod. to do the same.

    earlier I used 2 do it with an SQL stmt--

    "select * from employeeInfo"

  2. #2
    Hyperactive Member
    Join Date
    Feb 2000
    Posts
    284
    Firstly I hope your DB supports SPs. And if it does you will need to write some T-SQL as follows

    Create Procedure FindMatchByID (@ID Integer) as

    SELECT * from myTable
    Where ID = @ID

    Then execute this t-SQL against the appropriate database through your query analyser.

    And when you refresh your SP list it will be there.

    HTH

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