|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 6:11 AM
Points: 125,
Visits: 499
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 8:00 PM
Points: 1,850,
Visits: 985
|
|
hi,
I know that we can add explicit values to an identity column using
Identity_Insert on. but i thought that identify column will not allow duplicate columns.good question.lost one point but learned one new point.
Malleswarareddy I.T.Analyst MCITP(70-451)
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:53 AM
Points: 1,529,
Visits: 359
|
|
| good one... duplicates can only be avoided by having a constraint in place...
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Yesterday @ 6:39 AM
Points: 9,376,
Visits: 6,472
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 6:12 AM
Points: 2,526,
Visits: 3,620
|
|
ziangij (8/15/2010) good one... duplicates can only be avoided by having a constraint in place... ...or by having a unique index in place.
Best Regards,
Chris Büttner
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 6:11 AM
Points: 125,
Visits: 499
|
|
And i thought i only didnt knew it
Cheers, Ankur
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 1:11 AM
Points: 1,085,
Visits: 1,162
|
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 10:26 AM
Points: 404,
Visits: 274
|
|
I have to admint I wouldn't have gotten this one right, except for a similar question a few months ago. I still don't understand why one would want to create an identity and then break the rules of the identity. Seems like trouble
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: 2 days ago @ 1:10 PM
Points: 2,673,
Visits: 2,418
|
|
| Identity insert can be very dangerous. For a long time I couldn't see a use for it. Then I needed it to get 2 tables in 2 different databases into sync after they had fallen out of sync for some unknown reason. It saved me a lot of effort.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
Only one person can insert identity on a column at a time, so WE can not...
|
|
|
|