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
Resizing a web Browser inside a acces form
Allow other user than SA to change passwords and access to companies
How to prevent password autofill at some sites?
Index on a table
Why does MS SSRS 2005 Hang On Query?
VBA Excel encoding
routine backup practices for access 2003
ODBC Connection failed on Vista
sql syntax
Connectivity Problems between DC and Edge server in EBS domain