Flat File db to SQL Server DB

  • I have flat files databases from over 360, 000 servers that need to be converted to SQL Server databases. I need to estimate the size of the flat files so i know how much space i need for my new SQL Server databases. The new databases will reside in a shared environment and space is limited.

    My question is, is there a way i can estimate the size of a flat file database?. Thanks for your responce

  • I would recommend converting a sampling of them and then using that to estimate average DB size and extrapolate from there.

    What exactly is a 'flat file database'?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • John -

    A flat file database is nothing more than a plain-text file that contains one record per line, extremely similar to a comma delimited file.

    Chris Powell

    George: You're kidding.
    Elroy: Nope.
    George: Then lie to me and say you're kidding.

  • That's what I figured, but I was hoping to verify this from the OP.

    There are several factors that will go into how much space will be required to store all these 'flat file dbs'. I am assuming that the entities in the flat file will be modeled out into a relational design in the SQL Server. This means that what may take xx amount of space in a flat file will not require the same amount of space in a DB file because of the relational design, indexing, log file space, and other factors.

    I would recommend designing out the relational model with basic indexing and referential constraints and import a minimum of 1000 random files so you can get an idea of how much space is required.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • Thanks for your suggestion.

    Someone also suggested counting number of characters per row and multiply by the number of rows from the largest table. Wonder if this can work considering white spaces..

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply