Viewing 15 posts - 991 through 1,005 (of 1,315 total)
A clustered index requires more space than a non-clustered index but at most is just one more layer of depth in the B-tree. This is offset by the fact that...
November 2, 2005 at 7:46 am
You can't get a 0 from the query because of the incorrect XML, you would get a parsing error in the SET statement and the query would never run.
Since that...
November 2, 2005 at 6:59 am
KH - Have you ever tested your trigger error handling code?
My first experience with writing triggers was in SQL 6.5 or 7.0, and I used code like that (inhierited from...
October 28, 2005 at 10:03 am
Manually removing locks in a production database would be extremely hazardous. If you figured out how to do it you will probably cause massive database corruption. And if you use...
October 28, 2005 at 9:09 am
One reason not to use bit fields in indexes is that they are not very selective, with only two values (three if you count NULL).
If you have a frequently-run query...
October 19, 2005 at 9:50 am
You may have an out-of-date BOL. It is now legal to use bit fields in indexes.
October 19, 2005 at 9:04 am
If your database is suddenly doubling in size, but shrinks back to normal with SHRINKDATABASE, it could be because either some process is creating a lot of data temporarily and then deleting it,...
October 18, 2005 at 5:24 pm
You can run sp_executeSQL remotely.
exec <linkedserver>.master.dbo.sp_executesql N'use <database>; dbcc showcontig (<table> with tableresults, all_indexes'
This requires at least ddladmin rights for the linked server login.
I...
October 18, 2005 at 4:37 pm
Would adding CustomDatabaseRole to db_denydatawriter accomplish the same thing?
October 13, 2005 at 9:36 am
Are there secondary indexes on this table? Dropping the clustered index will cause all other indexes on the table to be dropped and recreated. This will seriously interfere with access...
October 13, 2005 at 7:08 am
SQL will pack bit fields together and allocate another byte only on the 1st, 9th, 17th, ... bit field.
If your bit field is nullable it requires another bit in the...
October 13, 2005 at 6:39 am
Why fool around with the differential backups when you've got the transaction log backups?
If you do RESTORE LOG WITH STANDBY= for each transaction log (schedule it to run after the...
October 12, 2005 at 10:01 am
You can simplify the query a bit without resorting to checking index status bits. Every primary key also has an entry in sysobjects:
select
quotename
October 11, 2005 at 12:22 pm
I also have several servers that are used almost entirely for large single-user batch jobs, and we use a lot of locking hints. Other servers (and other databases on the...
October 7, 2005 at 10:16 pm
Sergiy, I don't understand your comments on the index structure.
With no index on ModelID, every function evaluation requires a full table scan. Or at least up to IdentValue, if there...
October 7, 2005 at 8:58 pm
Viewing 15 posts - 991 through 1,005 (of 1,315 total)