Click here to Skip to main content
16,011,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i deploy windows C# application with its local database SQL ??

Thanks
Posted

You would need to create a setup that creates/deploy database along with your application install.

Have a look at these:
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]
 
Share this answer
 
If you're willing to spend some money and don't want to work very hard, I would recommend the following tool. Red Gate SQL Packager[^]. You can point this tool and an existing database and it will do everything for you, packaging the database with scripts and existing data for deployment.

Once you have the package from the tool, your installer only needs to call that .exe file to build a database.

Good luck!

Hogan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900