Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 17-Aug-11 0:54am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

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



Advertise | Privacy | Mobile
Web01 | 2.8.140821.2 | Last Updated 17 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100