Viewing 15 posts - 31 through 45 (of 325 total)
Thanks for the easy one!
I had also written about this in one of my older posts at http://beyondrelational.com/modules/2/blogs/77/posts/11389/sql-server-experiments-with-bit-data-type-is-it-really-boolean-can-values-other-than-0-and-1-be-assi.aspx - The world is round!
Have a good week-end!
December 19, 2014 at 4:40 am
I choose option #1 myself and ended up with a lost point. A refund, please 🙂
November 11, 2014 at 8:26 am
Great question! Forces one to read the documentation before answering. Trick to the answer really lies in both - the behaviour of the RAND() function and the UNION operator.
Thanks for...
September 28, 2014 at 11:42 pm
Like it, got it wrong, and learnt about the syntax (i.e. the "ADD" keyword).
However, dropping and recreating works just as well (and was the only option I knew about till...
September 2, 2014 at 2:30 am
Agree with the posts above. It's the "outer" query that determines the execution of the "inner" query.
The TechNet Link shared (http://technet.microsoft.com/en-us/library/ms187638%28v=sql.105%29.aspx) has sufficient proof for "D" to be the right...
July 25, 2014 at 3:09 am
I got it wrong, but the "correct" answers stumped me. How are "local" temporary tables visible across sessions?
May 25, 2014 at 10:30 pm
I agree with the suggestion to add a filter in the UPDATE statement if that is feasible.
The thing is that although it looks like nothing has been updated, 2 records...
April 26, 2014 at 3:55 am
Just thinking out loud (not prototyped/tested) - is it possible that both servers have different hard drive partition configuration when they were formatted as part of setting up of the...
April 17, 2014 at 10:17 pm
The surest way of validating the syntax is always running it on a test server. NOEXEC and other alternatives will not be able to catch all syntax exceptions.
April 7, 2014 at 3:05 am
Agree with the other responses. Also, if you are using table variables, you do not need to drop and recreate them. They will be destroyed once the stored procedure completes...
April 5, 2014 at 9:59 pm
It is wierd. This is just a guess - Could it be that the recovery model may be changing which is causing the log to flush over to the data...
April 4, 2014 at 9:54 pm
Got 4/5 right, but am slightly disturbed by the question, primarily for the following reason:
The "disallow results from triggers" Server Configuration option has always been 0 by default in all...
April 2, 2014 at 10:14 pm
I am currently supporting 7 developers (one of whom works from a remote location). However, we have seen periods where we had 2 DBAs supporting about 24 developers (making for...
October 4, 2013 at 4:03 am
If you are using SQL Server 2008 R2 and below, you can use FMTONLY. For SQL Server 2012 and above, you can use sp_describe_first_result_set.
Read more about it in my post:...
September 8, 2013 at 12:03 pm
Assuming that the first value in the table gives me the ladder increment, does this work for you?
USE tempdb ;
GO
DECLARE @ladderTable TABLE ( Col1 INT ) ;
DECLARE @incrementValue INT =...
July 23, 2013 at 12:20 am
Viewing 15 posts - 31 through 45 (of 325 total)