Deploying a database with your product

The situation

Your software application incorporates a Microsoft SQL Server or MSDE database. When your customers run the product installation, you want to install the database schema and data along with the product.

Key challenges

  • Seamlessly incorporating database deployment with installation of your product.

How we can solve it

  1. Use SQL Packager to package your database as a .NET executable.
    You can select the compression option to make the package smaller.
  2. Include the SQL Packager™ .NET executable and associated DLL files as language-independent support files in your installer.
  3. Set up a custom action to launch the database installation executable, using SQL Packager's command line interface, and place it in the appropriate place in the installation execution sequence.

To learn more, take a look at our worked example.

Benefits of our solution

  • SQL Packager enables you to install the database as part of the standard installation procedure.
  • Compressing the package reduces storage, transfer, and upload times.
  • You can create a C# project, instead of a .NET executable, so that you can customize the package.

Case studies

Online help