advertisement

Inserting values and ignoring duplicate key errors (or, other errors) can be done like this:

BEGIN TRY
INSERT INTO foo_table (...) VALUES (...)
...
END TRY
BEGIN CATCH
END CATCH


   
Email Author
Email Author
Other Articles by this Author
More articles by author
htmlandcssbook.com
w3schools.com