Viewing 15 posts - 1,666 through 1,680 (of 3,011 total)
If you want to recover to a particular point in time (12:00 pm), you will need to add the STOPAT time to your transaction log restores to make sure you...
August 26, 2009 at 2:05 pm
select FirstDayOfMonth = dateadd(mm,datediff(mm,0,getdate()),0)
Results:
FirstDayOfMonth
-----------------------
2009-08-01 00:00:00.000
August 26, 2009 at 10:19 am
You cannot combine files during the restore.
August 25, 2009 at 1:03 pm
How about this: When things are really screwed up, are you more likely to be the one that screwed it up or the one that fixes it?
August 25, 2009 at 12:33 pm
This would also return the max value, but only testing can tell which is faster for your situation.
Select top 1 IDValue from MyTable order by IDValue desc
As others have pointed...
August 25, 2009 at 10:02 am
select
DT,
WeekOfQuarter=(datediff(dd,dateadd(QQ,datediff(QQ,0,DT),0),DT)/7)+1
from
( -- Test Data
...
August 24, 2009 at 10:44 am
Since they don't know the answer to the question (or they wouldn't have asked), the original poster is often the least qualified to judge the best answer when there are...
August 20, 2009 at 12:18 pm
SQL CALs are not really installed, so there is no technical way to get that info.
You probably need to look back through software purchase orders to find that info.
August 20, 2009 at 10:44 am
If that is one of the big name ERP systems, there is a good chance there are no FK relationships defined between the tables. Since they have to support...
August 20, 2009 at 8:29 am
Elliott W (7/29/2009)
August 20, 2009 at 8:20 am
Comparing as a string will only work if the varchar date is in the same format in all rows.
The code below should work OK even with invalid dates in the...
August 20, 2009 at 7:55 am
You need to have a backup for any database you might want to restore, "critical db" or not.
August 19, 2009 at 8:57 am
jcrawf02 (8/19/2009)
Gav B (8/18/2009)
I'd like to know what others think of this and if you can envisage any...
August 19, 2009 at 8:44 am
Oracle bought Digital’s Rdb database that runs on the VMS platform to eliminate the competition. They couldn’t compete in the VMS world, because Digital included an Rdb run-time license...
August 18, 2009 at 11:53 am
Loner (8/18/2009)
August 18, 2009 at 10:24 am
Viewing 15 posts - 1,666 through 1,680 (of 3,011 total)