Forum Replies Created

Viewing 15 posts - 28,456 through 28,470 (of 49,552 total)

  • RE: Help - Query out of order datetime within a table.

    Craig Farrell (1/14/2011)


    GilaMonster (1/14/2011)


    This should do the same.

    Index on row_id and it should be OK, though not great performance.

    select *

    from Table_1 a

    inner join Table_1 b on a.rowid =...

    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: Moving TEMPDB

    What were the ALTER DATABASE statments that you issued?

    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: Help - Query out of order datetime within a table.

    This should do the same.

    Index on row_id and it should be OK, though not great performance.

    select *

    from Table_1 a

    inner join Table_1 b on a.rowid = b.rowid - 1

    where...

    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: Introduction to Indexes: Part 3 – The nonclustered index

    I'd have to check, but I doubt I still have the code and screenshots available if it is the wrong one.

    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: Moving TEMPDB

    There is one and only one connection available in that state. You have to be certain that you get it.

    Make sure SQL Agent is stopped, sharepoint is stopped, anything that...

    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: Moving TEMPDB

    Start SQL from the command line with the flags -f -T3608

    sqlservr.exe -f -T3608

    That will start SQL in restricted mode, won't recover any databases. You'll be able to get one connection,...

    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: sys.dm_db_index_physical_stats

    Pleasure.

    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: DBCC Consistency Errors - Any help appreciated

    Please run the following and post the full and complete results

    DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    Do you have a clean backup (one without corruption)?

    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: Reading Log files

    The transaction log is not an audit log. It's there for recoverability, integrity and consistency. None of those require knowing login names, host machines or application names of a session...

    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: Identify cause of high logical reads

    Grant Fritchey (1/14/2011)


    Gotta be a difference in the stats. Should be evident by having different execution plans.

    Or there's a row-estimation error somewhere, the plans are the same but the actual...

    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: Unable to Shrink Database files

    Shrink doesn't compress the database. It just releases unused space to the file system. It also will not change the size of a backup, as backups only contain the data...

    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: Help - Query out of order datetime within a table.

    How do you define 'out of order'? Lower date for higher identity value? Remember tables don't have a defined order.

    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: Identify cause of high logical reads

    It won't be fragmentation of any form. Logical reads = reads from memory.

    Post the two stats IO outputs and the two execution plans (as .sqlplan files) please.

    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: Are different service packs allowed in a multiple SQL instance in 1 server ?

    As in 2 or 3 standalone (not clustered) instances on a single machine? Yes, they can even be completely different versions.

    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: Transactional log back up taken monthly once

    If you need the exact test of the queries, you'll need a server-side trace. It will be a lot of data. I have a system that produces 1GB of trace...

    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 - 28,456 through 28,470 (of 49,552 total)