Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Seed data should support CSV files #16

Open
jpoehls opened this issue Apr 13, 2011 · 0 comments
Open

Seed data should support CSV files #16

jpoehls opened this issue Apr 13, 2011 · 0 comments
Labels

Comments

@jpoehls
Copy link
Owner

jpoehls commented Apr 13, 2011

  • CSV files must have headers that match the table's column names.
  • The CSV file name must either match the table name completely (ex. MyTable.csv) or must contains the table name in brackets somewhere in the file name (ex. demo data for [MyTable].csv).
  • If the headers include the Primary Key column then turn identity insert on.
  • The CSV file name must include the table name in some parsable way.
  • Turn off CHECK CONSTRAINT before inserts and turn it back on afterwords.
@ghost ghost assigned jpoehls Apr 13, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant