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
 Transact-SQL (2000)
 RowNumber

Author  Topic 

vijaySqlserver
Starting Member

1 Post

Posted - 2003-03-03 : 00:29:31
--------------------------------------------------------------
Master table is 'exception_description'
sp_help 'exception_description' typed at SQLQueryAnalyzer


Error_Code int no 4
Error_Description varchar no 200
Inserted_By varchar no 50
Inserted_Date datetime no 8
Updated_By varchar no 50
Updated_Date datetime no 8
User_Error_Description varchar no 250


No identity column defined.

No rowguidcol column defined.

index_name index_description index_keys
PK_Exception_Description clustered, unique, primary key located on PRIMARY Error_Code

constraint type constraint_name constraint keys
PRIMARY KEY (clustered) PK_Exception_Description Error_code

---------------------------------------------------------------

sp_help 'exception' typed at SQLQueryAnalyzer
my table has these columns

Error_Code int no 4
Error_Description varchar no 150
Exception_DateTime datetime no 8

No identity column defined. NULL NULL

No rowguidcol column defined.

no PRIMARYkey


constraint type constraint_name constraint keys
FOREIGN KEY FK_Exception_Exception_Description Error_code


How can set ROWNUMBER for 'exception' table?
why i am asking is,it does not contain prmarykey.
pls send script for this table.
what are steps to be followed while implementing ROWNUMBER column because already
it 'exception' has more 1000 rows?.

pls help me about this

thanks for reading this.

samsekar
Constraint Violating Yak Guru

437 Posts

Posted - 2003-03-03 : 01:05:59
ALTER TABLE exception add ROWNUMBER NUMERIC IDENTITY (1,1)

Sekar
Go to Top of Page
   

- Advertisement -