Forum Replies Created

Viewing 15 posts - 11,356 through 11,370 (of 49,552 total)

  • RE: Finding Server Name

    OnlyOneRJ (10/9/2013)


    we want to search a text in all tables of a database..

    All the text of all the columns of all the tables? That's going to be slow as molasses...

    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: Copy Only - Security Policy

    I don't believe it's possible. Even if there was a policy for it, policies are implemented by triggers and they're AFTER triggers and you can't roll a backup back.

    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: Impact on production server

    dan-572483 (10/9/2013)


    A busy server is going to have a lot of T-SQL batches completed in a short amount of time. I've successfully ran traces against busy servers while...

    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: Transaction COMMIT

    Yes, it will. ROLLBACK will undo all data modifications right back to the outer BEGIN TRANACTION (as per documentation)

    Nested transactions are a lie, they don't actually exist. The second, third,...

    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: Impact on production server

    dan-572483 (10/9/2013)


    When running SQL Profiler be careful to set the filters to be as restrictive as possible while still capturing the data you're looking for. This will both minimize...

    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: Impact on production server

    Minnu (10/9/2013)


    Hi Team,

    Heard that "Running SQL Profiler on Production environments will degrade performance of server and it adds additional load on the CPU"

    The 'running profiler on production environments' doesn't refer...

    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 update column city value from 'A' to 'B' and 'B' to 'A' in single query

    LutzM (10/8/2013)


    Will it be consistent/reproducable or may it vary under certain conditions (e.g. parallelism)?

    The latter. Which is why those many-one updates have such a bad rap (deservedly). It's essentially another...

    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: Catch invalid object and rollback transaction

    K Currie (10/8/2013)


    What if the syntax error isn't in the table name but in a column name?

    If it's a missing column, the query won't even parse and won't start executing...

    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 update column city value from 'A' to 'B' and 'B' to 'A' in single query

    LutzM (10/8/2013)


    if we update a "left" table in a 1 ..n relationship, will sql server perform n updates or will it just do a single update?

    Single.

    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 recover a job that i deleted from job activity monitor

    Then you'll have to recreate the job from scratch. Once done, may I suggest setting up backups? The fact that it's a dev server does not mean it's unimportant.

    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 recover a job that i deleted from job activity monitor

    Restore a backup of MSDB as a user database, extract the job (it'll be in the sysjobs and sysjobsteps tables), recreate it.

    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 to improve query time

    If you want further help to possibly make it even faster, please post full query, table definitions, index definitions and execution plan.

    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: Update statistics job is failing

    In that case may I suggest a simple after/instead of insert trigger to check for (and fix) invalid data?

    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: Update statistics job is failing

    A better solution might be to change the column to numeric. Or is that not possible?

    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: Out of memory error

    Other than the fact that you won't see any results, no.

    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 - 11,356 through 11,370 (of 49,552 total)