Viewing 15 posts - 31 through 45 (of 859 total)
AndrewSQLDBA (12/12/2012)
December 12, 2012 at 2:10 pm
AndrewSQLDBA (12/12/2012)
December 12, 2012 at 1:55 pm
Cliff Jones (12/12/2012)
Ray K (12/12/2012)
Daniel Bowlin (12/12/2012)
motleycrue
wine
Complain
December 12, 2012 at 12:37 pm
This looks like homework or an interview question so ill post some usable data. Can you show what you have tried so far?
CREATE TABLE tmpProduct (
Product VARCHAR(32),
[Year] INT,
QTY INT,
CONSTRAINT...
December 12, 2012 at 11:12 am
This looks like a running total (from the math in the rCTE). Have a look at Jeff Modens article on the "Quirky Update" http://www.sqlservercentral.com/articles/T-SQL/68467/ It will at least...
December 12, 2012 at 10:47 am
AndrewSQLDBA (12/12/2012)
And there are...
December 12, 2012 at 10:41 am
No problem. the only issue is i dont think it will work with the table variables. for those you may need dynamic sql or just use a temp...
December 12, 2012 at 10:25 am
one option is to create the table with an IDENTITY (1,1) and then a DBCC CHECKIDENT to reseed the table at the given value passing a variable to it
IF OBJECT_ID('dbo.Test')...
December 12, 2012 at 10:20 am
GSquared (12/11/2012)
CELKO (12/11/2012)
You have no...
December 11, 2012 at 2:13 pm
DarthBurrito (12/6/2012)
December 6, 2012 at 4:10 pm
Rob-350472 (12/6/2012)
As...
December 6, 2012 at 3:45 pm
well the process ran yesterday evening with no ill affects. unfortunately i don't believe i can speed it up any more because of business rules about the data. ...
December 6, 2012 at 11:00 am
I know this is an old post but needed to update. i just experienced this same error (only on 2008) and changing to the local system account for the...
December 6, 2012 at 10:57 am
This looks like a gaps and island problem. it also from the problem description sounds like homework or an interview question.
Take a look at this for a detailed explanation...
December 5, 2012 at 3:04 pm
toddasd (12/5/2012)
All your answers lie here:
Another person who posts the same dynamic sql article.
i highly recommend the suggested reading.
December 5, 2012 at 2:18 pm
Viewing 15 posts - 31 through 45 (of 859 total)