Forum Replies Created

Viewing 15 posts - 2,416 through 2,430 (of 8,416 total)

  • RE: Calculating interest query

    Jeff Moden (11/1/2010)


    Damn! There is a trade off. If you don't know there's going to be dupes or not, pray for dupes when you use it.... Still,...

  • RE: Calculating interest query

    Jeff Moden (10/31/2010)


    Absolutely awesome! What on earth made you look for an alternative to DISTINCT?

    Thanks. It's a fair while ago now, so I don't remember exactly what the...

  • RE: Calculating interest query

    Super-fast DISTINCT using a recursive CTE:

    USE tempdb;

    GO

    DROP TABLE dbo.Test;

    GO

    CREATE TABLE

    dbo.Test

    ...

  • RE: Calculating interest query

    Chris Morris-439714 (10/29/2010)


    I'd really like to see an example of that

    I'll post one in a minute.

    ...in the meantime, here's another simple and obvious use of rCTE's. No timings because I've...

  • RE: I am having problem in 2008 (RTM)

    To verify that the bottleneck is network/client speed, try running:

    SELECT COUNT(*) FROM table WITH (INDEX(1));

    That will force SQL Server to read every row in the table, but only return one...

  • RE: I am having problem in 2008 (RTM)

    The majority of the time taken to run the query is probably taken up in moving that much data across the network for display on the client. From the...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/29/2010)


    I won a $100 bet on it. 😉

    Wow!

  • RE: Sequence-numbering groups

    gmrose (10/28/2010)


    Thanks again for everyone's suggestions. I ended up rewriting the script to use Wayne's "quirky update solution". That script processed over 300,000 records in 18 seconds. ...

  • RE: Are There That Many GUIDs?

    Eric Russell 13013 (10/28/2010)


    I still think that combining a logical identifier like client_id or store_id with another column containing either a date/time stamp or sequential integer makes more sense than...

  • RE: Are the posted questions getting worse?

    WayneS (10/27/2010)


    Paul White NZ (10/27/2010)


    I don't get the SQL Spackle reference...

    http://en.wikipedia.org/wiki/Spackling_paste

    Thank you! So, spackle (USA) = PolyFilla (rest of world)

    edit: thanks also to Tom

  • RE: Are the posted questions getting worse?

    Jeff Moden (10/27/2010)


    We need a catchy category name for these types of articles. You mentioned you wanted to "fill holes". How'z about "SQL Spackle" for a name? ...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/27/2010)


    Steve Jones - SSC Editor (10/27/2010)


    Some of the smaller manufacturers aren't careful. In the 90s we had two separate NICs have duplicate MACs when we bought an off...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/27/2010)


    BWAA-HAAA!!! Oh no... Not quite what I meant. I know that 48 bit MAC addresses are larger than they'll ever use and when they run out...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/26/2010)


    ]If they thought it was that much of a security risk as to make such a change as the GUID no longer being globablly unique, I'll probably go...

  • RE: Are There That Many GUIDs?

    Jeff Moden (10/26/2010)


    As a side bar, the article also states...

    Computers with ethernet/token ring addresses generate UUIDs that are guaranteed to be globally unique.

    Yup.

    So, does anyone know of an article that...

Viewing 15 posts - 2,416 through 2,430 (of 8,416 total)