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.
Loading

Scott LysleRank #49 · 31K reputationPosted Apr 1, 2009, 8:43 PM EDT
Bob Lewiston77 reputationPosted Apr 2, 2009, 8:20 AM EDT
Scott Lysle:
Thanks for help.
One question: don't I have to associate a procedure with a given table? Otherwise, how will the procedure recognize the column names?
Jan MontanoRank #1,295 · 1.3K reputationPosted Apr 2, 2009, 11:05 PM EDT
you specify those details in the sql statement inside the stored proceduer itself like the statement
SELECT firstname, lastname FROM employee
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Apr 9, 2009, 10:38 AM EDT
Can you paste the source code of your stored procedure?
Thanks -- Vijaya Kadiyala
www.DotNetVJ.Com