Viewing 15 posts - 1,666 through 1,680 (of 3,008 total)
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
shuzi (8/18/2009)
Management Studio provided the overall server info, we don't want anyone be able to access it. Some persons just need to know the database structure,...
August 18, 2009 at 9:52 am
This is a little simpler and will work with any date range.
select
*,
Days ...
August 18, 2009 at 9:45 am
Viewing 15 posts - 1,666 through 1,680 (of 3,008 total)