PDA

View Full Version : how to “store” stored procedures


BobLewiston
04-02-2009, 03:34 AM
I've written a few SQL stored procedures in a text editor. But how do I actually "store" them in (add them to?) a database using SQL Server 2008 Management Studio Express? I've tried to research this topic in Management Studio's onboard Help, but apparently Help assumes I know more about the subject than I actually do, because I don't even see the relevance of the answers I'm getting to my questions. Any help would be appreciated, including pointing me to a good SQL tutorial that assumes the reader knows nothing, yet teaches more than the bare-bones minimum.

oracleguy
04-02-2009, 06:16 PM
The MSDN actually has a fair bit of good information on T-SQL. This should be what you are looking for: http://msdn.microsoft.com/en-us/library/aa258259(SQL.80).aspx

Brandoe85
04-03-2009, 05:20 PM
You can also view/add/edit them in the Programmability -> Stored Procedures item within the database level in management studio express.

marlena
06-17-2009, 03:35 PM
I've written a few SQL stored procedures in a text editor. But how to store (http://www.brandviagra.net/how-to-store-brand-viagra.htm) them in (add them to?) a database using SQL Server 2008 Management Studio Express? I've tried to research this topic in Management Studio's onboard Help, but apparently Help assumes I know more about the subject than I actually do, because I don't even see the relevance of the answers I'm getting to my questions. Any help would be appreciated, including pointing me to a good SQL tutorial that assumes the reader knows nothing, yet teaches more than the bare-bones minimum.

Try to find information about it here - http://www.sql-server-performance.com/articles/dba/stored_procedures_basics_p1.aspx