update records | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

update records

I want to update a table column with values 500- 1000 for istance lets say the table already contains 500 records there is a column that is null I want to update it with these values. thanks

Options are:
– use a cursor agains the table to update each record in turn
– add an identity column to the table, and then use this to update your null column, then drop the identity column
Cheers
Twan
]]>

Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |