Viewing 15 posts - 27,406 through 27,420 (of 59,101 total)
TheSQLGuru (2/27/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2013 at 6:54 am
ChrisM@Work (2/27/2013)
mister.magoo (2/27/2013)
ChrisM@Work (2/27/2013)
...About once a week, mate. Now I'm an old git I can blame it on declining memory. When I was a sprightly youngster it was more embarrassing.
I...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2013 at 5:40 am
eagb (2/14/2013)
Thank you that worked perfectly!
Any chance of us getting a peek at your split function?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 11:26 pm
Kevin.roberts25 (2/20/2013)
Description, Period1, Period2, Period3
Totals Team 1, 53, 74, 27
Totals Team 2,...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 9:54 pm
AhmetEmre90 (2/20/2013)
I have two SQL tables like below;
T1: relationID, meterID, parentID, childID
T2: dataID, meterID, date, amount
Sample data of tables;
T1 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 9:49 pm
chandrakant_gaurav (2/21/2013)
Its embarassing :blush: . Thank you!!
If you'd like to learn more about this "CROSSTAB" technique (which is also known as a PIVOT), please see the following articles...
http://www.sqlservercentral.com/articles/T-SQL/63681/
http://www.sqlservercentral.com/articles/Crosstab/65048/
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 9:43 pm
There are no easy methods to kill the damned things. The 0% rollback is actually a documented problem and, IIRC, has an open/active CONNECT item against it.
There are...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 9:00 pm
dwain.c (2/26/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 8:44 pm
dwain.c (2/26/2013)
Like this?
Looks like it. Heh... we make a hell of a tag team. I'll flush out the requiremments, you write the code. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 8:29 pm
Just to emphasize the performance differences between using a string conversion or not for date conversions, let's do a little test... a race, really.
Here's the test data. Since all...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 8:13 pm
Michael Valentine Jones (2/26/2013)
Jeff Moden (2/25/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 6:20 pm
dmarz96 (2/26/2013)
That is not going to work for me.
So, what is it that you actually want? which of the two row do you want returned or do you want...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 1:35 pm
mah_j (2/26/2013)
Is there any effect on performance if I empty the temp db by restarting SQL server,and increase the size of it and also outo growth,or will be worse?
the...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 12:50 pm
candide (2/26/2013)
Hi,Jeff's solution works great:-P
exactly what I needed
thanx
Thank you for the kind feedback. I just want to make sure because you're the one that will have to support it....
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 8:01 am
ben.brugman (2/26/2013)
And another alternative solution, based on 'strings'
declare @Month int = 2, @Year int = 2013declare @ThisDate datetime = convert(varchar(8),@year*10000+@month*100+01)
select CONVERT(varchar(7),@thisdate,121)+'-01'
select CONVERT(varchar(7),dateadd(mm,1,@thisdate),121)+'-01'
ben brugman
Just be aware that string conversions...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2013 at 7:59 am
Viewing 15 posts - 27,406 through 27,420 (of 59,101 total)