Viewing 15 posts - 1,816 through 1,830 (of 5,504 total)
Rog Saber (3/3/2011)
There are 15 Non-Unique, Non-Clustered indexes on MY_TABLE. I don't know how to get the execution plan in text - in only shows up graphically.
15 indexes? Can you...
March 3, 2011 at 4:03 pm
I would shred it in a normalized staging table together with a row number per termCondition and use that staging table to perform a CrossTab (or DynamicCrossTab, if needed).
Edit: here's...
March 3, 2011 at 3:25 pm
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
Viewing 15 posts - 1,816 through 1,830 (of 5,504 total)