Forum Replies Created

Viewing 15 posts - 361 through 375 (of 378 total)

  • RE: The Numbers Table

    Play with my test code and it might help explain some things. But best ofcourse is to have a test database online somewhere that is accurate in modeling and in...

  • RE: The Numbers Table

    I did some test myself and using the test tables Jeff Moden created. I made a function that is not RBAR and beats both compared solutions on my server bigtime....

  • RE: The Numbers Table

    Jeff Moden (11/27/2008)


    I don't know about you, but on my humble 6 year old, single 1.8 Ghz CPU, 1GB ram, IDE hard drive system running SQL Server 2005 Developer's Edition...

  • RE: The Numbers Table

    This changed the run time of the query from about a minute to a few seconds. So this shows that a RBAR table valued function can be much more efficient...

  • RE: The Numbers Table

    Adam Machanic (11/26/2008)


    I also seen solutions (and I am still using one, but looking for a way out) that use 'master.sys.All_Columns' as a seed table and generate numbers using the...

  • RE: The Numbers Table

    Also, a DBA should know what tables will have a non-interrupted PK and use those instead of others that may have had deleted records.

    Besides the point that you cannot be...

  • RE: The Numbers Table

    Richard Hill (11/26/2008)


    It seems to me we all need a little focus here. Its not bad practice.

    I have a database with a table that already contains a PK with enough...

  • RE: The Numbers Table

    Could you not just us the PK of a large table that already exists int the database instead, seems to work for me in 99% of cases.

    That "sort of" works...

  • RE: The Numbers Table

    jacroberts (11/25/2008)


    Adam Machanic (11/25/2008)


    Anyone can take any example and change it so it performance is important.

    You're absolutely right! Why do you suppose that it happens to be so easy?

    Is...

  • RE: The Numbers Table

    Performance might not always be critical, but it is and should always be an issue for anything but a known to be 'short' ad-doc operation. It is good practice to...

  • 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: Tips for New DBAs

    Heh,

    As I said, that one comment that got me going beserk was not in line with the rest, and yes, I am indeed looking forward to the follow ups!

  • RE: Tips for New DBAs

    If I sound harsh in this post, thats is because I am. One of your first comments is about something that I feel is deeply wrong with the role of...

  • RE: Speed or Value?

    I think price/Performance is the most important from a business point of view.

    As with some other posters I have not been involved in the kind of consistent huge loads that...

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

    As I should, I will do some thorough testing with a recognizable real world problem. It will take me a few days before I can do so and am already...

Viewing 15 posts - 361 through 375 (of 378 total)