Viewing 15 posts - 31 through 45 (of 250 total)
Todd Carrier (2/26/2008)
How about adding a TOP (1) clause to the SELECT and an ORDER BY COUNT (tc) DESC ?
If I do it like this, I just get one record...
February 26, 2008 at 3:53 pm
Sorry for the confusion. Each Acctcode can be associated with up to seven products. I need to return all acctcodes with each assciated product unless the acctcode = 'xh364'. In...
February 22, 2008 at 1:59 pm
Thanks for your responses. I'm going to do more troubleshooting, and I'll come back to this if a solution does not arise from my findings.
February 13, 2008 at 9:36 am
Thanks for the responses. I'm going to have to take another look at it.
February 8, 2008 at 3:24 pm
It looks like this might work.
Thanks again for your help!
February 5, 2008 at 3:15 am
with the CASE nested in the SUM, I got this:
Msg 130, Level 15, State 1, Line 5
Cannot perform an aggregate function on an expression containing an aggregate or a subquery.
February 4, 2008 at 4:09 pm
I never thought to just copy and paste the 'box' into a replace function. That worked. I set the 'convert binary data' in the DSN first, but that had no...
November 20, 2007 at 1:42 pm
A Sample of errant data looks like this:
901 Hwy 282 SW?
You should see a box...
November 20, 2007 at 11:59 am
tbl_PaymhistCurrentWeek
( AcctCode varchar(10) Default '' Not Null,
Co char(2) Not Null,
AcctCodeWithZeros varchar(20) Null
CONSTRAINT (PK_PaymhistCurrentWeek) Primary Key Clustered
(AcctCode, Co)
)
November 1, 2007 at 7:36 am
Check out the information in this post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1209825&SiteID=1
There is at least one other URL within this post that you should also look at.
CSDunn
October 31, 2007 at 8:19 am
Never mind on this. I wound up using a script task.
CSDunn
August 30, 2007 at 9:06 am
Never mind on this. I put the code into a table UDF, and the UDF appears to overcome whatever beef SSIS has with the raw SQL statement.
August 28, 2007 at 12:28 pm
I can't belive I didn't see that BEGIN and END were out of place. Thanks!
CSDunn
August 28, 2007 at 12:26 pm
Viewing 15 posts - 31 through 45 (of 250 total)