Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Import data into multiples tables or one? Expand / Collapse
Author
Message
Posted Monday, October 22, 2012 7:15 AM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, June 16, 2014 11:58 AM
Points: 496, Visits: 816
I'm building an import package for a CSV file that has about 200 columns. If every column was maxed out it would be about 2200 bytes and is well below the max table size. Should I split this up into multiple tables because of the amount of columns?
Post #1375412
Posted Monday, October 22, 2012 9:29 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 9:47 AM
Points: 13,110, Visits: 11,940
AVB (10/22/2012)
I'm building an import package for a CSV file that has about 200 columns. If every column was maxed out it would be about 2200 bytes and is well below the max table size. Should I split this up into multiple tables because of the amount of columns?


My guess is that with that many columns the data could stand to be normalized. I would import it into a wide table and then normalize it. I don't see any reason to break this into 2 tables. If the rows were too wide then yes but otherwise it is going to be more work than needed.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1375523
Posted Thursday, January 3, 2013 9:23 AM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, June 16, 2014 11:58 AM
Points: 496, Visits: 816
Sean,

Thanks for the reply. Appreciate it.
Post #1402444
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse