PowerShell

Technical Article

RE: Need a Set-based way of number rows

  • Reply

if you have a unique key in the results then yes USE PUBS SELECT ( SELECT COUNT(*) FROM Titles T2 WHERE T1.Title_id <= T2.Title_id) As RowNo , * FROM Titles T1 ORDER BY 1 but try this on a bigger table , and it will probably kill your server .. stick to the temporary table […]

You rated this post out of 5. Change rating

2003-06-06

Technical Article

RE: Question of the Day (QOD)

  • Reply

I have the same problem as described by Phillip Kelly. I chose (for the clustering question) the correct answer in MS Outlook which took me to a webpage saying that it was my last chance to correct my choice... So I figured I must've been wrong and chose a different response, only to be told […]

2003-06-05

1 reads

Technical Article

RE: Search all tables for a given value in a field

  • Reply

You can try this. You will obviosuly need to uncomment the exec at the end for it to do anything. CREATE proc search_tables @table sysname = 'ALL', @string varchar(8000) as declare @sql varchar(8000), @separator varchar(10), @current_table sysname IF @table = 'ALL' BEGIN DECLARE loop_tables CURSOR FOR SELECT name FROM sysobjects WHERE type = 'U' END […]

You rated this post out of 5. Change rating

2003-06-05

Technical Article

RE: SQL SERVER STALLED

  • Reply

As NPeeters mentioned, look at the default locking done by the VB logic. We had a similar situation with a sproc doing large calculations on a table used for simultaneous reporting. Turned out that the calculation piece was doing a delete on the table with criteria. This placed an exclusive lock on the entire table, […]

2003-06-05

1 reads

Blogs

Query Store Keeps Switching Itself Off, Getting it Moving Again

By

I recently received a complaint that Query Store for a particular database was turned...

EightKB 2024 – Schedule and Registration

By

Hello Hello, We. Are. Back! The schedule for EightKB 2024 Edition has been announced!...

Inside SQL Server Backup and Restore History Pruning with sp_delete_backuphistory

By

I had a customer that was looking to document a restore that had occurred...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers