SharePoint world of ECM and Information Management

.NET Tips: SQL/T-SQL

back to content

INFO:

  •  SQL Server starts with row-level locks, but often escalates these to page and table locks, causing deadlocks >>.
  •  new If the physical or logical RID contained in the non-clustered index records needs to change then all the non-clustered indexes need to be rebuilt in case of table structure change . >>

 

TIPS:

  • Random selection - "SELECT TOP 1 * FROM [TableName] ORDER BY newid()"
  • Use  ROW_NUMBER for the paging in SQL Server 2005 >>

 

back to content

Leave a Comment

(required) 

(required) 

(optional)

(required)