Forum Replies Created

Viewing 15 posts - 16,531 through 16,545 (of 49,552 total)

  • RE: OPTIMIZE FOR UNKNOWN (parameter sniffing problem)

    Roland Alexander STL (9/21/2012)


    Which is the point of using local variables, since it will force a new plan each time the query is run.

    Errr... really?

    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 writing SQL Server development guide!

    If it is a table lock, it's probably because you don't have an index on the Product column.

    Tune indexes, optimise code, then and only then try to outsmart the lock...

    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: OPTIMIZE FOR UNKNOWN (parameter sniffing problem)

    As I said, no. It is a specific solution to a specific problem.

    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: OPTIMIZE FOR UNKNOWN (parameter sniffing problem)

    PiMané (9/21/2012)


    Is this the best way to optimize the query plan?

    No. It's a specific solution to a specific problem.

    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 clear the tempdb

    Abu Dina (9/21/2012)


    Google DBCC SHRINKFILE

    And after you've done that, find the kb article that advises not to shrink TempDB and why.

    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: Log file backed up as .bak

    Extension doesn't matter. You could call a SQL backup file readme.txt and it would still be a SQL backup file. If those are log backups, you can restore them 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: Help writing SQL Server development guide!

    PiMané (9/21/2012)


    Yep, that the main goal.. but if they can't be avoided is it better to insert the "cursor" data on a cursor LOCAL FORWARD_ONLY FAST_FORWARD or on a 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: Question on ACID properties

    stevro (9/21/2012)


    I agree as you said that it is two individual operations, but going back to the original question, that is just the point I am making. It is still...

    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 Memory

    If SQL is using too much memory, reduce max server memory. Unless you're doing odd things with CLR, the non-buffer memory shouldn't be that high.

    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: Passed 70-448 going for 70-452. What's Next ?

    There's also the MCSE for BI. Requires the MCSA and 2 more exams.

    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 Memory

    Normal, expected behaviour. Max server memory sets the size of the buffer pool. SQL also uses something called non-buffer memory which is outside the buffer pool and hence over and...

    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: Microsoft Certified Master

    The score report comes in the post. Eventually. Mine took over a month to arrive.

    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: Question on ACID properties

    That's not an implicit transaction, that's auto-commit mode. Implicit transactions is when you have SET IMPLICIT TRANSACTIONS ON.

    The create table doesn't roll back for the same reason the create 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: IN Vs INNER JOIN

    manub22 (9/20/2012)


    IN & NOT IN generally should be avoided and only be used when filtering some set of values or constants.

    Why?

    IN & NOT IN may return incorrect data while dealing...

    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: Intresting Question need answer ASAP

    David Moutray (9/20/2012)


    Somehow I think SELECT LEN('a') is too simple for Dave's competition. There must be some really obscure way of returning a 1.

    I can think of several hundred...

    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 - 16,531 through 16,545 (of 49,552 total)