Forum Replies Created

Viewing 15 posts - 16,486 through 16,500 (of 49,552 total)

  • RE: Error message: "The multi-part identifier could not be bound."

    Is there a trigger on that table?

    That particular piece of code can't throw that error, as bhc.coreprocesstoken18 appears nowhere in the update statement.

    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: System.OutofMemoryException

    Again, this is not a SQL Server error. This is not coming from the server, it's a client-side error coming from the client application. You cannot get a System.OutOfMemory exception...

    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: System.OutofMemoryException

    That's not a SQL Server error. That's a .net error (SQL is not written in .net). It's the client machine that is running out of memory and the client app,...

    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 Last Used Date

    It will.

    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 performance-- memory / I/Ocaching

    Nerds????

    Very hard to get the queries that return lots of rows. Getting ones that do huge numbers of reads is easier. Try

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/

    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: If MSDB is in Recovery, will SQL Agent Jobs still execute?

    Agent will be down until MSDB is back online. All the job definitions, schedules, history, etc are in MSDB.

    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: Understanding the difference between Join and Where filters - SQL 2008R2

    newbie2 (9/24/2012)


    AND RTRIM(LTRIM(SD.Code ))<>'';

    The RTRIM and LTRIM are unnecessary here. SQL ignores trailing spaces when checking string equality, hence '' = ' ', true no matter how many spaces...

    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: Understanding the difference between Join and Where filters - SQL 2008R2

    laurie-789651 (9/24/2012)


    2. You could consider using

    FROM Table1 SD WITH (NOLOCK) JOIN Table2 WITH (NOLOCK) etc.

    as long as the table isn't being updated - this saves time as no read...

    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: Understanding the difference between Join and Where filters - SQL 2008R2

    For inner joins there is no difference whatsoever. For outer joins, moving the filter from where to join changes the logic of the query. Hence it's not a matter 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: Changing Locations of DataFile

    Just that you don't have to detach the DB (which you can't do in some cases)

    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 Locations of DataFile

    No the files aren't moved for you. You have to go and move them yourself.

    As Perry said previously...

    • get the logical name and current path\filehame for each databases files that 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: Behavior of "NOT IN"

    Add OR nm IS NULL

    Null never matches any value, so you cannot have null returned from a in or not in.

    Your IN is expanded to this:

    NOT (nm='a')

    Now, the logical expression...

    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 Locations of DataFile

    The location you set for either data or log does not match where you actually moved them 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: Changing Locations of DataFile

    Is that the correct name of the data file?

    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: 70-461

    gphemail (9/23/2012)


    Here's the first example, which is the most obviously wrong....

    Please note that as per the NDA that you accepted when writing the exam, you may not distribute or reproduce...

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