Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)

  • RE: 3 Tips On Being A Rookie DBA

    Thanks salman.samad for correcting me. I only skimmed the original article briefly.

  • RE: 3 Tips On Being A Rookie DBA

    good find salman.samad

    I had to find myself reading, re-reading and again re-reading the sentences to figure out the point. But I guess we can't complain about Greg Bates' poor...

  • RE: Useful Dates: The Many Uses of Date Tables

    TheSQLGuru (12/17/2008)

    It is customary and useful to have your int date keys be formatted CCYYMMDD, at least in the classical date dimension scenario. Identities are really not helpful here.

    What...

  • RE: Useful Dates: The Many Uses of Date Tables

    Bob Hovious (12/17/2008)


    Could you give us a real world example or two using other dimensions besides day?

    I have worked with large data warehouse applications that do a lot of data...

  • RE: Useful Dates: The Many Uses of Date Tables

    rkonopka (12/17/2008)


    Instead of double converting (first to varchar then back to datetime), wouldn't it be simpler and "cleaner" to do this:

    select dateadd(dd,datediff(dd,0,getdate()),0)

    Enjoyed the article

    I've started to use that approach for...

  • RE: Useful Dates: The Many Uses of Date Tables

    Jeff Moden (12/17/2008)


    Brandon,

    Not sure what the text editor you used may have done to you, but there's a lot of missing spaces in your code... for example CREATE TABLE has...

  • RE: Useful Dates: The Many Uses of Date Tables

    mike.byrnes (12/17/2008)


    If my calculations are correct, then if each year took 5Mb then 200 years would be 1 Gb worth of data, not 100Mb.

    I guess I was incorrect that it's...

  • RE: Useful Dates: The Many Uses of Date Tables

    Joe Celko (12/17/2008)


    The calendar date is the natural key, so the magically vague "id" is not needed. The table is not normalized to 1NF -- you have data and...

  • RE: The Numbers Table

    Minority here on SSC where people are a bit more educated about these things, but certainly not in the world at large. I make my living fixing performance messes...

  • RE: The Numbers Table

    sho (11/24/2008)


    there seem to be some very ungrateful (and even rude) posts here! and it's completly uncalled for!

    I agree. But then again, maybe I'm biased.

  • RE: The Numbers Table

    Ed W. (11/24/2008)


    Ok, so you populated a table with numbers. Everyone can argue about how to do that, but the real question is what do you DO with the table...

  • RE: The Numbers Table

    So it would seem that there are two debates going on here. The first is whether or not a numbers table SHOULD exist and the second is what is...

  • RE: The Numbers Table

    as Adam Machanic pointed out, you can set the maxrecursion. But one by one recursion won't be very fast.

  • RE: The Numbers Table

    As long as you don't need to generate more than 100 numbers, that will work.

    Otherwise, you will get:

    Msg 530, Level 16, State 1, Line 4

    The statement terminated. The maximum recursion...

  • RE: The Numbers Table

    I can't really get into what we use it for. But rest assured, I have the need for large numbers tables. I'm not saying it's every day practice,...

Viewing 15 posts - 1 through 15 (of 17 total)