Red Gate forums :: View topic - Insert data without identity insert
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Compare 10
SQL Compare 10 forum

Insert data without identity insert

Search in SQL Compare 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
jdgonzalez



Joined: 11 Feb 2014
Posts: 1

PostPosted: Tue Feb 11, 2014 6:10 pm    Post subject: Insert data without identity insert Reply with quote

I've been using SQL Compare to compare the schema, but we also have some data that is in source control. But when a new row gets added to a table that is source controlled, it scripts out the insert but with an identity insert enabled.

How can I have it script out the insert so that it doesn't include the ID? SQL Compare also drops the constraints, inserts the data, then readds them but some of them have a nocheck.

Am I using the wrong product for this?
Back to top
View user's profile Send private message
eddie davis



Joined: 14 Jun 2006
Posts: 889
Location: Red Gate Software

PostPosted: Mon Feb 17, 2014 12:02 pm    Post subject: Reply with quote

Thank you for your forum post.

I do not believe that you are using the product incorrectly.

With regards to the scenario when a new row is added, currently it is not possible to disable the Identity Insert, therefore I have submitted a Feature Request, reference SC-6852. I cannot guarantee that the enchancement request will be successful or if approval is given what future version of SQL Compare it will appear in.

With regards to the second paragraph in your post, where SQL Compare drops the constraints, inserts the data and re-adds the constraints but some of the rows being inserted have NOCHECK. I have added the details to an existing Bug Report, reference SC-4077. Hopefully this bug will fixed in a future version of SQL Compare.

Many Thanks
Eddie
_________________
Eddie Davis
Technical Support Engineer
Red Gate Software Ltd
E-mail: support@red-gate.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group