Forum Replies Created

Viewing 15 posts - 21,241 through 21,255 (of 26,484 total)

  • RE: Performance issue with tally solution

    TheSQLGuru (5/1/2009)


    Flo, are you getting your reads from SET STATISTICS IO ON? IIRC UDFs don't report IO correctly in this manner. Try getting them with Profiler.

    Depending on how...

  • RE: Performance issue with tally solution

    Paul White (5/1/2009)


    Lynn,

    I'm thinking that that TVF might be adapted to accept a string of characters to keep as a parameter.

    Returning a set of characters to strip would allow Jeff's...

  • RE: Comparison of Dates in SQL

    Ed (5/1/2009)


    Using the DATEDIFF function works but can be very slow.

    I prefer using:

    DECLARE

    @FromDate DATETIME,

    @ThruDate DATETIME

    SET @FromDate = CONVERT(VARCHAR, GETDATE(), 101) --mm/dd/yyyy 00:00:00.000

    SET @ThruDate = DATEADD(DAY, 1, @FromDate)

    SET @ThruDate = DATEADD(MS,...

  • RE: Performance issue with tally solution

    Don't know if it is worth anything, but here is an In-Line TVF that will return 256 ASCII characters:

    alter function dbo.ufnChar256()

    returns table

    as return(

    with Numbers16 (

    N

    ) as...

  • RE: Are the posted questions getting worse?

    WayneS (5/1/2009)


    Hey Steve...

    I was (quickly) moving my mouse to go to the link to move to the next page on this thread, and a little popup window came up to...

  • RE: SELECT AVG() causing arithmetic overflow?

    Also consider that the routine already is complex. If you pass an INT you get an INT in return; if you pass a DECIMAL you get a DECIMAL in...

  • RE: Are the posted questions getting worse?

    Florian Reischl (4/30/2009)


    Hi Lynn

    No. It's just a dictionary but the greatest I know (already 200,000 request within the last two hours).

    Why? Is my English SO bad? :doze:

    Heck no! I...

  • RE: Are the posted questions getting worse?

    Florian Reischl (4/30/2009)


    Hi John

    I'm quiet sure that English is not her/his first language (due to the "Ja" I think he is German) but this is not the problem. I would...

  • RE: SQL

    Paul White (4/30/2009)


    Lynn Pettis (4/30/2009)


    lungy (4/29/2009)


    ...heaps of sql...

    I'm glad someone else took the time to read through your unformatted code, as I really didn't have the time. A good...

  • RE: Converting Temp Table to Table Variable... Is this possible and how?

    Having reviewed the article, I highly agree with the comment to print the article and give it to your boss.

  • RE: SQL

    lungy (4/29/2009)


    ja i have removed commented part AND still my front gives me the same error so it does not work

    The original code is this one which gives me this...

  • RE: Are the posted questions getting worse?

    GilaMonster (4/30/2009)


    RBarryYoung (4/30/2009)


    Glad Gail got to him first, she always handles these very professionally. I would have had him two feet off the ground, grasping at his own throat.

    That's...

  • RE: Help on purging old records

    Here is an updated test suite.

    create table #Order (

    OrderId int,

    DeliveryDate datetime,

    Price money,

    UnitId int,

    ...

  • RE: Help on purging old records

    HOWEVER!

    What other status codes are possible, and is it possible that one order may have multiple statuses? I'm sure you only want to delete orders where all the items...

  • RE: Help on purging old records

    Florian Reischl (4/30/2009)


    Apologize twice...

    1st) I didn't see Lynn's answer

    2nd) I forgot the "WHERE Status = 'Completed'" in my statement. Just corrected.

    Greets

    Flo

    Flo,

    No apologies needed. Your solution is the one I...

Viewing 15 posts - 21,241 through 21,255 (of 26,484 total)