Forum Replies Created

Viewing 15 posts - 47,101 through 47,115 (of 49,552 total)

  • RE: Rewriting Stored Procedure

    Scott Duncan (3/25/2008)


    CREATE INDEX [IX_Application2] ON [dbo].[Application]([DocumentNumber]) WITH FILLFACTOR = 90 ON [PRIMARY]

    GO

    Ignoring the query for now (will look at it after I've had some coffee)..

    I would suggest...

    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: Shrink database

    Mh (3/25/2008)


    No. If the database is growing it's because...

    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: What are the performance implications for this scenario?

    Paul Koanui (3/25/2008)


    Thanks for the reply. I'm just trying to figure out how two different databases on seperate machines with similar hardware would be performing so differently

    Are 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: Best way to reindex large tables/indexes

    DBCC IndexDefrag is deprecated in SQL 2005. Use ALTER INDEX... REORGANIZE instead.

    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 there "arrays" in sql 2005 ?

    blahknow (3/25/2008)


    Hi Gail, OK I understand there are no arrays.

    I create a table and i want to split it into "sub lists" (or "sub tables")

    Hmmm. Ok. Why do you...

    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: Statistics Missing For This Table

    Randy Doub (3/25/2008)


    So if auto-create is turned off and a new query is put in play that uses columns not used too often, or not used previously, statistics will never...

    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: Problems updating inserted row from within cursor

    Can't see anything offhand that would make the update fal. It's not as if you're updating a row that the cursor's based off.

    I'm not sure a cursor's necessary at all...

    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: Reg Timestamp Data type

    Jeff Moden (3/25/2008)


    Proof is always good... gotta love BOL. 😉

    Habit from academic writing. Cite it or prove 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: Record Count for all the tables from a DB

    karthikeyan (3/25/2008)


    ------------------------------------------

    Can you tell me why ?

    Because it's an alternative to the while loop as you're written it. I'm not saying it will be better or worse in terms of...

    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: Problems updating inserted row from within cursor

    Could you post the code 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: Record Count for all the tables from a DB

    If you want to run a count(*) on all your tables, that's pretty much the way to do it. You could use a cursor instead of a while loop, 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: are there "arrays" in sql 2005 ?

    No arrays. Some people use XML, but that can get messy.

    If you go into a bit more detail on what you're doing, maybe we can suggest an alternative.

    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: CPU per File Group?

    Buxton69 (3/25/2008)


    Marios Philippopoulos (3/20/2008)


    I googled "trace flag 1118" and this was at the top of the list:

    PRB: Concurrency enhancements for the tempdb database

    support.microsoft.com/kb/328551

    But none relating to the proportional-fill process.

    From what...

    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: getting unique records from a table

    Koji Matsumura (3/25/2008)


    SELECT roll, MAX(sname) FROM Table ORDER BY roll

    SELECT roll, MAX(sname)

    FROM Table

    GROUP BY roll

    ORDER BY roll

    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: getting unique records from a table

    Probably very easy, but I do need a bit more info.

    For Roll 1 you have sNames of 'aa', 'bb' and 'cc' Why is 'aa' the one you want returning, not...

    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,101 through 47,115 (of 49,552 total)