Forum Replies Created

Viewing 15 posts - 46 through 60 (of 83 total)

  • RE: SSIS Is Not Just for SQL Server

    I've found the Import/Export Tool with SQL Server 2000 to be the best tool at my disposal for extracting query results from our Oracle Server, regardless of where I need...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    dporter (5/13/2008)


    Thank you so much! This took about 10 seconds off of my query. Thanks! 🙂

    Out of curiosity, what is the current time and what was the previous...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Jeff Moden (5/13/2008)


    Why do you need a Cross-Join on the @DistinctQuarters table?

    From my read of the code, it appeared to be storing (or intended to store) multiple time frames, with...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    Danielle:

    Don't bother with the loop at all, substitute in a join.

    ----Segment Level Supply

    INSERT INTO @ConversionTesting(Quarter, Source, Segment, Metric,Value)

    select Q.Quarter, 'Converted' as Source, MarketsegmenttypeCode, 'Inventory', sum(NumUnits)

    from dbo.tbl_BldgSegments bs

    inner...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    jburkman (5/13/2008)


    *sigh*

    Ok, so I guess I'm the only one who doesn't get this part, but:

    in

    SELECT TOP 11000 --equates to more than 30 years of dates ...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: Undocumented Extended and Stored Procedures

    Kevin Mao (5/9/2008)


    Wow, that's great.

    For the first extended store procedure xp_fileexist which exists in Sql 2000. Others are new in SQL 2005.

    Are you sure? I'm able to...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    RyanRandall (5/9/2008)


    Use this kind of thing for that (no need for loop or tally)...

    update hshah.dbo.currentmembership set

    [memblname] = replace(replace(replace([memblname], ' ', ' |'), '| ', ''), '|',...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: The "Numbers" or "Tally" Table: What it is and how it replaces a loop.

    I'm trying, but can't figure out how to apply this to cleaning user input. I have a file I get monthly with member information that has some rows which...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: Undocumented Extended and Stored Procedures

    Jeff Moden (5/9/2008)


    One reason might be, you can't TRUNCATE if FK is present... heh, of course, that also means you need to delete in the correct table order.

    Would using sp_MSdependencies...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: Undocumented Extended and Stored Procedures

    One comment:

    exec dbo.sp_msforeachtable 'delete test.dbo.[?]'

    There's generally no need to do a delete without criteria, as truncate will perform better with less logging:

    exec dbo.sp_msforeachtable 'truncate table test.dbo.[?]'

    That said, I'm sure it...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: Implicit Conversions

    Trace Herrell (5/5/2008)


    This will not compile in SQL 2005....

    Conversion failed when converting the varchar value 'B' to data type int.

    On the contrary, it did compile but it encountered an error...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: Implicit Conversions

    I have 2000, and it gave the "correct" result for me.


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: clustered index

    This site (link) states that DB2 only guarantees that a clustered index is initially clustered, clustering is not maintained. While this saves time on inserts (no page splits), I'm...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: clustered index

    This sounds like unclustered indexes on a grouped heap. Granted, grouping the heap is an interesting idea, but I wouldn't call it multiple clustered indices.


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

  • RE: clustered index

    EdVassie (4/15/2008)


    A clustered index physically stores the data in the sequence given in the index definition. The way this is implemented in SQL Server means you can only have...


    Puto me cogitare, ergo puto me esse.
    I think that I think, therefore I think that I am.

Viewing 15 posts - 46 through 60 (of 83 total)