Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

By Pass Error While insetion Expand / Collapse
Author
Message
Posted Wednesday, January 29, 2014 11:24 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:07 AM
Points: 1,871, Visits: 2,277
Hi all,

I have a scenario in which if I do bulk insertion in a table and if any error occurs then insertion should not stopped and will proceed with insertion of remaining records.

Can we achieve this in sql?



_______________________________________________________________
To get quick answer follow this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Post #1536177
Posted Thursday, January 30, 2014 2:06 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 9:21 AM
Points: 1,133, Visits: 936
Use the MAXERRORS option and set it to a really high number.
Post #1536552
Posted Thursday, January 30, 2014 2:15 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 8:34 PM
Points: 2,788, Visits: 5,973
Adam Angelini (1/30/2014)
Use the MAXERRORS option and set it to a really high number.

And use an errorfile to find out what failed.



Luis C.
I am a great believer in luck, and I find the harder I work the more I have of it. Stephen Leacock

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1536556
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse