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.
| Author |
Topic |
|
svjith
Starting Member
5 Posts |
Posted - 2009-12-14 : 05:13:42
|
| BEGIN TRYBEgin tranalter procedure [dbo].[1s2]( @StartDate datetime) as UPDATE [User] SET StartDate=@StartDateCOMMIT TRANprint 'Execute'END TRYBEGIN CATCHRollback TRANprint 'Catched'END CATCH;..................................the above statement is not runningI am getting the error. Msg 156, Level 15, State 1, Line 4Incorrect syntax near the keyword 'procedure'.Msg 137, Level 15, State 2, Line 8Must declare the scalar variable "@StartDate".what can i do.. |
|
|
lionofdezert
Aged Yak Warrior
885 Posts |
Posted - 2009-12-14 : 05:42:07
|
| alter procedure must be your first statement, likealter procedure [dbo].[1s2](@StartDate datetime)asBEGIN TRYBEgin tran |
 |
|
|
|
|
|