Forum Replies Created

Viewing 15 posts - 1,456 through 1,470 (of 14,953 total)

  • RE: Audit Trail Generator

    You don't need to record the "new value" for a valid audit log. That's in the table and can be retrieved from there. Save yourself some storage space,...

  • RE: Audit Trail Generator

    Jeff Moden (5/18/2012)


    And someone please post one of the XML triggers. One of you 3 folks recommending this should have one right at your fingertips, yes? I'd like...

  • RE: Audit Trail Generator

    I once built a whole audit system for a database using For XML. Do the columns as "NullIf(Deleted.MyColumn, Inserted.MyColumn) as MyColumn", in the Select, and you very cleverly get...

  • RE: Condition statements

    For a dynamic column name like that, you'll either need to use an Unpivot statement that lists the months, or you'll need to use dynamic SQL. Sounds like you...

  • RE: Theorhetical MERGE Question

    mtassin (5/18/2012)


    Gazareth (5/18/2012)


    dwain.c (5/18/2012)


    I don't recall that being the error I was getting but since it is pretty explicitly saying that I was trying to be a naughty boy, I...

  • RE: Theorhetical MERGE Question

    dwain.c (5/17/2012)


    GSquared (5/17/2012)


    If you want to mess around with it a bit, it occurs to me that you could use an Output clause on a Merge statement to end up...

  • RE: Theorhetical MERGE Question

    If you want to mess around with it a bit, it occurs to me that you could use an Output clause on a Merge statement to end up inserting two...

  • RE: Do Interviews Work?

    sturner (5/17/2012)


    GSquared (5/17/2012)


    sturner (5/17/2012)


    I like to hire the ones I can pay the least amount of money. 😛

    I know a DBA you can get really inexpensively.

    It's mainly because he's...

  • RE: Condition statements

    I don't get what you're trying to do with "AS" there, and neither does SQL Server.

    "AS" in a Select statement indicates a column alias, but you have a data function...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (5/17/2012)


    jcrawf02 (5/17/2012)


    http://www.geekologie.com/2012/05/im-not-special-chart-of-how-common-a-bir.php Think it depends when your birthday is, too.

    Interesting. The second half of September is the most common!

    9 months after New Year's Eve parties. Yep....

  • RE: Do Interviews Work?

    sturner (5/17/2012)


    I like to hire the ones I can pay the least amount of money. 😛

    I know a DBA you can get really inexpensively.

    It's mainly because he's never done...

  • RE: Use your own optimizer to tune your queries

    Gullimeel (5/17/2012)


    I am not saying that it will make your future tuning easy or something like that. You have to keep looking for whether you query is still performaning better...

  • RE: Theorhetical MERGE Question

    Brandie Tarvin (5/17/2012)


    That's what I was wondering. Thank you, Gus. You have saved me some head-banging time.

    You're welcome.

  • RE: Do Interviews Work?

    I have my own technique for interviewing. It aims more at personality and intelligence than at specific skillset. Itdoes include the skills needed, but secondary in importance. ...

  • RE: Theorhetical MERGE Question

    Considering that you need to do two actions if you get a match (create new and cancel old), Merge isn't the right solution.

Viewing 15 posts - 1,456 through 1,470 (of 14,953 total)