![]() |
| ||
| Must declare the scalar variables in storedprocedure in sql 2005 I have created the following stored procedure in sql server 2005.I m using asp.net with C# 2005. Can someone please rectify my errors why i m getting such type of the errors... ALTER PROCEDURE CompanyStoredProcedure THANXS in advance. |
| ||
| Re: Must declare the scalar variables in storedprocedure in sql 2005 I want SELECT @companyid = SCOPE_IDENTITY() |
| ||
| Re: Must declare the scalar variables in storedprocedure in sql 2005 You don't need those declared variables, use the ones passed in as parameters (@upscompanyid, @upscompanyname and @upsaddress1). Delete the declared variables and make sure you are only using the parameters |
| ||
| Re: Must declare the scalar variables in storedprocedure in sql 2005 Also you will need to declare another parameter as the OUTPUT version of companyid. This would then be set using the SCOPE_IDENTITY function after the insert |
| All times are GMT -4. The time now is 8:36 am. |
Forum system based on vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2003 - 2010 DaniWeb® LLC