Viewing 15 posts - 9,241 through 9,255 (of 10,144 total)
Select A.pic_id, A.Album_Type_Id, (Select MAX(B.pic_id) From Album B Where B.pic_id < A.pic_id) as Next_Id
From ALbum A
Where A.pic_id = @pic_id
And A.Album_Type_Id = @Album_Type_Id
December 8, 2008 at 8:02 am
Here's a slightly different take on it:
[font="Courier New"]SET DATEFORMAT MDY
DECLARE @Tbl TABLE (
Symbol INT,
MarketDate DATETIME,
Price DECIMAL(10,2),
Volume INT
)
INSERT INTO @Tbl
VALUES (1, '1/1/2008', 1.00, 1)
INSERT INTO @Tbl
VALUES (1, '1/2/2008', .98, 10)
INSERT INTO...
December 8, 2008 at 7:52 am
waykna (12/8/2008)
December 8, 2008 at 5:49 am
Hi Wayne
Are TrdDay and period completely independent?
December 8, 2008 at 5:00 am
A Little Help Please (12/8/2008)
Chris, THANK YOU so much for your time and patients.You have helped my understand stand the process much better!!
I have commented out the RAISEERROR line and...
December 8, 2008 at 4:53 am
A Little Help Please (12/8/2008)
I think iv resolved the issue, at the bottom of the SP someone had put in some error constraints:
END
--Otherwise the files should not be updated
ELSE
BEGIN
Execute...
December 8, 2008 at 4:22 am
Step 3 - the step which fails - is this the step which transfers data from the bargains table to tblClients?
December 8, 2008 at 3:55 am
You're importing from a flat file to the table bargains? Is this the only step performed by SSIS?
December 8, 2008 at 3:42 am
A Little Help Please (12/8/2008)
I have just recently taken over looking after this DB. It was well before my time so Im not sure why this issue with the ClientID...
December 8, 2008 at 3:05 am
A Little Help Please (12/5/2008)
December 8, 2008 at 2:36 am
Why do you have different clients with the same clientID?
Why call your column ClientID if itdoesn't uniquely identify clients?
December 8, 2008 at 2:29 am
debjani.bedajana (12/7/2008)
December 8, 2008 at 2:22 am
Hi Mitchy
While there's a chance that this code could be tweaked to work, the first question is "what are you trying to do?"
Can you explain this in words e.g....
December 6, 2008 at 5:19 am
In addition to providing the material Gail has requested and following the advice of Gsquared, can you please post the whole batch of statements? Looking at the two queries you've...
December 6, 2008 at 1:59 am
You could use PATINDEX in a WHERE clause to identify rows which require editing. SUBSTRING also works with text datatype: passing the return value of PATINDEX to the start value...
December 5, 2008 at 8:53 am
Viewing 15 posts - 9,241 through 9,255 (of 10,144 total)