Forum Replies Created

Viewing 15 posts - 47,551 through 47,565 (of 49,552 total)

  • RE: Index Rebuilds Still Leave Fragmentation

    How big are the tables in question? How many pages do the indexes take up (visible in sys.dm_db_index_physical_stats)

    Edit: btw, a separate update statistics is not necessary (and may even be...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Datetime of latest SQL Server 2005 Instance Restart

    I usually just grab the login time for session_id 1. iirc it's the resource monitor. It will always be there.

    Chad: How do the CPU_BUSY and IDLE relate to real time...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: queries with (nolock) still runs into deadlock with others

    KATHLEEN Y ZHANG (1/28/2008)


    I am seeing Sch-s and Sch-M locks on these two processes. Aren't they compatible?

    No. They're the equivalent of shared and exclusive locks for the table structure. Sch-S...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Datetime of latest SQL Server 2005 Instance Restart

    Not directly, but you can get the login time of any of the system processes from sys.dm_exec_sessions. Since all the system processes start when the instance starts the login time...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: queries with (nolock) still runs into deadlock with others

    What kind of queries are they? If they're deadlocking, I assume some form of data modification (since readers don't block readers) Data modification (insert, update, delete) will always take locks....

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Query Tunning: Help Please....

    JMSM (1/28/2008)


    Can you tell me what kind of book can i buy for 'lazy DBA' query tunnig :sick:

    I haven't seen any book that does 'query tuning in 24 hours' or...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SSC Level List?

    Steve Jones - Editor (1/28/2008)


    Baseball knowledge probably does help with the levels. I picked these over the summer, so my apologies for outside influences 🙂

    It's your site. You can do...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: stored procedure help : looping through a result set

    First thing I'd suggest it normalise your tables 🙂

    If you have a table of users, then finding the unique users is much simplified. Perhaps a table for the questionaires (or...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Query Tunning: Help Please....

    What does the query look like now? From a quick glance

    AND tb4.ID NOT IN (SELECT DISTINCT tb7.ID

    FROM Tbl_Tmp_Trace tb7

    WHERE tb7.Estadoid = 3094610094

    AND tb7.Tipo = N'Chamadas')

    should go to

    AND NOT EXISTS (SELECT...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Sqlserver2005

    The backups might be safe to compress. The data and log files are another matter.

    Only read-only filegroups can be placed on compressed drives and transaction log files should never be...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Transaction log filled the drive how to shrink?

    Looking good.

    You may want your tran log backups more often. Maybe once every 2-12 hours, depending how many transactions there are. How often are your full/diff backups.

    Once the log has...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to have multiple WHERE clauses depending on condition

    And they have security implications. Dynamic SQL has its place, but it has a number of downsides.

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Transaction log filled the drive how to shrink?

    Is the database in full recovery mode? Do you have any transaction log backups running?

    Full backups don't truncate the inactive portion of the log. Only a transaction log backup does...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection

    Looks like you're trying to use SQL authentication to a server that's configured for windows authentication only.

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Indexes on different filegroup as table

    Can we see the table schema, indexes and the full execution plan please. Is nearly impossible to say anything for sure without those.

    Since you're on SQL 2005 (I assume so...

    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

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 47,551 through 47,565 (of 49,552 total)