Forum Replies Created

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

  • RE: Parallel degree in a query

    At the end of your query, you can add:

    OPTION (MAXDOP number)

    Where number is the number of parallel "threads" you want the query to use, i.e. the degrees of parallelism you...

  • RE: SQL Help

    I agree with Paul, your test data seems flawed, given the results you are expecting to see. Regardless, I believe the following query will generate your desired results:

     
  • RE: 2 left joins in 1 sql

    Yes.

  • RE: JOIN question

    No, it will give different results. This is something simonsabin commented on in another thread. When you put a condition in the WHERE clause that references a column in the...

  • RE: problem in transposing data

    Well, here's a start, but somehow I don't feel it's the full solution; nevertheless, it might get you to thinking. Try using FOR XML EXPLICIT:

    
    
    SELECT 1...
  • RE: Distributed Partitioned Views -

    Do your tables have any triggers or update/delete cascading?

    Matthew Burr

  • RE: Sorting in Recursive & Hierarchical Stored Proc

    As a side-note, if you are using SQL 2000, you might want to look at the FOR XML clause, which you can append to queries, and which will automatically perform...

  • RE: Recovering Data From Log File

    quote:


    Unfortunately, Log Explorer is the only tool I have sen that can do this. The fact however that it can do this...

  • RE: Left Join performance issue

    The comment about the line_id column being the only true incremental column in the table is interesting. This is not a requirement for a clustered index; i.e. a clustered index...

  • RE: LEFT OUTER JOIN PROBLEM

    Yes, simonsabin is right about this. Because of this fact, I went back and rewrote my original solution to move the "Accounts.Active = 'True'" into the JOIN clause and out...

  • RE: LEFT OUTER JOIN PROBLEM

    I'm surprised that GBN's solution doesn't give you errant results. Consider a situation where you have:

    
    
    CREATE TABLE Customers
    (Cust_Name VARCHAR(30),
    Acc_Type VARCHAR(10),
    Location VARCHAR(10))
     
  • RE: Left Join performance issue

    I suppose what Antares said might be possible, but it seems to me more likely that statistical information on your tables is suggesting to the query optimizer that a significant...

  • RE: Sysadmin Server Role

    See the "Starting SQLServerAgent Service" article in Books Online. It essentially says that the account that your SQLServerAgent service runs under needs to be a member of the sysadmin role...

  • RE: SQL Password Problem

    I won't claim to be an expert on DMZs, but it seems to me that ports exist between your DMZ and your main domain anyway at a TCP level. I...

  • RE: LEFT OUTER JOIN PROBLEM

    quote:


    I have had similar problems like this and have used the following approach. I do not if it will work and give...

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