Viewing 7 posts - 331 through 337 (of 337 total)
bitbucket-25253 (11/9/2010)
SELECT DATEADD(mm,-3,DATEADD(day, 1, GETDATE()))As '3 months ago',GETDATE() AS 'Today',
DATEADD(day, 1, GETDATE()) AS 'Today plus 1 day'
Results:
3 months ago ...
November 9, 2010 at 11:06 am
Are you using SQL 2008 ?If not then it will error out.
November 9, 2010 at 10:48 am
That wont be much of a problem.any of the above solutions posted will work.
November 9, 2010 at 10:09 am
select top 1 status from yourtable where status='Failure'
IF @@rowcount>=1
select 'Failed'
else
select 'Success'
November 9, 2010 at 9:52 am
declare @t table(id int identity,dt date NULL,stepid int)
insert @t
select '2008-03-03',1 union all
select '2008-03-04',1 union all
select '2008-03-14',5 union all
select null,5 union all
select '2008-03-20',6...
November 9, 2010 at 6:13 am
Is the last full backup and log file available.If yes then you need to
1)Take a Tail log backup.
2)Create a new database and then restore the full backup.
3)Restore the Tail log...
November 9, 2010 at 12:11 am
Viewing 7 posts - 331 through 337 (of 337 total)