Viewing 15 posts - 961 through 975 (of 1,825 total)
Sounds like Steve is having a journey from hell , not much fun
March 21, 2010 at 7:54 am
simply add one month , then minus one day.
March 20, 2010 at 1:58 am
Lynn Pettis (3/19/2010)
Anybody have some good links to why you should NOT use the NOLOCK hint? Seems everyone writing SELECT queries these days uses that everywhere.
I like this one..
http://sqlblogcasts.com/blogs/tonyrogerson/archive/2006/11/10/1280.aspx
10,000...
March 19, 2010 at 3:31 pm
This is a classic example of why you should use the correct datatype.
Between does work on strings but you are applying different rules just because you have string that looks...
March 19, 2010 at 4:23 am
Can you post execution plans from both systems so that we can compare ?
March 19, 2010 at 2:17 am
I blogged about this issue a little while back
http://sqlblogcasts.com/blogs/sqlandthelike/archive/2010/01/22/microsoft-follow-best-practices.aspx
Microsoft have closed the connect item as fixed next release (though if that means 2008 r2 i dont know)
This also came up...
March 19, 2010 at 2:14 am
Grant Fritchey (3/17/2010)
Oooh. Don't say fanny-pack in England. I already made that mistake.
Not quite as bad as "I really need a Fag" , as i once loudly announced in...
March 17, 2010 at 4:33 am
What !!!!
use a udf ? , (select null) will perform better 😉 😀
March 11, 2010 at 3:10 am
Ive run a quick test and select top(10) from a table of 54.3 million rows,
the checksum version runs in 23.9 seconds where as the plain newid runs in 22.9.
So in...
March 11, 2010 at 2:21 am
Eralper (3/11/2010)
I think it affects the seed of the NewId function to...
March 11, 2010 at 2:00 am
martin.edward (3/10/2010)
I have the following string
SBR9D28.0178
The fourth character from the left stands for year i.e. 2009
The fifth character from the left stands for the month i.e. April
I would...
March 11, 2010 at 1:40 am
Gianluca Sartori (3/10/2010)
This generates one million numbers in about 400 ms on my laptop.
Good luck with the competition!
Interesting , ill look at the unpivot.
The competition has closed long ago ,...
March 10, 2010 at 6:27 am
Peter Brinkhaus (3/10/2010)
March 10, 2010 at 5:02 am
This can be achieved by using dynamic sql , but i would only do this as a last resort , if this cannot be done at the front end.
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/08/27/dynamic-pivot-in-sql-server-2005.aspx
March 10, 2010 at 3:29 am
You could use pivot ,
but i would prefer to sum a condition.
So something like this ?
select username,
sum(case when Status = 1 then 1...
March 10, 2010 at 3:14 am
Viewing 15 posts - 961 through 975 (of 1,825 total)