Populating tables on install

  • Hello all, I am going to run a script to install my tables onto my SQL server. I would like to populate some of the tables with values when the script is run (dropdown tables, default values table etc).

    How should I do this?

  • Generally when I have seen this done in repro scripts and the like you just code some INSERT statements with your fixed valuess. If you have lots of data you could look at bcp.

  • Google for:  SQL insert script generator

    You will find numerous tools that will generate the insert statements for you.

    Unless you like keying them out by hand....

    hth jg

     

  • Try http://www.sqlscripter.com to generate your data scripts.

    -Thomas

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

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