Viewing 15 posts - 18,766 through 18,780 (of 26,489 total)
Actually, Michael Valentine Jones looks simplier than mine, so I'd go with his. I wouldn't have posted mine had I read his first, but I got sidetracked a bit...
September 24, 2009 at 10:48 am
How about trying this:
declare @Date datetime;
set @Date = '2009-09-15';
select
dateadd(mm, -3, dateadd(yy, datediff(yy, 0, dateadd(mm, 3, @Date)), 0)) as BeginFiscalYear,
dateadd(dd, -1, dateadd(yy, 1,...
September 24, 2009 at 10:46 am
doofledorfer (9/23/2009)
September 24, 2009 at 6:56 am
Sounds like a case statement being used in the update. How many differnet values of id_promotionSub are there? How many rows of data in the fact table?
September 23, 2009 at 7:52 pm
Jeff Moden (9/22/2009)
September 23, 2009 at 4:29 pm
Jeff Moden (9/23/2009)
David Kranes (9/23/2009)
Sorry for the delay in providing this. I have attached the DDL.Where? Not on that post...
It was there, I opened directly, but I since...
September 23, 2009 at 4:25 pm
This is another way and doesn't use the convert statement:
dateadd(dd, datediff(dd, 0, getdate()), 0)
September 23, 2009 at 4:15 pm
sqlislife (9/23/2009)
What is the best way to write a tsql code for parametrized date ranges? For example
create procedure procname
(
@datestart datetime,
@dateend datetime
)
as
select column1
from...
September 23, 2009 at 4:08 pm
Chuck Lucking (9/23/2009)
create table #Task (Task varchar(10), Due smalldatetime)
insert #Task select 'TaskA','09/21/2009'
insert...
September 23, 2009 at 3:59 pm
kiran_ramisetti (9/23/2009)
September 23, 2009 at 1:58 pm
Thomw (9/23/2009)
September 23, 2009 at 11:40 am
As asked before, would you please post the DDL for your table and the indexes?
September 23, 2009 at 10:17 am
Silverfox (9/23/2009)
Lynn Pettis (9/23/2009)
I took a look at this particular thread. I do agree with you, Silverfox, and I am usually one tht tries very hard in this regard....
September 23, 2009 at 9:58 am
Silverfox (9/23/2009)
Gianluca Sartori (9/23/2009)
If he insists killing processes without knowing what they do, let him do it.He already has decided to increase lock timeout and kill process, so, why bother?
Has...
September 23, 2009 at 9:15 am
Elliott W (9/22/2009)
Lynn, great article..You make reference to Jeff's article, I'm curious how this method compares to Jeff's method..
CEWII
I'm not sure what you are talking about. I...
September 22, 2009 at 11:22 pm
Viewing 15 posts - 18,766 through 18,780 (of 26,489 total)