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
Active Directory was unable to establish a connection with the global catalog
Server 2008 Backup
Add a button to an Excel Spreadsheet
MS Access 2003- The Microsoft Jet database engine could not find the object 'MSysDb'.
Terminal Services Installation Fails on Windows Server 2008
Where and how can i use silent switches for a MSI file in the group policy.
Error "windows cannot access the specified device path, or file. you may not have the appropriate permissions to access them"
Relational Database Cardinality (How is it expressed)
Backup and restore of Win2k Server to a different machine
Use multi parameters in query criteria