Forum Replies Created

Viewing 15 posts - 24,661 through 24,675 (of 49,552 total)

  • RE: Query tuning

    @SQLFRNDZ (7/26/2011)


    Check any query hints you can include to improve performance depends type of query.(Nolock), (Maxdop), with recompile if it is stored procedure.

    Nolock if you don't mind potentially incorrect, duplicate...

    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 Errors -Migarting SQL 2000 database to SQL 2005

    opc.three (7/26/2011)


    What does this return on SQL 2000?

    SELECT DISTINCT

    collation

    FROM syscolumns

    WHERE id = OBJECT_ID('SALES')

    ...

    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 the posted questions getting worse?

    Ninja's_RGR'us (7/26/2011)


    Stefan Krzywicki (7/26/2011)


    Chad Crawford (7/26/2011)


    Ninja's_RGR'us (7/26/2011)


    Chad Crawford (7/26/2011)


    Grant Fritchey (7/26/2011)


    Can't help it, I have to share. I was doing some Boogling or Ginging, whatever we call it...

    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 Errors -Migarting SQL 2000 database to SQL 2005

    Ninja's_RGR'us (7/26/2011)


    Assuming the db is usable on sql 2000, wouldn't scripting the tables and redeploying on 2k5 (or even 2000), possibly after changing the collation to something else "save the...

    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: who is right? windows tempdb.ndl file is larger than SQL says

    Run DBCC UPDATEUSAGE

    Shouldn't be necessary on SQL 2005 SP3+

    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 Errors -Migarting SQL 2000 database to SQL 2005

    Ninja's_RGR'us (7/26/2011)


    Assuming the db is usable on sql 2000, wouldn't scripting the table and redeploying on 2k5 (or even 2000), possibly after changing the collation to something else "save the...

    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 Errors -Migarting SQL 2000 database to SQL 2005

    Sqlsavy (7/26/2011)


    But I'm still not able to understand how these errors are generated and what is wrong with the data on SQL 2005?

    It's metadata errors, there's problems with the...

    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: who is right? windows tempdb.ndl file is larger than SQL says

    How are you getting the size from SQL?

    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: Speeding up database access Part 2 - Pinpointing Other Bottlenecks

    On the compiles and recompiles...

    These counters will show high values at server start up as every incoming query needs to be compiled. The plan cache sits in memory, so doesn't...

    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: Speeding up database access Part 2 - Pinpointing Other Bottlenecks

    This piece is just wrong.

    If % Disk Time is consistently over 85%, the disk system is stressed. Avg. Disk Queue Length and Current Disk Queue Length refer to the number...

    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: Best way to find the number of rows for a view

    Lowell, to be completely accurate you should sum that grouped by object_id, index_id. If the table is partitioned, there will be multiple rows in there for a single table.

    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: Best way to find the number of rows for a view

    anand_vanam (7/26/2011)


    I have an identity column on all the tables so no issue if the object is a Table. I am getting count by using this query SELECT IDENT_CURRENT ('dbo.Customer'...

    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 question

    New as in 6 years old, yes. Introduced with SQL 2005.

    Doesn't change that there's lots of info in Books Online.

    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: Deadl Graph = SQL 2008

    I would think so, probably.

    If sessionkey is unique, make it a unique index.

    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: Deadl Graph = SQL 2008

    I would definitely recommend an index on session key. Without that, SQL's having to scan the table to find the rows for update.

    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 - 24,661 through 24,675 (of 49,552 total)