Viewing 15 posts - 421 through 435 (of 812 total)
kapil_kk (9/23/2013)
declare @var Varchar(1000)
set @var = '-- /* select ''Samith'' name
...
September 24, 2013 at 12:52 am
I remember this one http://www.sqlservercentral.com/questions/T-SQL/71215/
September 18, 2013 at 1:53 am
Dscheypie (9/16/2013)
Carlo Romagnano (9/16/2013)
declare @i int
set @i = 2
while...
September 16, 2013 at 2:42 am
Stewart "Arturius" Campbell (9/16/2013)
Carlo Romagnano (9/16/2013)
declare @i int
set @i = 2
while @i < 10
begin...
September 16, 2013 at 1:35 am
In the following batch @j-2 is declared once, but initialized at every loop:
declare @i int
set @i = 2
while @i < 10
begin
declare...
September 16, 2013 at 1:15 am
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 12:51 am
The scope of "set language" and "set datefirst" is per session and also per procedure/function
Try this:
create procedure proc_datefirst
as
set language 'us_english'
select @@DATEFIRST
go
set language 'Italian'
exec proc_datefirst
select @@DATEFIRST
September 13, 2013 at 1:00 am
A version of the query without the use of local table:
SELECT *
FROM (
VALUES ('Steve')
, ('Stephan')
, ('Stephanie')
...
September 11, 2013 at 12:54 am
The correct exceution of the query depends on ansi_warnings
set ansi_warnings off
DECLARE @i TABLE( mychar VARCHAR(10));
INSERT @i VALUES ('Steve'), ('Stephan'), ('Stephanie')
...
September 11, 2013 at 12:49 am
Viewing 15 posts - 421 through 435 (of 812 total)