Viewing 15 posts - 16 through 30 (of 921 total)
The correlated subquery actually performs better when NOT is involved. Try looking at the execution times for each.
--Jonathan
March 27, 2006 at 2:02 pm
SELECT *
FROM T1
WHERE NOT EXISTS
(SELECT *
FROM T2
WHERE CustNo = T1.CustNo AND OrderNo = T1.OrderNo)
--Jonathan
March 27, 2006 at 6:44 am
CREATE TABLE BadWords(Word varchar(4) PRIMARY KEY)
INSERT BadWords
SELECT 'bad'
UNION ALL SELECT 'word'
UNION ALL SELECT '#$!*'
CREATE TABLE Contacts(Id smallint IDENTITY PRIMARY KEY, Email varchar(80))
INSERT Contacts(Email)
SELECT 'sbad@opus.com'
UNION ALL SELECT 'good@egad.com'
UNION ALL SELECT '#$!*@cupro.net'
UNION ALL SELECT 'hiram@jpvh.net'
DELETE c
FROM Contacts c CROSS...
--Jonathan
June 8, 2005 at 6:58 am
Rather than putting your list in a variable, put it into a temporary table as one row per value. Then just use a join to that temporary table in your...
--Jonathan
May 6, 2005 at 7:04 am
You should obviously increase the initial size of tempdb; one doesn't want autogrowth ocurring for any database, of course. You cannot truncate tempdb's log file because tempdb uses the simple...
--Jonathan
May 6, 2005 at 6:16 am
I think this article is more relevant to the thread; it recommends 64KB blocks and RAID 0+1 over RAID5:
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlops6.mspx
A quote:
"The only advantage the older [sic] RAID 5 has is...
--Jonathan
May 3, 2005 at 5:02 am
That's a bigger "it depends." The optimum stripe size (which is the block size of each drive in the set) depends upon the RAID level, databse type, and, most importantly,...
--Jonathan
May 2, 2005 at 12:26 pm
> Defrag isn't capable to deal with 64K blocks or why do you say this about the third party tool/win2003?
Yes, Windows 2000 Server defrag utility cannot deal with blocks larger...
--Jonathan
May 2, 2005 at 8:47 am
As you put the word in quotes, you know that the correct answer is "it depends." 64K is usually a much better starting point than 4K, though. Just be aware...
--Jonathan
May 2, 2005 at 7:17 am
Thanks, Frank.
I hadn't seen that Baarf site, but I just signed up as a member.
Now that it's nearly impossible to find drives...
--Jonathan
May 2, 2005 at 5:57 am
Given these constraints, you will most likely have the best compromise of performance, disaster recoverablity, and capacity by using your idea of a RAID 1 pair for data and executables...
--Jonathan
April 29, 2005 at 1:11 pm
Sounds like an inefficient query plan (probably a table scan) got cached. This usually happens when the query is first run (after the server is restarted) with atypical (e.g. NULL)...
--Jonathan
April 29, 2005 at 10:03 am
Your boss is wrong on every point. If this server will have OLAP databases, a good strategy would be to add a sixth drive, use a RAID 1 pair for...
--Jonathan
April 29, 2005 at 9:46 am
Although it's easy enough to write a trigger to enforce this, I prefer to use an indexed view for this in SQL Server 2000.
--Jonathan
March 16, 2004 at 12:10 pm
Yes. You need to upgrade to SQL Server 2000. SQL Server 7 did not allow computed columns in keys.
--Jonathan
March 16, 2004 at 11:21 am
Viewing 15 posts - 16 through 30 (of 921 total)