Viewing 15 posts - 76 through 90 (of 105 total)
Carlo Romagnano (9/26/2013)
DECLARE @STR VARCHAR(8000) = N'SELECT * FROM sys.objects'
EXECUTE SP_EXECUTESQL @STR
It should be:
DECLARE @STR VARCHAR(8000) = N'SELECT * FROM sys.objects'
EXECUTE...
September 26, 2013 at 2:59 am
Dscheypie (9/23/2013)
Why not disabling "guest" for the master database?
I guess because SQL Server needs the access to the master database for extracting information from...
September 23, 2013 at 3:52 am
Thanks for the question.
Interesting the logical execution of
declare @word varchar(100) = 'apple'
in two phases.
September 19, 2013 at 2:30 am
Thanks for the question but the explanation is a bit confusing. As per BOL
http://technet.microsoft.com/en-us/library/ms174393.aspx
When SET QUOTED_IDENTIFIER is OFF, literal strings in expressions can be delimited by single or...
September 18, 2013 at 2:08 am
L' Eomot Inversé (9/16/2013)
Drew Copenhaver (9/16/2013)
Steve Jones - SSC Editor (9/16/2013)
Drew Copenhaver (9/16/2013)
September 16, 2013 at 12:17 pm
Koen Verbeeck (9/15/2013)
There's no reference, and the explanation itself is incorrect.
There's no variable that is "reset".
The DECLARE is not ignored, it...
September 16, 2013 at 2:00 am
Ross.M (9/11/2013)
raulggonzalez (9/11/2013)
As somebody said, most of those complaining, run the script before answering the question which is "cheating", so they shouldn't be rewarded for cheating.
If you are giving points...
September 11, 2013 at 9:51 am
Steve Jones - SSC Editor (9/11/2013)
raulggonzalez (9/11/2013)
Steve Jones - SSC Editor (9/11/2013)
September 11, 2013 at 9:01 am
Steve Jones - SSC Editor (9/11/2013)
September 11, 2013 at 8:46 am
Carlo Romagnano (9/11/2013)
set ansi_warnings off
DECLARE @i TABLE( mychar VARCHAR(10));
INSERT @i VALUES ('Steve'), ('Stephan'), ('Stephanie')
...
September 11, 2013 at 4:41 am
SQLRNNR (9/5/2013)
Thomas Abraham (9/5/2013)
raulggonzalez (9/5/2013)
September 6, 2013 at 9:22 am
Thanks for the question, but it would have been useful if it was specified that is a SQL Server 2012 environment as in previous versions this didn't exist.
September 5, 2013 at 3:37 am
Good question,
Just a quick BOL reference to clarify things
A procedure can reference tables that do not yet exist. At creation time, only syntax checking is performed. The procedure is...
August 15, 2013 at 2:42 am
Nice question, and not being sure that the index was removed by the ALTER VIEW statement, having the index with the same name as the clustered index was really helpful...
July 24, 2013 at 4:47 am
Viewing 15 posts - 76 through 90 (of 105 total)