Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Identity Property

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-09-13 : 10:11:19
Aggelos writes "I create a table with columns (prim_code int, prim_desc char) and insert 2 rows with values (1,'first') (3,'third') .
I need to make column prim_code to have the identity property on ( identity_seed =max(prim_code) and identity_increment=1) and
after that to insert a record ('fourth')
via T-SQl. How Can I do this?
Thanks
Aggelos"
   

- Advertisement -