Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

My requirement is to get list of TransactionIds which are performad by a single Vendor. To get this we will write quire like below:

"select TransactionId form TransDetails where VendorId=101;(101 is example for vendor id);"

I want to get same result using Store Procedure instad of normal query.

Please any one can give me the coding for creating and executing Stored Procedure to get above result.

Thanks in Advance.
Posted

1 solution

Jst try something like this:
CREATE PROCEDURE OrderSummary @VendorId INT AS
  SELECT TransactionId FROM TransDetails WHERE VendorId=@VendorId;


good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900