Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

deploy wpf app with sql database

I am using Visual Studio Setup and Deployment deploying my wpf app. My aim is to package my wpf app so that I can install and run it in any machines which don't have sql installed and machines don't have internet access. I am using sql server express 2008 r2 and VS2010. I did some research, migration might be the solution but I have no idea how to use it and I don't find helpful tutorials for that. Please help me. Thanks in advance.

like image 800
user2787971 Avatar asked Mar 25 '26 00:03

user2787971


2 Answers

You can use Microsoft SQL Server Compact Edition with a private deployment. See this good article

like image 156
lena Avatar answered Mar 26 '26 14:03

lena


In your setup Project, Go to project properties, Click for prerequisite button and check sql server version you are using for your project, also check the .Net version of the project.

if the host computer don't have the internet than select "specify the install option" as Download the prerequisites form the same location as my application.

This will create a full package of your application and ready to be deployed in any machine.

like image 36
Mujahid Daud Khan Avatar answered Mar 26 '26 14:03

Mujahid Daud Khan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!