Click here to Skip to main content
12,819,619 members (33,691 online)
Rate this:
Please Sign up or sign in to vote.

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 1:54am

1 solution

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

Solution 1

Jst try something like this:
  SELECT TransactionId FROM TransDetails WHERE VendorId=@VendorId;

good luck!

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 17 Aug 2011
Copyright © CodeProject, 1999-2017
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