Forum Replies Created

Viewing 15 posts - 34,426 through 34,440 (of 49,552 total)

  • RE: A dumb question about Distinct - I posted this in the wrong forum earlier by mistake

    Either of the examples I gave you will do that, they are (as written) identical in operation and performance.

    My comments to The_SQL_DBA was not related to his use of IN,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Alvin Ramard (1/25/2010)


    It's also posted under another name.

    Don't OPs know that the speed of the response is inversely porportional to the cube of the number of postings?

    Yeah, I caught the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Urgent! Urgent! Urgent!

    http://www.sqlservercentral.com/Forums/Topic853117-145-1.aspx

    Exterminate! Exterminate!

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to find which datafile a table is stored

    Yes

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Urgent development question

    Why is this urgent? Homework with an upcoming deadline?

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: question - urgent - thanks in advance

    Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic853117-145-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: A dumb question about Distinct - I posted this in the wrong forum earlier by mistake

    The_SQL_DBA (1/25/2010)


    Select Distinct(DG.UserID)

    , DG.UserName

    , DG.LastName

    , DG.FirstName

    From DGUsers DG

    where DG.UserID in (select distinct UserId from Orders)

    Order by DG.UserID

    Huh? That's senseless and worse than the original post.

    Firstly, you haven't fixed the 'distinct...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: A dumb question about Distinct - I posted this in the wrong forum earlier by mistake

    Distinct is not a function, it does not take parameters. What you have written is completely equivalent to this

    Select Distinct

    DG.UserID

    , DG.UserName

    , DG.LastName

    , (DG.FirstName)

    From DGUsers DG

    Inner Join Orders O On...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: A dumb distinct question

    Thread continues - http://www.sqlservercentral.com/Forums/Topic853116-1291-1.aspx

    No replies here please.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Return Rows When No Match Found

    Full outer join, instead of left outer join, and then the s.customer, s.product, s.description columns need to coalese the current and previous years values

    Thusly

    COALESCE(s.customer, sa.customer) as Customer, ....

    Generally a need...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How to find which datafile a table is stored

    You can find what filegroup the table is in by querying sys.partitions and sys.data_spaces.

    If a table is on a filegroup with multiple files it'll be striped across all the files...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Execution Plan Statistics

    You can also look here for the brief version http://sqlinthewild.co.za/index.php/category/sql-server/execution-plans/ Start with this one http://sqlinthewild.co.za/index.php/2007/08/20/reading-execution-plans/

    Don't get too hung up on those costs. They are estimates and there are many things...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: We'll go no more a' tibbling

    Steve Jones - Editor (1/25/2010)


    Functions are a place where I think I might consider this. Now that we have scalar and table functions, and it might be worth letting a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: How SQL optimizer deals ?

    Because you have a table scan on the #emp table. SQL's not using either index on that table.

    A table scan reads the entire table (hence it's name). All columns,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Technet Windows serials numbers

    The activation process will confirm that.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 34,426 through 34,440 (of 49,552 total)