Forum Replies Created

Viewing 15 posts - 991 through 1,005 (of 1,315 total)

  • RE: B Tree Indexes

    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...

  • RE: Question of the Day for 02 Nov 2005

    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...

  • RE: Trigger question

    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...

  • RE: How to avoid the LOCKS in DB

    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...

  • RE: How are bit column stored?

    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...

  • RE: How are bit column stored?

    You may have an out-of-date BOL.  It is now legal to use bit fields in indexes.

  • RE: Shrinking VLDB''''S

    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,...

  • RE: DBCC Showcontig

    You can run sp_executeSQL remotely.

    exec <linkedserver>.master.dbo.sp_executesql N'use <database>; dbcc showcontig (<table&gt with tableresults, all_indexes'

    This requires at least ddladmin rights for the linked server login.

    I...

  • RE: Appling DENY object permissions to a Database

    Would adding CustomDatabaseRole to db_denydatawriter accomplish the same thing?

  • RE: *Removing* a clustered index

    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...

  • RE: How are bit column stored?

    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...

  • RE: How to apply "Differential" daily

    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...

  • RE: tables with no primary keys

    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

  • RE: Help with SQL Server 2005 Isolation Hint Info

    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...

  • RE: incremental in second column

    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...

Viewing 15 posts - 991 through 1,005 (of 1,315 total)