Viewing 15 posts - 23,626 through 23,640 (of 26,490 total)
Sergiy (11/20/2008)
Christopher Stobbs (11/20/2008)
You can't use ROW_NUMBER() in SQL 2000 or SQL 7VARCHAR(MAX) either.
But it's used in the table definition.
Nice catch Sergiy! :w00t:
November 20, 2008 at 8:31 pm
Based on what you provided, however, this is where I would start:
insert into dbo.table (
...
November 20, 2008 at 8:23 pm
First, again, all the code is better than part of the code. In this case, however, I have a question, is this particular question based on a trigger fired...
November 20, 2008 at 8:16 pm
I have to agree with Jeff. Keep the temporary tables and figure out how to get rid of the RBAR in your code. It's all the looping that...
November 20, 2008 at 8:09 pm
all you really need is this:
Insert into dbo.SITE_PUBLICATION_CHANGE_HISTORY
...
November 20, 2008 at 8:03 pm
And, I actually have to agree with Sergiy, to a point. There is also additional information that may change what you are doing. Is this an amoritization schedule,...
November 20, 2008 at 7:59 pm
Without seeing the code for the trigger, hard to say, but, why not just code the insert statement in the trigger with NULL where you need to put nulls instead...
November 20, 2008 at 7:47 pm
Haven't gone to bed yet, just finished dinner. It is only 7:42 PM where I live in the USA.
November 20, 2008 at 7:42 pm
Jeff Moden (11/20/2008)
Adrian Nichols (11/20/2008)
Jeff Moden (11/19/2008)
Boy oh boy do I ever agree with that! Guess that makes us "elitists", huh? 😛
I wouldn't say that makes you elitist in...
November 20, 2008 at 7:38 pm
That will probably help. What I am looking for is a pattern, if one exists.
November 20, 2008 at 7:37 pm
Jeff Moden (11/20/2008)
Lynn Pettis (11/20/2008)
Kicking_Fish0713 (11/19/2008)
Thanks...
November 20, 2008 at 7:06 pm
Sergiy, I don't think he is looking for the last day of each month. To be honest, I am not sure if he knows the right question to ask....
November 20, 2008 at 6:22 pm
Here is code that meets your requirements in your original post. I leave it to you to figure out how to add the date criteria to the query.
create table...
November 20, 2008 at 6:16 pm
First, why are you using a cursor to begin with?
Second, you haven't provided enough information for use to even help you. Please read the article below in my signature...
November 20, 2008 at 6:08 pm
This is what you should have provided us:
create table dbo.Orders (
OrderID int,
UserName varchar(25),
OrderDate datetime
);
create table dbo.Tasks (
...
November 20, 2008 at 6:02 pm
Viewing 15 posts - 23,626 through 23,640 (of 26,490 total)