Forum Replies Created

Viewing 15 posts - 46,996 through 47,010 (of 59,064 total)

  • RE: The Numbers Table

    CheeseMan316 (11/24/2008)


    Thanks for all the responses and thanks yuvalpe for identifying the original source of that query.

    Actually, you need to look at the post just above yuvalpe's... 😉

  • RE: The Numbers Table

    jeffery.baynard (11/24/2008)


    Itzik uses RECURSION, even faster.

    With nums as

    (

    Select 1 as n

    Union all

    Select n+1 from nums where n < 10

    )

    Select n

    From nums

    As...

  • RE: The Numbers Table

    jacroberts (11/24/2008)


    It depends how much performance is an issue, for a lot of queries it is not. For example, if there is a daily report that runs in batch it...

  • RE: Are the posted questions getting worse?

    Or the worst, depending on how you look at it.

    Is it me, or is it just the "language barrier"? Have these people no clue as to what a little...

  • RE: Resume of MCDBA

    sqlizer (11/24/2008)


    Why do you guys even reply, just delete his/her post.

    Heh... part of his training to be a DBA. 😉

  • RE: Advice for array oflarge arrays

    Heh... never mind... not enough coffee... this is a matrix they want and they want to be able to address the data by the individual elements using j,k coorinates. ...

  • RE: Help with Money and Decimal datatype

    Then you don't need to do the formatting in the file you send because the spreadsheet is gonna format it the way it want's. In fact, you adding commas...

  • RE: Increase Timeout to Get Query Results

    If it's on the GUI side that you want to do this, then I'm not sure.

    If it's on the SQL Server side of the house, a trip to Books Online...

  • RE: Please show the certification chart of MCDBA

    Again... Lookup SQL Server Certification on the Microsoft Website...

  • RE: Advice for array oflarge arrays

    I'm getting ready to go to work, so I can't solve it all right this instant.

    I do have a question, though... are all of these values for a single column...

  • RE: Function that finds Sundays

    Peso (11/24/2008)


    Jeff's simplified.

    SELECT DATEADD(wk,DATEDIFF(wk, 0, getdate()), 6)

    However when run on a sunday, the code returns following sunday.

    My suggestion returns same sunday if run on a sunday.

    Heh.. yeah... I did...

  • RE: The Numbers Table

    yuvalpe (11/24/2008)


    This topic was cover complitly by Itzik Ben-Gan years ago

    So? There's lot's of folks that don't even know who he is, never mind what a Numbers or Tally...

  • RE: The Numbers Table

    jacroberts (11/24/2008)


    I'd consider using a table valued function instead that only returns the rows I'm interested in:

    e.g.:

    CREATE FUNCTION [dbo].[Nums]

    (

    @StartNum int,

    @EndNum int

    )

    RETURNS...

  • RE: Are the posted questions getting worse?

    It was very difficult to maintain any semblance of professionalism on that one. Some of these folks need to clean the pipe they're smoking. 😛

  • RE: The Numbers Table

    Just an FYI... the source of the CTE in your article is by a fellow called Itzik Ben-Gan and can be found at the bottom of page 255 in a...

Viewing 15 posts - 46,996 through 47,010 (of 59,064 total)