Forum Replies Created

Viewing 15 posts - 16 through 30 (of 920 total)

  • RE: How to find all records in one table that DO NOT match another table

    The correlated subquery actually performs better when NOT is involved.  Try looking at the execution times for each.

  • RE: How to find all records in one table that DO NOT match another table

    SELECT *

    FROM T1

    WHERE NOT EXISTS

    (SELECT *

     FROM T2

     WHERE CustNo = T1.CustNo AND OrderNo = T1.OrderNo)

  • RE: Removal of vulgarities

    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...

  • RE: Using In Statement in Stored Procedure?

    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...

  • RE: Error for tempDB log file full

    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...

  • RE: Disk config

    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...

  • RE: Disk config

    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,...

  • RE: Disk config

    > 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...

  • RE: Disk config

    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...

  • RE: Disk config

    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...

  • RE: Disk config

    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...

  • RE: Strange Response Times

    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)...

  • RE: Disk config

    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...

  • RE: Unique Constraint on a Nullable Column

    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.

  • RE: FILO primary key rotation?

    Yes.  You need to upgrade to SQL Server 2000.  SQL Server 7 did not allow computed columns in keys.

Viewing 15 posts - 16 through 30 (of 920 total)