Viewing 15 posts - 91 through 105 (of 108 total)
Just had an idea (try this somewhere besides production first!)
begin transaction
select * from sysobjects with (holdlock, xlock) where type = 'TR'
Then wait and see who gets blocked....
March 17, 2005 at 10:18 pm
Not sure how to monitor/audit this problem with acceptable results (polling for locks on and/or changes to sysobjects seems pretty iffy; too bad you cannot put triggers on system tables).
Have...
March 17, 2005 at 10:09 pm
Or you could use the redirection operators:
type header.txt > combined.txt
type detail.txt >> combined.txt
March 17, 2005 at 9:31 pm
View advocates should beware that views across servers (using linked servers, i.e. four-part object names) are extremely inefficient as they must be materialized (by importing the entire base table from...
March 10, 2005 at 9:13 am
I have had this happen when using multiple files in a filegroup, when some of them have a maximum size. If the server places an object on a file with a...
March 3, 2005 at 3:42 pm
I have not had experience with Raid 10. In general, more spindles are better, but more logical drives are also good. I would suggest arranging your 6 36GB drives in...
February 27, 2005 at 11:00 am
Check out code from a "describe" procedure on http://www.sqlsavior.com/describe.html:
select
convert(varchar(60), c.name) as 'column name',
case t.name
when 'varchar' then convert(varchar(17), 'varchar(' + convert(varchar, c.length) + ')' )
when 'nvarchar'...
February 14, 2005 at 9:30 am
The term "data warehouse" can mean a lot of different things to different people. Some think of OLAP and cubes, etc., but a simple definition might be: a database reorganized...
December 16, 2004 at 10:12 pm
Too bad I cannot find the old white paper on the SQL optimizer. It discussed techniques like reducing the query tree or parse tree; the point being that the SQL...
December 16, 2004 at 9:40 pm
Check out the book "SQL Server 2000 Performance Tuning" (Edward Whalen, Marcilina Garcia, Steve Adrien DeLuca, Dean Thompson). Chapter 8 has quite a bit about queueing theory and the "knee...
December 7, 2004 at 9:22 am
I agree that 3 separate indexes would be best in most cases. An exception would be if you know for a fact that an overwhelming majority of queries that will be...
September 3, 2004 at 9:18 am
10 minutes vs. 20 seconds is quite a difference! Are they both executing from the same machine? If not, check for a network problem on the slower one. We once...
June 14, 2004 at 11:07 pm
How about trying it during your maintenance window and letting us know if it helped any? (If it helps noticably, I would be surprised, but it would be good to...
June 14, 2004 at 10:49 pm
How about:
while exists(select * from tablename where field2 = value2 and field1 <> value1)
begin
set rowcount 10000
Update tablename
Set field1 = value1
Where field2 = value2 and field1...
May 27, 2004 at 1:52 pm
Viewing 15 posts - 91 through 105 (of 108 total)