How to create a database and populate it during setup

Posted by Philippe on Stack Overflow See other posts from Stack Overflow or by Philippe
Published on 2009-03-05T17:05:33Z Indexed on 2010/05/09 5:18 UTC
Read the original article Hit count: 366

I would like to find a way to create and populate a database during asp.net setup.

So, what I'm willing to do is:

  1. Create the database during the setup
  2. Populate the database with some initial data (country codes or something like that)
  3. Create the appropriate connection string in the configuration file

I'm using .NET 3.5 and Visual Studio 2005, and the Database is SQL Server 2005.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about deployment