Viewing 15 posts - 1 through 15 (of 156 total)
Got to know something new today, though was confusing to me initially.
One can create Clustered & Non-Clustered ColumnStore Index but you can NOT add any constraints to it! Quoting from...
July 13, 2020 at 6:42 am
The original table has identity column. Does this help?
Select 1 as ID,4 ItemCount UNION ALL
Select 2 as ID,3 ItemCount UNION ALL
Select 3 as ID,5 ItemCount UNION ALL
Select 4 as ID,2...
August 27, 2019 at 1:17 pm
Thanks Steve, it was very informative, like always.
August 25, 2017 at 4:53 am
thanks for the question. I really didn't know about this cool feature in sql 2012.:-)
October 25, 2013 at 3:25 am
Thanks for the question. It seems that the catch block is just for confusing 🙂 coz. the select query in the catch block doesn't execute
October 9, 2012 at 10:07 pm
thanks for the good question.
April 25, 2011 at 2:32 am
thanks for this wonderful article 🙂
March 24, 2011 at 12:54 am
Another "funny" thing is that BEGIN...END does not define the body of the procedure. You can have multiple BEGIN...END in the body of a procedure, like this:
create proc test
as
begin
...
March 16, 2011 at 11:30 pm
thanks for this post 🙂
One question - will it be good to add a column instead - say IsWeekEnd, IsWeekStart. Will it fare better or worse than the current query...
February 16, 2011 at 10:26 pm
Hardy21 (12/22/2010)
I have executed the script - output is 1,2, 3, 4.
even i got the same answer... lost my point today 🙁
December 23, 2010 at 12:24 am
good one, thanks Rahul...:-)
declare @myvariable as varchar, @len1 varchar, @len2 varchar
set @myvariable = 'hi hello how are you'
set @len1 = (select datalength(cast(@myvariable as char)))
print @len1
set @len1 = (select datalength(cast(@myvariable as...
December 13, 2010 at 11:12 pm
Viewing 15 posts - 1 through 15 (of 156 total)