Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 stored procedure-adding parameters

Author  Topic 

jonekim
Starting Member

35 Posts

Posted - 2011-05-22 : 10:48:39
Hi, while writing the queries in MS SQL SERVER 2005 under: Database->Programmability->Stored Procedures

CREATE PROCEDURE <Procedure_Name, sysname, ProcedureName>
-- Add the parameters for the stored procedure here

writing every field name along with data type is very time taking job. I tried to copy them but it was not possible. Is there any other easy way to add the parameters??

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2011-05-22 : 11:52:26
>> I tried to copy them
From where?

Use a query window to create stored procedures and make sure you save the script.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -