Forum Replies Created

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

  • RE: Is this article correct? Temp Tables vs. Table Variables in SQL Server 2005

    Why do you need to rewrite?

    Are they suddenly performing badly? Are they giving incorrect results?

    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 is this???

    Same kind of thing as a select statement that has a derived table (subquery) in the from clause.

    The subquery resolves to a rowset that's treated as if it were a...

    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: Rebuilding Index

    How big is the table in question? If I had to take a guess, I'd say it's fairly small, under 25 or so pages.

    You can get the page count from...

    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 SQL Server performs aggregation and sorting ?

    The query processor operates on pages in memory. If it needs a page and the page isn't there, it sends a request to the storage engine to fetch that page....

    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: SQL Server 64 bit

    Pro: SQL can use a lot of memory.

    Con: SQL can use a lot of memory.

    If you go 64 bit, make sure you set the max memory for SQL. What 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: Best Plan for Clustered Index

    Records won't be exactly be moved to make space.

    If the row has to go onto a page and there isn't space on the page, the page is spit in...

    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 Ways to Audit a Production Instance

    Trace to file, set a reasonable size for the files. Once a file is no longer been written to, load that into a database (preferably on a different server) with...

    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 Ways to Audit a Production Instance

    Luke L (9/30/2008)


    There are third party utils that basically do the same thing, but allow you to specifiy a threshold or queries that take more than 3 seconds to...

    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 With SQL Update Query

    Yup, so something like this should work

    UPDATE OrderDetails

    SET ShipID = LatestShipping

    from OrderDetails

    ...

    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 Ways to Audit a Production Instance

    Then you're going to need some form of trace running. I recommend a server-side trace as it will have the least impact. Set up the trace within profiler, tracing 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: Database help

    The reason you can't connect is that your login has, as its default DB, the database that you detached. It doesn't matter where the DB is, just that it's 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
  • RE: Migrating from SQL 2000 to SQL 2008

    In 80 compat mode, none of the new 2005 or 2008 features will work. This includes (but is not limited to)

    CTEs

    Index Include columns

    Table partitioning

    OUTPUT clause

    XML enhancements

    CLR

    TRY..CATCH error handling

    DDL triggers

    Ranking functions

    DDL...

    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: Database help

    tfang (9/30/2008)


    Anyways, the problem is the transaction log file for the database. The log file is extremely large. So large that it took up all the disk space, thus, 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: Help With SQL Update Query

    vanessachase81 (9/30/2008)


    I am trying to join Orders.EEID to Shipping.EEID

    Yes, but how does that relate to the row that you're trying to update in OrderDetails?

    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: Re: Short-circuiting a query

    Don't we all.

    Oh, and on SQL 2008, I get the following results for those two queries:

    Subqueries: (35% cost)

    Table 'Person'. Scan count 0, logical reads 45

    Table 'Worktable'. Scan count 0, logical...

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