Viewing 15 posts - 871 through 885 (of 1,086 total)
Paul, you were absolutely correct!
I did not look at the code thoroughly and did not recognize that. ![]()
I wasn't born stupid - I had to study.
April 27, 2005 at 11:57 am
That is VERY cool! Thanks! ![]()
I have not seen that function... ![]()
I wasn't born stupid - I had to study.
April 26, 2005 at 3:03 pm
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... ![]()
I wasn't born stupid - I had to study.
April 26, 2005 at 2:38 pm
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...
I wasn't born stupid - I had to study.
April 26, 2005 at 1:08 pm
Oh man..., of all people to argue this point with...
I love it when you follow my replies and make my code, (or answers)...
I wasn't born stupid - I had to study.
April 26, 2005 at 11:58 am
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... 
I wasn't born stupid - I had to study.
April 26, 2005 at 8:54 am
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...
I wasn't born stupid - I had to study.
April 26, 2005 at 8:15 am
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...
I wasn't born stupid - I had to study.
April 25, 2005 at 3:41 pm
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...
I wasn't born stupid - I had to study.
April 25, 2005 at 1:31 pm
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(...
I wasn't born stupid - I had to study.
April 25, 2005 at 11:54 am
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),...
I wasn't born stupid - I had to study.
April 25, 2005 at 11:01 am
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... ![]()
I wasn't born stupid - I had to study.
April 22, 2005 at 9:50 pm
Just a quick tip: IF EXISTS( SELECT TOP 1 * FROM [vwDups]) will be a bit quicker to check for existence... ![]()
I wasn't born stupid - I had to study.
April 22, 2005 at 9:02 pm
Good eye, Vladan!! ![]()
I wasn't born stupid - I had to study.
April 22, 2005 at 8:47 pm
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. ![]()
I wasn't born stupid - I had to study.
April 22, 2005 at 8:43 pm
Viewing 15 posts - 871 through 885 (of 1,086 total)