Community Error handling protip: @@Error resets after the next command by SSWUG Research (Kenneth Fisher) The system variable @@ERROR is a quick and easy way to retrieve the error number from the last statement run and use it in your code. Register to Read