Viewing 15 posts - 301 through 315 (of 832 total)
In two minds about this myself. Yes, it would certainly be handy to have these conversion functions in SQL server, but on the other hand, the old mantra of "do...
July 17, 2012 at 1:15 am
Nakul Vachhrajani (7/13/2012)
The maximum supported number of logical processors by SQL Server 2008 R2 is 256 logical processors (which is a limit in-turn imposed by the operating system - Windows...
July 13, 2012 at 7:32 am
IowaDave (7/11/2012)
Why does datalength of nchar(40) give 80?!?? That really threw me.Thanks!
Because the "n" means the string is Unicode, so it has two bytes per character; DATALENGTH returns the...
July 11, 2012 at 6:25 am
Is there a reason you set a retention period of only 180 minutes? It doesn't give you a lot of leeway if the connection between the primary and secondary servers...
July 11, 2012 at 3:25 am
In my experience the DTA tends to recommend covering indexes for practically every query, and if you were to follow its instructions to the letter, you'd end up with a...
July 11, 2012 at 3:20 am
Hugo Kornelis (7/11/2012)
In my opinion, it is LEN() that has the strange behaviour here, because it returns the length of the padded version of the string instead of the length...
July 11, 2012 at 3:13 am
I'm pretty sure the way Developer is licensed is per user--so you'd need a separate $50 license for each developer, regardless of whether they're all accessing the same instance. However,...
July 11, 2012 at 2:44 am
I thought the 4th one would be 8 at first, but since 7, 7, 8, 8, 14, 80 wasn't an option had to go by a process of elimination to...
July 11, 2012 at 1:34 am
What does that have to do with the clustered index key, though? You certainly can't cover every possible query with the clustered index (unless you have an incredibly simple database),...
July 9, 2012 at 9:23 am
The other thing you could do is to set the cell format for the appropriate column *before* pasting the data in. If Excel thinks the column is a text column...
July 6, 2012 at 9:35 am
crazy4sql (7/5/2012)Also if you looking for the day of that particular date then you can use day().
For ex, day(getdate()) will return 5 which means Thursday. This counting starts from 0...
July 6, 2012 at 8:58 am
I was a programmer long before I had anything to do with SQL. I started coding in BASIC on a ZX Spectrum 30-odd years ago. I've done Pascal, C, C++,...
July 6, 2012 at 7:28 am
GilaMonster (7/4/2012)
For seeking, for range scans, for supporting an order by. Not ever for returning rows in the index order without an order by specified. That was quoted a bit...
July 4, 2012 at 2:08 am
Viewing 15 posts - 301 through 315 (of 832 total)