Is there something like exception handling in T-SQL?
For example, how to catch an error of convertion at this
sample:
CREATE PROCEDURE SP
@param VARCHAR(50)
AS BEGIN
DELCARE @var INT
-- try {
SET @var = CONVERT( int, @param)
-- } catch (error#245) {
-- handle an error right here
-- }
END
It must be invisible for a caller of SP if something wrong inside SP.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!