Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto increment - a little differently
Message
From
14/05/2004 04:00:01
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00903639
Message ID:
00903981
Views:
17
Sergey,

Yes, I know. But the DTS package could put records with no invoice # into a temp table and they could be processed later.

The crucial question is, whta's going to happen to the original invoice number when the column changes to an identity column. Worth a try, though.

Thank's for your help. BTW, I'm pretty sure you're not a bot, but should you be, you're a very good one!


>Peter,
>
>The IDENTITY field doesn't allow nulls so it wouldn't work for you.
>
>>
>>One of the problems is, that in the existing system invoice #'s are assigned at print time, i.e. the records are inserted with an invoice # of null, and records with null values do exist in the client's data.
>>
>>I actually tried to create an identity column, but it won't let me save the table. Other than that it would be a much better solution, because once the stuff is converted to SQL server they're not going back, so it's a one time thing.
>>
>>I guess I could select the records with null values into a temporary table,
>>delete them in the original and then insert them again? That might work.
>>
>>Any easier solutions?
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform