Viewing 15 posts - 2,836 through 2,850 (of 7,636 total)
I think that I would have to see the query to understand what you were getting at. Is the error your only problem with it then?
April 16, 2009 at 5:00 pm
Execute this command and tell us the results:
SELECT *
FROM fn_trace_getinfo(default);
April 16, 2009 at 4:45 pm
andrew gothard (4/15/2009)
Jeff Moden (4/14/2009)
Jim Russell (4/14/2009)
Charles Kincaid (4/13/2009)
April 16, 2009 at 4:34 pm
And the [ code ] tags would make life easier for all of us.
April 16, 2009 at 4:15 pm
Oh, sorry. i thought that you were doing "Contribute Article".
April 16, 2009 at 4:12 pm
Bruce W Cassidy (4/16/2009)
[font="Verdana"]On another site I frequented, this was known as the "coke spew". You got extra points if it was a nasal coke spew.[/font]
Ow, now that burns!
April 16, 2009 at 4:07 pm
Right Mike. And as the series goes on we will get to increasingly complex, difficult cases, so at some point it should reach a level where everyone can learn...
April 16, 2009 at 4:05 pm
Attach it as txt. I am sure that others have done it before.
April 16, 2009 at 4:00 pm
This should do it:
INSERT TableTest(
ID
,AsOfDate
,Amount
)
SELECT ID = p.ID
, AsOfDate = dbo.fnsysMonthEnd(DATEADD(mm,mi.MonthIncr,@datAsOfDate))
, Amount = CASE WHEN s.BMV0 THEN ((p.BMV/s.BMV)*TQF)/3
ELSE TQF/3 END
FROM @tblPort p
...
April 16, 2009 at 3:54 pm
Ther used to be an Access Upgrade tool that would do this for you. Not sure if Access still has it or not.
April 16, 2009 at 3:16 pm
Code="plain" seems OK to me. Other than that, you could post a picture, or include it as an attachment.
April 16, 2009 at 3:12 pm
Don't multiply the Order Quantity over the Phantoms, only apply that multiplication to the terminal line quantities.
As for your error, that's an entirely different matter. You will have to...
April 16, 2009 at 3:08 pm
david.chakraborty (4/16/2009)
I added(Select Count(*) from Table)>0 in the where clause and it seemed to have worked
The EXISTS function is faster.
April 16, 2009 at 3:03 pm
Viewing 15 posts - 2,836 through 2,850 (of 7,636 total)