Viewing 15 posts - 7,396 through 7,410 (of 8,760 total)
Good job with the data sample. I wouldn't be too concerned about the size of the SP code, the main concern is to get it working;-)
The following code toggles between...
August 24, 2014 at 1:17 am
jkurzner (8/23/2014)
It's used for a sports league website. The table that keeps track of email communication was the one that had an issue.
So the heavy handed single user mode...
August 24, 2014 at 12:49 am
SQLisAwE5OmE (8/23/2014)
It's 2008r2, enterprise edition on Windows 2008.
Are you using the ONLINE option? If you are, the additional resources required might be part of the problem. If not, in might...
August 24, 2014 at 12:44 am
Lynn Pettis (8/23/2014)
Eirikur Eiriksson (8/23/2014)
rajeshjaiswalraj (8/23/2014)
August 24, 2014 at 12:38 am
Jeff Moden (8/23/2014)
That's some very nice modularized code.
I am striving to maintain the readability of my code;-)
My concern at this point would be the 4 table scans rather than...
August 24, 2014 at 12:27 am
Jeff Moden (8/23/2014)
DAs don't actually need to know how to write a lick of code, never mind high performance code, to do their jobs correctly.
Hmm???
😎
BTW +100 for the soapbox...
August 23, 2014 at 4:48 pm
Out of plain curiosity, what is this database used for?
😎
August 23, 2014 at 4:38 pm
rajeshjaiswalraj (8/23/2014)
August 23, 2014 at 4:34 pm
Quick question, what edition of SQL Server are you on?
😎
August 23, 2014 at 4:27 pm
You are right, since the aggregation is on the outer/later query, no grouping is needed on the inner one.
😎
August 23, 2014 at 4:22 pm
This is a fundamentally flawed design, including operators in a column, let alone combining operators and values in a single column is seriously wrong. First suggestion is to amend the...
August 23, 2014 at 4:16 pm
Here is a quick attempt, please check the results;-)
😎
DECLARE @IDMainCompany int = 100;
DECLARE @Process_Date datetime = '2014-01-01';
;With SalaryReport as (
Select 1 as IdSalary,100 as IDMainCompany , 1000...
August 23, 2014 at 3:30 pm
Indu-649576 (8/23/2014)
It is not casting to varchar.I need the...
August 23, 2014 at 3:01 pm
Shadab Shah (8/23/2014)
🙂 your example was a good learning , Thanks.
Mr.Eirikur , Do you know some good article which are good to understand Grouped Set, Of Course google is...
August 23, 2014 at 2:39 pm
Shadab Shah (8/23/2014)
I have being trying to help OP with this question with the help of your solution.
I think the grouping in your solution is incorrect.
If we consider the...
August 23, 2014 at 2:08 pm
Viewing 15 posts - 7,396 through 7,410 (of 8,760 total)