Forum Replies Created

Viewing 15 posts - 57,421 through 57,435 (of 59,059 total)

  • RE: Generic Audit Trigger

    Hmmmm.... I'm wondering if the error I got when I ran you build scripts might be a hint of your DELETE problem...

    Warning: The table 'AuditDetail' has been created...

  • RE: Trigger issue

    Understood and appreciate the feed-back but riddle me this... did you change your code so that it does NOT use an UPDATE, yet 

  • RE: Split a field into multiple records

    Paul Cresham's function is great... I have a similar one that uses a Tally table... thought you might enjoy seeing it... the documentation is longer than the function itself...

    October 11, 2006 at 8:21 pm

    #665346

  • RE: Pass a value to a trigger...

    Peter,

    Thanks for being patient with the explanation...  It would be really nice to combine both methods so that if something other than your proc fires the trigger, you can still...

  • RE: Trigger issue

    Yep, sorry about that... I got a little frustrated with you... everyone has been trying to tell you that you're asking for "Death by SQL" by doing the UPDATE right...

  • RE: syntax error.

    There's really no physical problem to keep you from using it... However, Microsoft and a bunch of folks on this forum have indicated that in order to guarantee that your...

  • RE: Generic Audit Trigger

    I guess I'm just going to have to materialize this code and test it...

    Would you post the CREATE TABLE statement for the two audit tables and the CREATE FUNCTION...

  • RE: How to do a Select xx from

    And, you need to be real careful if this comes anywhere near a GUI... think "SQL Injection".  Theres a huge amount of info on how to prevent it... do a...

  • RE: Pass a value to a trigger...

    I guess I don't understand... obviously, you are finding the correct Windows user name somewhere along the line in your stored procedure because you want to "pass it" to a...

  • RE: syntax error.

    It's the triple quotes in the variable assignment that are the most recent problem...

    Try this...

    declare @townID varchar(25),

         @sql varchar(1000)

    set @townID = '00003' --<<THIS IS WHERE THE...

  • RE: Count Decimal Places

    Old guys rule...   1 million conversions... 11 seconds... works for positive numbers, negative numbers, zero, and NULL...

    DECLARE @Places INT

     SELECT TOP 1000000...

  • RE: Trigger issue

    If you run this code, you might just want to have your DBA turn on Trace Flag 1204 just to be safe

  • RE: Generic Audit Trigger

    Ok... here it is... sans cursors... just so you know, I have NOT tested this particular code

    There are a couple of other things you need to know...

    1. You need to...
  • RE: Generic Audit Trigger

    Oh jeez... If you're going to insult me with a cursor

    Just kidding a bit... lemme see what I can do... I'll be back...

  • RE: Generic Audit Trigger

    William is correct... if you update a column to the same value, it will register as being updated even though it has the same value... it's up to your code...

  • Viewing 15 posts - 57,421 through 57,435 (of 59,059 total)