Forum Replies Created

Viewing 15 posts - 20,251 through 20,265 (of 49,552 total)

  • RE: varchar to nvarchar

    Eugene Elutin (2/17/2012)


    GilaMonster (2/17/2012)


    An nvarchar(40) holds 40 characters.

    and its length is 80 bytes, to accomodate unicode...

    Its length is anything from 2 bytes to 82 bytes depending on the data stored...

    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: varchar to nvarchar

    An nvarchar(40) holds 40 characters.

    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: Stairway to SQL Server Indexes: Step 12, Create Alter Drop

    Charles Tsang (2/17/2012)


    Something worth keeping in mind is that Index reorganization uses the database's transaction log file as a working space.

    Rebuilding it allows the option of using the TempDB as...

    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: DTA - Database tuning advisor

    It's not looking for problems in the statements, it's not going to pick up sub-optimal coding practices. It's just looking to see if indexes and/or statistics are needed (and depending...

    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: Another Transaction Log Issue

    Please read through this: http://www.sqlservercentral.com/articles/Transaction+Log/72488/

    If it's just growing and growing then something is holding the log active, you need to find what it is and resolve it.

    Never shrinking is...

    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: DTA - Database tuning advisor

    I think maybe you misunderstand how DTA works. When it's given a trace file, it tunes the statements in the trace file by either recommending or creating (depending on 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: DTA - Database tuning advisor

    Not sure I understand you.

    The numbers are to do with what DTA processed in the trace.

    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: DTA - Database tuning advisor

    Is there a question here?

    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 the posted questions getting worse?

    Steve Jones - SSC Editor (2/14/2012)


    Steve Jones - SSC Editor (2/14/2012)


    Jeff Moden (2/13/2012)


    Shifting gears, I was going through the posts from "Posts added today" and there had to be two...

    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: Stairway to SQL Server Indexes: Step 12, Create Alter Drop

    phelmer (6/21/2011)


    When an index is created on that table (clustered or non-clustered), the command returns to the client very quickly to say "Completed successfully". It can't possibly have built 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: T-SQL Performance 1

    You might also have to remove the ID column to get a seek, depending how selective that column is.

    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 optimization

    Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    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 upgrade

    Can't remember.

    Doesn't really matter, it's just a compatibility setting, nothing more. You want it at 100, set it to 100.

    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: locking in sql server

    SQLKnowItAll (2/16/2012)


    If you don't know the answer to this, you probably should not be interviewing for the job.

    So tell me then, how do you (not the database engine) implement...

    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: locking in sql server

    Err, you don't. The database engine takes care of locking for 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

Viewing 15 posts - 20,251 through 20,265 (of 49,552 total)