Forum Replies Created

Viewing 15 posts - 3,931 through 3,945 (of 49,552 total)

  • RE: Get Set For Speed

    Tom Staab (12/29/2015)


    Regarding your 3 points about statistics, however, I just double-checked my code, and I don't have any SET STATISTICS statements.

    I just downloaded the attachment to your...

    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: Get Set For Speed

    Another comment:

    It is important to note that set-based design will not automatically result in faster performance, especially if that particular query includes subqueries in the SELECT clause. For example,...

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

    To rebuild a 50GB index, you need 50GB free in the data file (at least) and more than 50GB free space in the log file. If you don't have that,...

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

    andrewcamary (12/29/2015)


    As suggested above, It is not recommended to shrink database anymore. Instead, you can shrink data file if it required in your environment.

    Err.... no. All the comments above about...

    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: memory consumption by SQL server instance

    Doesn't matter. If there's activity, then SQL will be caching data. That's what uses the most memory.

    Check the Total Server Memory counter in perfmon, but chances are, if SQL's been...

    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: Upgrading from CTP to RTM, 2016 RTM release date

    I strongly recommend a fresh install. CTPs are notorious for not uninstalling cleanly.

    A release date has not been set by Microsoft, hence you won't see any dates.

    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: memory consumption by SQL server instance

    If you've told SQL it's allowed to use 14GB of memory, there's a very good chance that it's using all 14GB.

    Why are you certain it's not using the full memory...

    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: Possible to insert unaffected by rollback?

    "Rollback to a saved inner transaction"

    Careful there. SQL doesn't actually have nested transactions. It's a syntactical lie. If there's a rollback inside nested transactions, everything is rolled back, not 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: Query on drop and create Index

    vivekgrover44 (12/28/2015)


    How does fragmentation causes slow updates of a large table? Could you please put light on this?

    It doesn't usually, which is why I said to check whether 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: SQL Server 2008 Compress Backup

    Yes. All editions can read compressed backups. The Enterprise limitation is on creating them

    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: The Most Common Query Blunders...

    Mine would have to be UPPER(LTRIM(RTRIM(<SomeColumn>) = @Parameter, in a case-insensitive database where none of the rows have leading whitespace.

    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 on drop and create Index

    GonnaCatchIT (12/24/2015)


    Is it a good design to drop and create indexes at run time

    Not usually. It's done for bulk inserts, less so updates, but test both ways and see.

    Also,...

    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: The Most Common Query Blunders...

    I see these sooo many times: https://www.simple-talk.com/content/article.aspx?article=2280, plus scalar UDFs, multi-statement table-valued UDFs, nested views, non-SARGable predicates

    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 to 2014

    Robert klimes (12/24/2015)


    IMO, the best bet would be to create the 2014 cluster on new hardware and then migrate database(s),logins, jobs,etc to new instance.

    This.

    I don't think you can convert...

    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: create stored procedure with if condition

    Eirikur Eiriksson (12/24/2015)


    Quick question, are you storing passwords in plain text?

    😎

    Looks that way. So a bunch of T-SQL problems that Kevin picked up and a critical, major security flaw.

    Passwords should...

    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 - 3,931 through 3,945 (of 49,552 total)