Viewing 15 posts - 331 through 345 (of 821 total)
A little variation:
-- this runs
DECLARE @i int = 1, @j-2 int = 2;
SET @i += 2;
SELECT @j-2 * @i
GO
-- this raises error
DECLARE @i int = 1, @j-2 int = @i...
August 5, 2014 at 6:12 am
Hugo, you always are the NUMBER ONE!
😀
WOW, another qotd with a special offer with "SUMMER POINTS"!
😀
August 5, 2014 at 1:03 am
I read question and answers many times because of high score.
I was searching for the swindle!
But it's only a straightforward basic question.
😀
August 4, 2014 at 1:22 am
type_desc is Latin1_General_CI_AS_KS_WS
So, also, in a "case sensitive" database type_desc LIKE '%cons%' returns data.
July 31, 2014 at 1:00 am
I'd like also a SPLIT/JOIN function as in VB. So, given a tab/cr limited string the function returns a table and viceversa.
PURGECHAR removes a list of chars from a string.
July 10, 2014 at 12:59 am
Thank you for question!
Theoretically, any query would return different value!
In practice, Only ORDER BY NEWID() works for us.
July 9, 2014 at 1:36 am
grzegorz.mozejko (6/16/2014)
grzegorz.mozejko (6/16/2014)
a small correction, when name of first index column is begining part of second index column (add comma):
...
June 16, 2014 at 3:21 am
Replace:
STUFF((SELECT ', ' + COLUMN_DATA_KEY_COLS.name
with:
STUFF((SELECT ', ' + COLUMN_DATA_KEY_COLS.name + ' ' +SUBSTRING('+-',INDEX_COLUMN_DATA_KEY_COLS.is_descending_key+1,1)
June 16, 2014 at 2:58 am
Thanks for the Article.
I voted it with 5 stars.
But there's only a hole:
Your query doesn't consider the order on columns.
Example:
create index idx_MyTab on MyTab(col1,col2)
and
create index idx_MyTab_1 on MyTab(col1 DESC,col2)
So, in...
June 16, 2014 at 2:49 am
Thanks!
declare @t varchar(10) = 'FALSE'
,@b bit
SET @b = CAST(@t as bit)
select @b
WHERE @b = 'FALSE'
June 5, 2014 at 1:08 am
This feature will be removed in a future version of Microsoft SQL Server.
http://msdn.microsoft.com/en-us/library/ms174378%28v=sql.110%29.aspx
June 3, 2014 at 1:22 am
Raghavendra Mudugal (5/30/2014)
Agreed F6 and SHIFT+F6 - both works. But they are not the same.
F6 in SSMS is "move to the next pane"...
May 30, 2014 at 2:39 am
Also SHIFT+F6. These hot keys are windows standard.
May 30, 2014 at 12:57 am
TomThomson (5/8/2014)
naas2005 (5/8/2014)
May 8, 2014 at 7:17 am
Viewing 15 posts - 331 through 345 (of 821 total)