Forum Replies Created

Viewing 15 posts - 5,371 through 5,385 (of 49,552 total)

  • RE: Trigger to show which stored proc has updated a table

    No. An update trigger fires for any update. You can do checks in the trigger using either the UPDATE() function or checking the inserted and deleted tables and then decide...

    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: Trigger to show which stored proc has updated a table

    No, it won't. EventData is only for DDL triggers.

    I don't think there's an easy way to do what you're asking.

    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: Trigger to show which stored proc has updated a table

    Create an update trigger, it'll fire on every update. In the SQL that you have inside the trigger, doing whatever you want the trigger to do, you would filter WHERE...

    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: Creating an index including non-key columns

    Yes, the missing index recomendations are broken and sometimes recommend indexes which exist, and besides you should never create from the missing index details without lots of testing.

    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: Creating an index including non-key columns

    SSMS doesn't. SSMS is just a client tool. It sends queries to SQL Server and displays results.

    One component of the SQL Server engine is the query optimiser. It's job 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: Creating an index including non-key columns

    Maybe. Depends on the queries using the index.

    Should be some detail in http://www.sqlservercentral.com/articles/Indexing/68636/

    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 check if the database itself is encrypted or only the backups ?

    SQL 2008 doesn't have the ability to encrypt only backups, that was added in SQL 2014. is_encrypted in sys.databases indicates whether Transparent Database Encryption is enabled for the database

    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: Configuration of Maintenance plan for full database backup and log back up.

    Taking one log backup a day is a very poor 'strategy'. If you're going to do that, just put the DB into simple recovery and then you don't need 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: run SQL job continuously

    If you schedule it every 10 minutes, then it will run every 10 minutes (unless the job is still running at the point it would run again, in which case,...

    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: Stored Procedure with interesting behavior

    a4apple (7/8/2015)


    All I am doing is two update statements in this procedure ... should I still use OPTION RECOMPILE???

    Very hard to say without seeing the proc and the plans. Basically...

    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: Backups

    Welsh Corgi (7/8/2015)


    What do you consider best practices?

    Designing a backup strategy that meets the company's RPO, RTO and maintenance windows.

    It's all well and good for you to say 'I feel...

    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: alwayson

    giri10488 (7/8/2015)


    i already tried on google but i want how its work exactly.

    That's not something that can be explained in a forum post. One could write an entire book on...

    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?

    Alvin Ramard (7/8/2015)


    Sanity? Oh Sanity? Where are you hiding?

    I've had it. Enough is enough! When are people gonna stop hiring people that don't have a clue about they're hired...

    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: Aggrigation of 200 Mil Data records

    Sounds like the kind of project that several of my colleagues do. I know some are between projects at the moment, and we definitely have the skills. Drop me 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: cluster

    r.sundarmca10 (7/8/2015)


    Please give me set off high-availability interview Q&A with some real time examples.

    Sure.

    "Describe to me the last high-availability implementation you did. What technology did you use and why? What...

    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 - 5,371 through 5,385 (of 49,552 total)