Forum Replies Created

Viewing 15 posts - 226 through 240 (of 516 total)

  • RE: Mirrors

    Same here...also got the question wrong. Thought it would set-up but not start.

    Always good to learn something new 🙂

  • RE: How to find last database access date/time?

    John Mitchell-245523 (12/11/2012)


    No. The query that you posted above, run it every five minutes and insert the results into your audit table. Bear in mind that if a...

  • RE: How to find last database access date/time?

    Thanks Gail!

    The other thing that you might be able to do is put down an extended events session, probably with a ring buffer that you poll or with a bucketiser...

  • RE: How to find last database access date/time?

    John Mitchell-245523 (12/11/2012)


    Try dumping the results of your query into an audit table every five minutes. You'll want to test and plan carefully so that you don't end up...

  • RE: How to find last database access date/time?

    Correct!

    Is there some way Logon Trigger be used to ascertain this information. I know Logon trigger operate on sever level, still checking if that can be tweaked in some...

  • RE: STUFF - 2

    Thank you for another good question Ron!

    NULL value will also be returned in the below two conditions:

    -- When starting position is negative

    SELECT STUFF(@str, -1,5,@stx)

    -- When starting position is greater than...

  • RE: Which Statement will execute sucessfully

    What would happen, if the current user is mapped to any one of the two schema's by default? Last statement would always throw an error!!

    As this option was not one...

  • RE: Aggregates

    Stewart "Arturius" Campbell (12/5/2012)


    Interesting question, thanks.

    just bear in mind that GROUPING_ID only came into effect with SQL2008. Those still using 2005 will not have knowledge hereof...

    Well said! This seems to...

  • RE: Aggregates

    An easy one for today. Thanks for posting!

  • RE: Log Shipping - Monitor Server

    Nice question Raghu! Thanks for posting 🙂

  • RE: SET Options - 2

    Good Question Ron. Thanks for posting. Its always good to revise our basics 🙂

  • RE: Steps to verify database diagram

    Create a new Database diagram from the database under verification using SSMS. Try to compare the visual diagrams thereafter.

  • RE: LIKE a vowel

    An interesting question. Put in a lot of thinking before attempting it and got it wrong in the end 🙂

  • RE: wiered - Self Referential Key

    karthik M (11/29/2012)


    I want to achieve this without disabling FK.

    is there any other way to do this?

    Phil method looks ok.

    Beside this, is it a good practice to design...

  • RE: SQL

    Stewart "Arturius" Campbell (11/30/2012)


    Koen Verbeeck (11/30/2012)


    Got it wrong because you can update or delete rows in the primary tables if you specify ON CASCADE options.

    Next time do more homework please.

    +1

    +1

    I...

Viewing 15 posts - 226 through 240 (of 516 total)