Microsoft
Software
Hardware
Network
Question : autovalue t-sql sql server 2008
I've got a table with many fields.
One of them is the primary key and a second is a unique index named "LaufNr".
I want to make a insert select statement on this table.
The problem I have is that I have to set for each new dataset a unique "LaufNr" and I can't use auto increment. So I have to do it with a own function. Which methodes can I use?
Answer : autovalue t-sql sql server 2008
You can do it this way..
INSERT into ur_table
SELECT other_columns, row_number() over ( order by some_column) LaufNr
FROM ur_table
>> I have to set for each new dataset a unique "LaufNr" and I can't use auto increment
Kindly explain more on this..
Random Solutions
Outlook 2007: Change sensitivity of received Message
data type mismatch
I need to capture the output of the datagrid grdAttendees and record each Members Email Address.
Two DHCP Servers
ISA server in SBS 2003. is blocking a site, how do i allow?
Remote Desktop client in windows 7
Access to SQL Server linked table problem
need assistance adding external IM functionality to our OCS 2007 install
Autorun Controller for Access applications
cannot view MS Office Documents in IE6