Viewing 15 posts - 556 through 570 (of 656 total)
I guessed wrongly that because it makes no sense to do a backup within a transactiobn, then the transaction would be ignored and it would work.
I'm not sure what the...
September 22, 2010 at 2:33 am
Hugo Kornelis (9/12/2010)
September 13, 2010 at 2:20 am
Interesting/worrying! We have lots of code that does something like
declare @i int
set @i = 10
set rowcount @i
insert into tab1
select * from tab2
in order to insert the top n rows from...
August 26, 2010 at 3:11 am
Pete Cox (8/26/2010)
BTW, I think ROWCOUNT stops having this effect in versions of SQL server later than 2005
Nope, still works in 2008 (luckily, or our code would break!)
August 26, 2010 at 2:53 am
Floats can be useful when the same column needs to be able to hold either large values (lots of numbers before the decimal point) or very small values (lots of...
August 26, 2010 at 2:34 am
Hugo Kornelis (8/20/2010)You can actually run DBCC CHECKALLOC and DBCC CHECKCATALOG on tempdb. You will not get an error, but on the other hand, nothing will actually be done.
Which version...
August 20, 2010 at 2:28 am
Interesting.
Can anyone explain exactly what the 3rd argument of Round() is for?
The BOL says
"function Is the type of operation to perform. function must be tinyint, smallint, or int. When function...
August 17, 2010 at 8:08 am
wware (8/13/2010)
Study the past if you would divine the future. ~Confucius
Good point.
I'll bookmark this page in readiness for 2100 🙂
August 13, 2010 at 7:21 am
Hugo Kornelis (8/12/2010)
Based on visual inspection of the code, you appear to be right about the missing GROUP BY. I'm glad I overlooked that when answering! Luckily, there is no...
August 12, 2010 at 2:45 am
I've had a play with this on my development server, and the results seem a little curious. Apparently, I've used each of the collations Macedonian, Lithuanian_Classic, Korean_Wansung_Unicode, Hindi, Azeri_Latin_90, and...
August 5, 2010 at 3:20 am
Jostein Saethern (8/4/2010)
The correct answer is listed as sys.dm_os_sys_performance_counters, but in the example query sys.dm_os_performance_counters is used.
Well spotted - I was wondering why the 'correct' view does not exist in...
August 5, 2010 at 2:50 am
A bit of a strange question.
I'd never come across the user of parantheses with DISTINCT so assumed it must be some sort of extended syntax I didn't know about. So...
July 27, 2010 at 3:22 am
I hate "me too" replies, but I also failed on the "Will definitely use more resources" option, because it is just not true. Consider the alternative of a standard column...
July 26, 2010 at 3:06 am
A lesson that's common to many QotDs is that you should never rely on default values - always be specific, so you know exactly what you're getting, and so does...
July 19, 2010 at 8:52 am
Viewing 15 posts - 556 through 570 (of 656 total)