Viewing 15 posts - 121 through 135 (of 203 total)
Good question, I liked it. Starting from SQL Server 2005, getting the error information from the @@error is certainly becoming less popular due to availability of the structured error handling...
April 26, 2010 at 9:46 am
latingntlman (4/23/2010)
April 24, 2010 at 11:17 am
Lowell,
Looks like all it will take is to add - 1 to [months] and [days] portion.
[Months] = datepart(month,ET-ST) -1,
[Days] = datepart(day,ET-ST) -1
Cool script though, will definitely land in the...
April 23, 2010 at 10:31 am
Lowell (4/23/2010)
here's some examples i've saved that pulls out the peices; you can concat them togeter for the...
April 23, 2010 at 10:10 am
latingntlman (4/23/2010)
StartDate: 2010-04-20 16:58:18.000
EndDate: 2010-04-20 26:59:56.000
I need to calculate the difference as "TimeTaken" and show it in hh:mm:ss
What would be an effective wa...
April 23, 2010 at 9:48 am
Good question! Thank you Ron.
About 2 years ago I read the BOL reference article on common table expressions and since that time I clearly remember that it stated in the...
April 21, 2010 at 9:42 am
After reading Part I last week I knew that Part II is going to be good, but I did not expect it to be this good! This was easy to...
April 20, 2010 at 9:06 pm
This is a good question, thank you Ron. I think that though model can be set to read-only, perhaps this action is simply ill-advised, that is all. What I mean...
April 15, 2010 at 8:39 am
sjimmo (4/14/2010)
insert into #n
select
top 3 row_number() over (order by [object_id])
from sys.objects;
is not the...
April 14, 2010 at 9:41 am
Rune Bivrin (4/14/2010)
This is one...
April 14, 2010 at 9:03 am
Thank you Paul for excellent article, I thoroughly enjoyed reading it. Looking forward to read Part II next week. I usually start using new language features pretty soon after they...
April 13, 2010 at 10:21 pm
This is a great question, I really, really enjoyed it. The most difficult part was to figure out that the line:
set @result = cast (@@rowcount as varchar)
does 2 things:
1....
April 13, 2010 at 9:50 pm
Viewing 15 posts - 121 through 135 (of 203 total)