![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Thanks for any tips |
#3
| |||
| |||
|
|
I am maintaining an existing app that used Create Table statements to generate temp tables (within sprocs). The columns defs are taken from the actual tables in use at the time. As those tables change, the sprocs start erroring. My idea was to use a dummy Select INTO .. FROM statement to create the temp tables instead. Since the original table had an identity column (used everywhere in this app), I then tried to set IDENTITY_INSERT ON before calling routines that poulate the temp table. I'm getting the error "explicit value must be ID'd for Identity column...". Anybody know how to work around this? |
#4
| |||
| |||
|
|
Stop mimicking magnetic tape scratch files in SQL. You have the sequential record number mimicked with IDENTITY, a totally non- relational "feature"; you are mimicking an empty magnetic tape by defining the "file" on the fly at run time. Re-write this mess with CTEs and derived tables. And the bum who stuck you with it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |