Forum Replies Created

Viewing 15 posts - 871 through 885 (of 1,086 total)

  • RE: Need trigger to split 1 filed to 4

    Paul, you were absolutely correct!    I did not look at the code thoroughly and did not recognize that. 

  • RE: Need trigger to split 1 filed to 4

    That is VERY cool!  Thanks! 

    I have not seen that function... 

  • RE: Tax Day

    I would be Libertarian in a nano-second if they would change their stance on abortion.  This is definately not the forum to get into that subject...

  • RE: urgent please

    It looks as if int_id is a Primary Key.  You could that with a WHILE loop and drop the need for a cursor.  Otherwise, you could make a Identity Field...

  • RE: Tax Day

    Oh man..., of all people to argue this point with...    I love it when you follow my replies and make my code, (or answers)...

  • RE: Need trigger to split 1 filed to 4

    I think Judith's code would work for each individual Insert - Tertius may know of further constraints to apply.  It looks like a nice, clean use of CharIndex...

  • RE: Need trigger to split 1 filed to 4

    Here is yet another possibility.  Since the other posts taught me you can use @Variable declaration within a Trigger, I used the following approach.  Three major things:  One, I assumed...

  • RE: Need trigger to split 1 filed to 4

    This is a tough one. 

    I have started something, (using CHARINDEX), but getting past Part2 is proving difficult for me.  I do not write that many Triggers.  Can a stored...

  • RE: Function - Add sum of digits

    Here is a quick, simplified script, (I am assuming five decimal places will suffice and the length of the values is no greater than ten places): 

    DECLARE @OriginalValue varchar(25),

     @Sum...

  • RE: Capturing Exception Records

    It sounds to me as if there are two ways to understand this question. 

    The basic syntax would seem to me to be:

    SELECT * FROM TableA WHERE TableA.IdentityField NOT EXISTS(...

  • RE: DateTime format to mmmdd format

    Thanks Frank! 

    I did not know that the STR function would handle dates.  Cool!

    I cannot get Jeff's solution to work without using GETDATE(). 

    SELECT REPLACE( CONVERT( char(6), '20050101', 100),...

  • RE: -2147467259 connection error

    Suggestions I found were make sure SQL Agent is running and check your timeout; you may need to increase the length of timeout...

    Good hunting...

  • RE: SELECT ALL FIELDS , best method ??

    Just a quick tip: IF EXISTS( SELECT TOP 1 * FROM [vwDups]) will be a bit quicker to check for existence...

  • RE: date type error?

    Good eye, Vladan!!

  • RE: DateTime format to mmmdd format

    Glad to help Cory.  I would highly recommend reading the rest of the post and especially Frank's article.  I plan to read over the weekend. 

Viewing 15 posts - 871 through 885 (of 1,086 total)