Viewing 15 posts - 48,706 through 48,720 (of 49,552 total)
SELECT * FROM tbl WHERE col not like 'ABC%' and COL not like 'DEF%'
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Restore a backup, restore the tran logs and stop just before the 'drop'
Then you can find whoever wrote that code and give then a good wack upside the head for...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
It's highly unlikely to see much of a change in speed for a data type change.
If you haven't rebuilt the clustered index, then the data will still occupy the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Yes, but will either need a cursor or a hard-coded limit on how deep the hierarchy will go.
Which is your preference?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Got connection pooling in place? That would account for the remaining connections. Reusing an open connection is faster than opening a new.
As for the slow down, there could be hundreds...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
A connection will stay open until it's explicitly closed. SQL doesn't close them automatically. If they're awaiting command, then they are idle.
There's a column in sysprocesses waittime and another lastwaittype....
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Are you using SQL 2000 or 2005? It's very easy on 2005 but on 2000 it can be quite tricky.
How deep can the hierarchy go?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 15 posts - 48,706 through 48,720 (of 49,552 total)