Viewing 15 posts - 1,816 through 1,830 (of 5,502 total)
Can you post the actual execution plan together will both table definition including any index definition if they exist? (I'd expect no index on the tables since you mention a...
March 3, 2011 at 3:18 pm
I would either use a varchar(8000) variable and a comma delimited list (or any delimiter that will never ever be part of the parameter) and split it in the sproc...
March 3, 2011 at 3:12 pm
Lowell (3/3/2011)
LutzM (3/3/2011)
Duplicate post. No replies please.Original post can be found here
😀
March 3, 2011 at 3:09 pm
pamozer (3/3/2011)
Thank you. I actually like the version not using cross apply.
... until you test both versions against a larger XML file...
Your preference may change 😉
March 3, 2011 at 2:42 pm
Duplicate post. No replies please.
Original post can be found here
March 3, 2011 at 2:40 pm
CirquedeSQLeil (3/3/2011)
...I'm confused now. HIPAA = HIPPO != Rhino 😎
Hoola-HIPAA-Hippo as requested 🙂
March 3, 2011 at 2:37 pm
You could use a cte with ROW_NUMBER() OVER (PARTITION BY Case_Id ORDER BY DateTime DESC) and then query for row=1.
March 3, 2011 at 11:45 am
phood (3/3/2011)
March 3, 2011 at 11:34 am
Since I don't know where the blank is coming from (presumably because Field1 is defined as CHAR(5), but it's also possible that the value of field2 starts with a blank)...
March 3, 2011 at 10:50 am
You could modify your current script to return the query or any other information before the actual statement.
Something like
SELECT 'query: SELECT * FROM sys.columns'
SELECT * FROM sys.columns
March 3, 2011 at 10:46 am
would you please provide the sample data you'd like to concatenate?
Something like
SELECT 'abc','def'
Also, please include your current approach.
March 3, 2011 at 10:38 am
Please provide table definition and ready to use sample data as described in the first link in my signature. Also, please provide your expected result based on those samples together...
March 3, 2011 at 10:13 am
The issue is the
CONVERT(VARCHAR,DATEADD(DAY,2, @fec),112),
part of your GROUP BY statement.
Since there is no column reference, it'll throw the error you see.
You should get the expected result set result by either...
March 2, 2011 at 12:05 pm
Craig Farrell (3/2/2011)
By Jove! You've forgotten about taking care of your SOX while you're at it! In dealing with a rainforest, you'll catch some nasty things...
March 2, 2011 at 11:19 am
Viewing 15 posts - 1,816 through 1,830 (of 5,502 total)