Viewing 15 posts - 9,721 through 9,735 (of 14,953 total)
Bruce W Cassidy (4/28/2009)
April 29, 2009 at 8:39 am
The normal forms have a purpose. There are times when it's better to violate them.
Like every rule that isn't a natural law, there are times when it's best to...
April 29, 2009 at 8:34 am
You're looking at the right columns. They've been Int all along. It's a pain.
April 29, 2009 at 8:29 am
SQL 2005 isn't really built for that. The features worked so poorly in SQL 2000 (too many security holes, etc.), so they pretty much replaced it in 2005. ...
April 29, 2009 at 8:27 am
There are lots of methods of handling duplicates in SQL. To help you design the best one for your situation, we would need table definitions ("create table..." scripts) and...
April 29, 2009 at 8:24 am
JacekO (4/29/2009)
Is this what you need?
UPDATE D2
SET
bool2 = D1.bool2
FROM #detail D1
INNER JOIN #detail D2 ON D1.detailID = D2.sdetailid
AND D1.bool2 = 1
Ooops. GSquared beat me to it. 🙂
This version will...
April 29, 2009 at 8:19 am
First, raw XML disappears when you post it in the forums. You need to use the code tags around it, with the XML type, or to attach it as...
April 29, 2009 at 8:17 am
You can generally add a step to the code that attempts to connect to the database and, if it fails, it goes to a catch block and does whatever you...
April 29, 2009 at 8:11 am
Is it appending the backup to an existing backup file? That's pretty usual, and can definitely cause this to happen.
April 29, 2009 at 8:09 am
In that case, you might want to take a look at OpenRowset. With that, you can query Excel directly, as if the spreadsheet were a table. That might...
April 29, 2009 at 8:08 am
Try something like this. See if it gets you what you need with the desired efficiency:
IF OBJECT_ID(N'tempdb..#Threads') IS NOT NULL
DROP TABLE #Threads ;
IF OBJECT_ID(N'tempdb..#Posts')...
April 29, 2009 at 8:05 am
davidandrews13 (4/29/2009)
do you have to find them or could you run a script that just updates all the rows?update table
set col1 = upper(col1)
Depending on the number of rows you actually...
April 29, 2009 at 7:47 am
Try something like this:
update D1
set bool2 = D2.bool2
from #detail D1
inner join #detail D2
on D1.sdetailid = D2.detailid
and D1.bool2 != D2.bool2;
April 29, 2009 at 7:43 am
Database Mail is asynchronous. E-mail system failure won't hang up the trigger.
You can also set failover e-mail servers in the options, if you have access to such, and if...
April 29, 2009 at 7:37 am
Viewing 15 posts - 9,721 through 9,735 (of 14,953 total)