Viewing 15 posts - 1,711 through 1,725 (of 18,926 total)
You might as well insert the 10 parameters in the tvp (without bothering with ifs) and then use where value is not null in the concat function.
October 26, 2011 at 7:37 am
Cadavre (10/26/2011)
Ninja's_RGR'us (10/26/2011)
Cadavre (10/26/2011)
Ninja's_RGR'us (10/26/2011)
FOR XML PATH.
I've seen that suggested in the past. I don't have a full understanding of what it does so I...
October 26, 2011 at 7:25 am
dick.baker (10/26/2011)
@cfradenburgthanks for your reply, and I apologise for my last line which was out of order
- perhaps Q just hit my funny-bone badly !
Hence my punching bag idea :-D....
October 26, 2011 at 7:25 am
Cadavre (10/26/2011)
Ninja's_RGR'us (10/26/2011)
FOR XML PATH.
I've seen that suggested in the past. I don't have a full understanding of what it does so I recommend you...
October 26, 2011 at 7:22 am
Tony++ (10/26/2011)
October 26, 2011 at 7:18 am
Cadavre (10/26/2011)
Ninja's_RGR'us (10/26/2011)
NP.Was what so important in that meeting that could make this unbeknownst guy wait for his answer! 😀
You should talk to the authorities about that!
heh. I'll attend...
October 26, 2011 at 7:17 am
You can try with
FOR XML PATH.
FOR XML PATH TYPE
I've seen that suggested in the past. I don't have a full understanding of what it does so I recommend...
October 26, 2011 at 7:15 am
NP.
Was what so important in that meeting that could make this unbeknownst guy wait for his answer! 😀
You should talk to the authorities about that!
October 26, 2011 at 7:11 am
I hit google in case I could find something useful (Paul Randal's posts... as he's the ms guy who wrote the code!).
That thread might help out even if you seem...
October 26, 2011 at 7:08 am
SaintGr8 (10/26/2011)
Ninja's_RGR'us (10/26/2011)
Works reasonably fast here so I didn't bother trying to find faster way to access the...
October 26, 2011 at 7:03 am
The way I do this without preaggregating everything is with an outer apply.
Works reasonably fast here so I didn't bother trying to find faster way to access the data, so...
October 26, 2011 at 6:47 am
ChrisM@Work (10/26/2011)
SaintGr8 (10/26/2011)
Hello!Please run the queries below to get along....
Your script has numerous faults - I'm sure if you fix them and repost, it won't take long to solve this.
I...
October 26, 2011 at 6:38 am
Why SPACE(0) instead of ''?
P.S. Nice solution ;-).
October 26, 2011 at 6:34 am
ChrisM@Work (10/26/2011)
L' Eomot Inversé (10/26/2011)
Do we have a would-be Celko here? A somewhat style-less and inept one, perhaps, but...
Celko's less personally offensive. This guy would benefit from a warning...
October 26, 2011 at 6:32 am
derekr 43208 (10/26/2011)
Cadavre (10/26/2011)
DECLARE @sql AS VARCHAR(MAX)
SELECT @sql = COALESCE(@SQL + '; ', '') + sql_command
FROM (SELECT 'USE ' + QUOTENAME(name) +
...
October 26, 2011 at 6:31 am
Viewing 15 posts - 1,711 through 1,725 (of 18,926 total)