Answered Questions

  • How is the error handling in stored proc of T-SQL ?

    1 How is the error handling in stored proc of T-SQL2 What is clustered index and non-clustered index? How many clustered indexes and non-clustered indexes can be created in one table? 3-what is disconnected mode?

    Pradeep Kumar Sharma

    • Dec 25th, 2011

    Begin Try

    --
    --
    End Try
    Begin Catch

    Declare @errMsg varchar(1000),@errSev int
    select @errMsg=error_message(),@errSev=error_severity()
    RaisError(@errMsg,@errSev,1)

    End Catch