Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


TSQL - Identity_Insert


TSQL - Identity_Insert

Author
Message
Carlo Romagnano
Carlo Romagnano
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3598 Visits: 3233
In the past 10 years, I played a lot with SET identity_insert. I'm a specialist!
manik_anu
manik_anu
Old Hand
Old Hand (374 reputation)Old Hand (374 reputation)Old Hand (374 reputation)Old Hand (374 reputation)Old Hand (374 reputation)Old Hand (374 reputation)Old Hand (374 reputation)Old Hand (374 reputation)

Group: General Forum Members
Points: 374 Visits: 300
nice question....:-)

Manik
You cannot get to the top by sitting on your bottom.
sqlnaive
sqlnaive
Hall of Fame
Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)Hall of Fame (3.7K reputation)

Group: General Forum Members
Points: 3683 Visits: 2774
I've been playing with identity columns quite lot in the past two years so found it easy to resolve. But nice question. Cheers :-)
Dscheypie
Dscheypie
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 271
Blush

If I hadn't tried it out I would have gotten it wrong.

Blush again...

...is this English grammar correct, by the way?

________________________________________________________
If you set out to do something, something else must be done first.
logitestus
logitestus
SSC-Addicted
SSC-Addicted (448 reputation)SSC-Addicted (448 reputation)SSC-Addicted (448 reputation)SSC-Addicted (448 reputation)SSC-Addicted (448 reputation)SSC-Addicted (448 reputation)SSC-Addicted (448 reputation)SSC-Addicted (448 reputation)

Group: General Forum Members
Points: 448 Visits: 505
Blush umm, what should you do when you can't perform simple math in your head? This was a pretty simple question (since I have been dealing with IDENTITY_INSERT for several years now) but the simple addition of 100 + 1 + 1 trips me up? Time to back to the dunce cap...
TomThomson
TomThomson
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10696 Visits: 11991
Dscheypie (9/13/2013)
Blush

If I hadn't tried it out I would have gotten it wrong.

Blush again...

...is this English grammar correct, by the way?

Yes.
But England is full of ignorant pedants who will claim it is not grammatical, because they insist that the past participle of get is not gotten but got. Just about everyone in the USA says gotten (as did just about everyone in England until not very long ago, which is why the pp of forget is forgotten, of beget is begotten and so on, and why the phrase like "ill-gotten gains" is used by just about everyone). I'm Scottish, so I both forms of the past participle - which I use at any time depends on which feels right at the time.

Tom

Dscheypie
Dscheypie
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 271
logitestus (9/27/2013)
Blush umm, what should you do when you can't perform simple math in your head? This was a pretty simple question (since I have been dealing with IDENTITY_INSERT for several years now) but the simple addition of 100 + 1 + 1 trips me up? Time to back to the dunce cap...


Of course, logitestus, if I had added 100 + 1 + 1 and similar complex tasks for years like you did I would have solved this problem hopefully as souvereign as apparently you did.

So I respectfully admire your capabilities and competence and humbly ask for forgiveness for not having a comparable expertise in this area. In other areas of course I sometimes proove to be a bit more exercised like social behaviour. Therefore I gratefully thank you and decline your offer, the dunce cap, with greatest respect: Please keep it for yourself because you are obviously so well versed in the use of it...

Cool

________________________________________________________
If you set out to do something, something else must be done first.
Dscheypie
Dscheypie
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 271
L' Eomot Inversé (9/27/2013)

Yes.
But England is full of ignorant pedants who will claim it is not grammatical, because they insist that the past participle of get is not gotten but got. Just about everyone in the USA says gotten (as did just about everyone in England until not very long ago, which is why the pp of forget is forgotten, of beget is begotten and so on, and why the phrase like "ill-gotten gains" is used by just about everyone). I'm Scottish, so I both forms of the past participle - which I use at any time depends on which feels right at the time.


Hi, Tom,

thank you for your off topic explanation, off topic at least in the sense of SQL Server!

I wasn't sure of the use of past participle, yet I tend to exercise my poetic capabilities even in a technical forum, even for the price of ludicrousness ;-)

Anyway: Aren't you interested in some Vogon poetry? :-D

________________________________________________________
If you set out to do something, something else must be done first.
TomThomson
TomThomson
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10696 Visits: 11991
Dscheypie (9/27/2013)
Hi, Tom,

thank you for your off topic explanation, off topic at least in the sense of SQL Server!

I wasn't sure of the use of past participle, yet I tend to exercise my poetic capabilities even in a technical forum, even for the price of ludicrousness ;-)

Anyway: Aren't you interested in some Vogon poetry? :-D

O mo chreach, chan 'eil! Chan 'eil idir! 'S ann bhiodh bàrdachd Bhogonach gun bhun gun bharr gun dreach, cho neo-bhlasta ri sgaot, agus chuireadh e dìreach subh ghràin orm! Is mise bhiodh briste brùite ma chuireadh tu rium càil dhith! At least not unless you can provide it in a translation into my language, which would surprise me horribly, and almost certainly not even then Sick.

Tom

Dscheypie
Dscheypie
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 271
Hi, Tom,

can you imagine my joy when I first thought to have found another worshipper of Vogon poetry? And my disappointment when I realized that this was no Vogon, but a mere mundane language up to now unknown to me? Gaelic... :-(
...but of course wonderful, too!
;-)
Well, give me some time; I hope to present you a very special Vogon piece of artistry. I just suffer from some difficulties: Import restrictions (potential life threatening devices are not willingly welcomed), duty, tolls and taxes, you know...

________________________________________________________
If you set out to do something, something else must be done first.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search