Viewing 15 posts - 436 through 450 (of 819 total)
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
Unusual altering a disabled trigger, but it's good to know!
😉
September 10, 2013 at 12:51 am
Maybe, the author exchanged the CAST and the ISNULL:
The right version:
DECLARE @x CHAR(1)
SET @x = CASE
WHEN @x = 'x'...
September 9, 2013 at 3:45 am
Here is sp_configure with a simple optimization:
-- Use @configname and try to find the right option.
-- If there isn't just one, print appropriate diagnostics and return.
select @configcount = count(*)
...
August 30, 2013 at 2:36 am
Here is the code from sp_configure:
-- Use @configname and try to find the right option.
-- If there isn't just one, print appropriate diagnostics and return.
select @configcount = count(*)
from sys.configurations
where...
August 30, 2013 at 2:25 am
Tom, re-word the question, maybe I get it right!
Unreadable!
August 26, 2013 at 1:55 am
Viewing 15 posts - 436 through 450 (of 819 total)