|
-
Aug 13th, 2001, 07:53 PM
#1
Thread Starter
Addicted Member
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"
-
Aug 14th, 2001, 12:08 AM
#2
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|