0

EDITED FOR CLARITY: I am writing a winforms application for desktop that relies on a database to fill it's information. I would like to include the files that hold that data in the deployed application so that it can be installed on a user's computer so that they can use the data locally instead of across the internet.

ORIGINAL POST: I am writing a Desktop application that makes use of SQL Databases. I want to be able to package it up with the database files and have it work when someone installs it. Is there some way to do this with VS17? Or Should I just work with an XLS file from Excel?

I'm using Visual Studio 2017. I have done a google search that responded with installing SQL this and that but nothing relating to VS17. My stack overflow search pulled up one result that I thought was relevant, that suggested installing sqlite without any other elaboration.

When I installed and ran on my computer, it worked, but I believe that is because I have the database service running on my machine since this is where I code and test the application through VS. I had an associate run it and it gives them an error:

Cannot find directory or file

EDIT: The replied i am getting seems to be all about installing a SQL Server. I am looking to make sure the project deploys the Database files, not the server.

8
  • stackoverflow.com/questions/32956142/… Commented May 19, 2019 at 23:36
  • 1
    Possible duplicate of How to deploy application with sql server database on clients Commented May 19, 2019 at 23:37
  • 1
    A SQL Server database is an MDF file and you can include the MDF file when publishing. Commented May 19, 2019 at 23:53
  • @jdweng How would i go about doing that? Commented May 20, 2019 at 0:07
  • Hover your mouse over the sql-server tag in your question and tell us which SQL Server you are using. Why do you not want to deploy SQL Server? Commented May 20, 2019 at 1:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.