Link to home
Start Free TrialLog in
Avatar of Dazza051197
Dazza051197

asked on

@@Error

I've got a stored procedure that inserts records to my sql table from a linked server, but if the linked server table is open and exclusively locked then my stored procedure will fail.  I'm trying to trap the error after the insert statement using the @@error, but the stored procedure is not continuing to run after the insert statement.  How can I trap this error ?  The linked server is an access database using jet oledb.4.0

Daz
Avatar of Gustavo Perez Buenrostro
Gustavo Perez Buenrostro

Wich flavour of SQL are you using?
Also having trouble with a sililiar situation, if someone has an answer, or if I find one, I will post.  Please check out:
https://www.experts-exchange.com/jsp/qShow.jsp?ta=mssql&qid=10198949 

If you come across the answer for an easy 200pts.
ASKER CERTIFIED SOLUTION
Avatar of simonsabin
simonsabin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial