Viewing 15 posts - 8,146 through 8,160 (of 14,953 total)
Overwriting it probably just forced a rebuild on the execution plan. That's probably the only difference. I'd have to see the function and any related tables to get...
October 14, 2009 at 8:28 am
If you have a Numbers table, you can select from that, and join it to a count from your reports table.
select Number as Hour,
(select count(*)
from reports
where report_date >= '1/1/2009'
and report_date...
October 14, 2009 at 8:24 am
It's looking for a table variable in that case. That's why you're getting the specific error.
Yes, you can do this, but what you have to do is build the...
October 14, 2009 at 8:16 am
Iterating through the parameters would definitely be better. Heck, even I managed to do that in an Access app I used to operate, and I'm far from a skilled...
October 14, 2009 at 8:09 am
You'll need to modify this a bit to get exactly what you want for columns, but it does the job on the sequence and should be easy enough to make...
October 14, 2009 at 8:06 am
Why does James come before Kevin in the desired output? Why split that department (Development) in two and interject Web in the middle?
October 14, 2009 at 7:31 am
chris.warriner (10/14/2009)
October 14, 2009 at 7:12 am
"For XML" should be able to do the XML conversion you need. Then (as mentioned), bcp would allow you to automate the export.
I'd need more details on table structure...
October 13, 2009 at 2:48 pm
You could use the Pivot operator to turn the rows into columns and then you'd get rid of the sub-queries. I don't see a way to get rid of...
October 13, 2009 at 2:46 pm
That seems like a fairly trivial issue for a recursive CTE to handle. It also looks like homework, though that could just be a side-effect of you annonymizing the...
October 13, 2009 at 2:44 pm
What problem are you having with it? I just tested a variation (since I don't have your table or your data, I can't test exactly what you're testing), and...
October 13, 2009 at 2:41 pm
In the upgrade process, are you setting up a test environment and putting the database and all its procs through their paces?
If so, you'll know with total certainty that this...
October 13, 2009 at 2:31 pm
You have valid points. It does cost some bandwidth, and resources. RAM does have to be allocated to hold null values that will never be populated. I...
October 13, 2009 at 2:27 pm
Grant Fritchey (10/13/2009)
October 13, 2009 at 2:19 pm
I'd say go ahead and include them. It means a little extra RAM being allocated, but it doesn't hurt anything beyond that.
It allows the dev to build a more...
October 13, 2009 at 12:45 pm
Viewing 15 posts - 8,146 through 8,160 (of 14,953 total)