Viewing 15 posts - 6,196 through 6,210 (of 8,731 total)
It's not that we can't, it just seems useless if the weeks will always be 52.
This is an example on how to do it.
Note that I changed the code to...
July 2, 2014 at 1:15 pm
Study, practice, study, practice and keep going even if you get a job.
July 2, 2014 at 10:43 am
I met Kendal once in a SQL Saturday at Orlando but couldn't relate him. the description doesn't fit him at all. 😛
July 2, 2014 at 10:31 am
There's no need to read the table trice.
WITH CTE AS(
SELECT ID,
Orderamt,
...
July 2, 2014 at 10:19 am
You shouldn't cross post, it will only fragment the responses.
No more answers here, all should refer to: http://www.sqlservercentral.com/Forums/Topic1588259-3412-1.aspx
July 2, 2014 at 8:44 am
That's because you're not executing steps 2 and 3.
Step 3 will fail because you only have a condition. I'm not sure what you are trying to do with step 2,...
July 2, 2014 at 8:43 am
That's because you're not executing steps 2 and 3.
Step 3 will fail because you only have a condition. I'm not sure what you are trying to do with step 2,...
July 2, 2014 at 8:41 am
Have you used TRY...CATCH to handle errors?
July 1, 2014 at 4:08 pm
Could it be possible that you have that limit established on the "max server memory" configuration options?
SELECT *
FROM master.sys.configurations
WHERE name = 'max server memory (MB)'
There are many things that...
July 1, 2014 at 3:46 pm
Why do you want to use dynamic SQL?
July 1, 2014 at 2:48 pm
sleipner (7/1/2014)
Besides which - if the results grid isn't designed for copy/paste to Excel or other programs - what the heck is it actually for?
It's used to review...
July 1, 2014 at 2:42 pm
The reason behind this problem is that the results grid is not intended to be copied to Excel. For a huge amount of data, you could get out of memory.
You...
July 1, 2014 at 2:02 pm
Remove the quotes from '@periodname'
declare @period_name as date = 'DEC-10'
SELECT CASE WHEN substring(period_name,5,2) = @periodname THEN SUBSTRING(@periodname ,5,2)
July 1, 2014 at 11:01 am
You can't use GO in an EXEC statement for dynamic code.
You could use the SP sp_executesql from the destination database. You could complicate it more and use dynamic code to...
July 1, 2014 at 10:13 am
Viewing 15 posts - 6,196 through 6,210 (of 8,731 total)