Viewing 15 posts - 286 through 300 (of 3,011 total)
dwain.c (2/11/2013)
Michael Valentine Jones (2/11/2013)
dwain.c (2/11/2013)
select
a.DT,
LastDayofMonth = dateadd(mm,datediff(mm,-1,a.DT),-1),
LastSundayofMonth =
dateadd(dd,(datediff(dd,'17530107',dateadd(mm,datediff(mm,-1,a.DT),-1))/7)*7,'17530107'),
DwainsWay =
...
February 11, 2013 at 5:53 pm
ScottPletcher (2/11/2013)
Michael Valentine Jones (2/11/2013)
ScottPletcher (2/11/2013)
ScottPletcher (2/11/2013)
...
I haven't been in any business that worked with dates before 1900, but if yours did, then that would be a relevant concern for...
February 11, 2013 at 5:42 pm
I prefer to have the ETL (SSIS) installed on a different server because it is quite common to need to install or update additional software, controls, DLLS, etc. that might...
February 11, 2013 at 3:34 pm
I usually use the same AD account for the SQL Server Database Engine and SQL Server Agent but use AD different accounts for SQL Server Analysis Services and SQL Server...
February 11, 2013 at 3:26 pm
ScottPletcher (2/11/2013)
ScottPletcher (2/11/2013)
...
I haven't been in any business that worked with dates before 1900, but if yours did, then that would be a relevant concern for you. Besides, we...
February 11, 2013 at 3:21 pm
ScottPletcher (2/11/2013)
DECLARE @startDate datetime
DECLARE @number_of_months int
SET @startDate = GETDATE()
SET @number_of_months = 7
SELECT
DATEADD(DAY, DATEDIFF(DAY, '19000107', last_day_of_month) /...
February 11, 2013 at 9:17 am
dwain.c (2/11/2013)
select
a.DT,
LastDayofMonth = dateadd(mm,datediff(mm,-1,a.DT),-1),
LastSundayofMonth =
dateadd(dd,(datediff(dd,'17530107',dateadd(mm,datediff(mm,-1,a.DT),-1))/7)*7,'17530107'),
DwainsWay =
1+dateadd(mm,datediff(mm,-1,a.DT),-1)-DATEPART(weekday,...
February 11, 2013 at 7:45 am
Find the last day of the month, and then find the Sunday on or before that date.
select
a.DT,
LastDayofMonth = dateadd(mm,datediff(mm,-1,a.DT),-1),
LastSundayofMonth =
dateadd(dd,(datediff(dd,'17530107',dateadd(mm,datediff(mm,-1,a.DT),-1))/7)*7,'17530107')
from
( -- Test data
select DT = getdate()union all
select DT =...
February 9, 2013 at 4:35 pm
Although you should not come across as bitter (as others have said), you should be prepared to give a short, non-emotional explanation of why you are looking for a new...
February 5, 2013 at 4:26 pm
sqlfriends (2/5/2013)
Thanks, it seems there is some downside when doing compression backup, it uses more of resources than regular backup
Not necessarily. It reduces the disk and/or network IO, so...
February 5, 2013 at 1:09 pm
sqlfriends (2/5/2013)
It is used mainly for them to read data using select queries, or combine some data together to write...
February 5, 2013 at 12:59 pm
Jeff Moden (2/1/2013)
Michael Valentine Jones (2/1/2013)
William Plourde (2/1/2013)
February 2, 2013 at 6:02 pm
William Plourde (2/1/2013)
February 1, 2013 at 7:40 am
Why can't you just run a backup and see how long it takes?
January 31, 2013 at 9:22 pm
TheSQLGuru (1/24/2013)
Ninja's_RGR'us (6/17/2011)
Dan.Humphries (6/17/2011)
January 24, 2013 at 2:49 pm
Viewing 15 posts - 286 through 300 (of 3,011 total)