Install database together with C#

Asked

Viewed 1,008 times

3

I am finalizing an agenda of the meeting room that will be in the company reception, so I opted for the base to be locally and not networked. I intend to use Mysql or Sqlite. Is there any way I can install the database together with the application? For example: when I download any program from the internet, it seems that the database is installed together with the application. I am using Innosetup.

  • If I am not mistaken Innosetup gives the option to 'attach' the file sqlite along with the installer

  • 1

    You are mixing some concepts. The right term is not to compile, but to install. You have provided few details to help you. But if I understand correctly, go to Sqlite. Do not choose Mysql and SQL Server to run locally. In many cases it is a cannon shot to kill a butterfly. An unnecessary overhead. Sqlite does not need to be instilled. You just need to put the database file + DLL in your installer. No wonder that on Android Sqlite is so used. Simple and functional.

  • Related: http://answall.com/questions/78774/instalar-o-sqlserver-com-a-aplica%C3%A7%C3%a3o

  • Sorry Bigown. Your reply helped me. In the course of day to day I forgot to mark. I just marked as reply. Thank you

1 answer

7


Mysql gives, in thesis. The work is monumental and complex. But I’m talking just out of curiosity, it’s not what you want.

What is used in these cases is the Sqlite. You have to lower the Assembly and send along with the application. Of course your application should know how to work with it. You will need to understand how to use the Assembly in your project, how to program for it, how to add in your installation, etc. In addition to learning how to use it obviously.

As you seem to be very raw with this I’ll give you the basics and you will ask as you have doubts.

You can install one of the components in links below. Has the necessary files for the execution and design time helpers of Visual Studio.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.