Forum Replies Created

Viewing 15 posts - 18,196 through 18,210 (of 49,552 total)

  • RE: Why this behavior for NULL on int col

    Not at all. Read up on 3-state logic. TRUE, FALSE and UNKNOWN. Any comparisons with NULL (other than IS NULL/IS NOT NULL) return UNKNOWN, not TRUE or FALSE

    WHERE SomeColumn !=...

    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: Query tuning - Left Join vs. Inner Join vs. main table select

    Sorry, but what did you want me to say? That one is faster than the other? That one is better than the other?

    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: Script for Rebuilding indexes online

    If I may recommend... Don't reinvent the wheel, don't rebuild everything without checking. Use an existing index rebuild script

    http://sqlfool.com/2011/06/index-defrag-script-v4-1/

    http://ola.hallengren.com/Versions.html

    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: Query tuning - Left Join vs. Inner Join vs. main table select

    pdanes (6/8/2012)


    When I put in the two variations of the WHERE clause, filtering on either the main table or the appropriate aux table, I get identical results, but different...

    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: Secondary Data file (ndf)

    grummle (6/7/2012)


    I'm coming to this thread really late, but I wanted to thank you for your answer and to say that if I were looking to hire a DBA 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: Steps to find out / Resolve SQL Server High RAM usage in SQL Server 2008.

    Once again...

    High memory usage is typically what you want, it means SQL is using the resources on the server.

    Those values look good, I'd love a server with such high 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: Trying to find the compile time for a plan

    It's stored within the plans themselves. The properties of the top-most operator (the SELECT, UPDATE, INSERT, DELETE, etc) has a property CompileTime. That's the time in ms the query took...

    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: Db in recovery after restoring

    Support agreement?

    Long recovery time from lots of VLFs is not a bug. There have been several changes that MS made to try and optimise the recovery, knowing how many DBs...

    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: isnumeric() ?

    SQL_path (6/7/2012)


    Any ideas?? thanks

    Yes

    GilaMonster (6/7/2012)


    Try casting to float if the accuracy isn't a problem, it's a little more flexible than numeric. Other than that, see what that column contains other...

    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: isnumeric() ?

    IsNumeric should actually be called something like CanBeConvertedToSomeNumericdataType

    IsNumeric('123,234') returns 1, but it can't be converted to numeric, only money

    Try casting to float if the accuracy isn't a problem, it's 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: changing recovery model on production DB

    inevercheckthis2002 (6/7/2012)


    I was thinking (mistakenly, no doubt) that the transaction log would not be needed when switching to simple recovery model.

    Incorrect. All data modifications are logged, always

    So, let me pose...

    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: Datatype stored

    Sure

    DECLARE @DataType SYSNAME;

    SET @DataType = 'image';

    SELECT OBJECT_NAME(object_id) AS TableName ,

    c.name AS ColumnName ,

    t.name...

    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: changing recovery model on production DB

    What do you mean by 'go away'

    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: can we get this guy banned from the forums?????

    "I would use this solution" != "I would write this exact piece of code" Unless you define a solution to include the exact layout, format, punctuation, spacing, capitalisation, etc.

    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: can we get this guy banned from the forums?????

    Doesn't mean he's write exactly that in exactly the same format with the same odd variable naming and indentation.

    I find if very strange you're calling someone a sloppy coder purely...

    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 - 18,196 through 18,210 (of 49,552 total)