hi there,
In the application we have developed we have used stored procedures in order to insert, delete and modify.
For tracking the errors like primary key violation, foreign key violation, I am using the @@error variable and checking whether its a zero or not? if it is not zero(unsuccessful) , then an error has occurred, but the error doesnot get trapped ..it doesn't go to that if condition. The sqlserver simply throws an error.How can i handle this? Is there any specific way to handle exceptions in T-SQl like in PL/SQL?
When the stored procedures are called from the VB Front end how do we trap the errors?
And will the Sql Server Handle Concurrent Transactions when stored procedures are used for insert, delete and update statements?
Thanks in Advance
yogitha
In the application we have developed we have used stored procedures in order to insert, delete and modify.
For tracking the errors like primary key violation, foreign key violation, I am using the @@error variable and checking whether its a zero or not? if it is not zero(unsuccessful) , then an error has occurred, but the error doesnot get trapped ..it doesn't go to that if condition. The sqlserver simply throws an error.How can i handle this? Is there any specific way to handle exceptions in T-SQl like in PL/SQL?
When the stored procedures are called from the VB Front end how do we trap the errors?
And will the Sql Server Handle Concurrent Transactions when stored procedures are used for insert, delete and update statements?
Thanks in Advance
yogitha