Views: 11.8K
Replies: 2
Archived
|
Stored ProceduresWhere do I find information on using stored procedures with parameters instead of the inline sql statements?
Jonathan Patrick, Apr 16, 2010
Sorry, I should have been more clear. Is there examples on how to use stored procedures with parameters within the 'Db' class of the framework?
May 03, 2010
|
|
Reply 1Good information on Stored Procedures is available in the following link
http://support.microsoft.com/kb/306574 Thanks, Chinna Srihari Srihari Chinna, Apr 27, 2010
|
|
Reply 2SQL statement :
SELECT Product, Quantity FROM Inventory WHERE Warehouse = 'FL' CREATE PROCEDURE sp_GetInventory @location varchar(10) AS SELECT Product, Quantity FROM Inventory WHERE Warehouse = @location To call this Stored Procedure: EXECUTE sp_GetInventory 'FL' I hope this helps. Redha Reghioua, Apr 25, 2010
|