Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have a confusion about the last stage of software application.
I have developed my first ever Desktop Application.

Confusion is when we create Setup (exe)file of the app, is the DB also included in the setup?
What I mean is do I need to give DB separately to the client or it is included in setup?
Where do the DBs of Desktop App are generally saved?

I'm beginner, So please help me.
Posted
Comments
Sergey Alexandrovich Kryukov 22-Jul-14 13:29pm    
DB or database management system? It depends... There is no "general".
—SA
Sneha_10 22-Jul-14 13:50pm    
Database only
Sergey Alexandrovich Kryukov 22-Jul-14 16:23pm    
Well, if the database is populated with something and is supposed to exist, you should deploy it, with application, or separately.
If the user should be able to create a database, you should provide some ways to do it. You are asking about something you should know better.
And you really need a database management system, which can be user-supplied (the it should be a prerequisite), or you should supply it.
The answers are reduced to... asking the same questions, only in a correct way. :-)
—SA
[no name] 22-Jul-14 14:54pm    
You add the database to your setup just like any other file. Do some research for setup and deployments for whatever database you are using and whichever setup creation package you are using.

There are two ways
Lets say you are using Sql server

1.If you have set the connection-string in App.config.
then you just need to change the connection string after installation.
Lets say your app is "MyApp.exe"
then your config file will be in "MyApp.exe.config" .
you can change the connection string to access any sql server on internet or a local server too.
While making setup using Install-Shield you can also add sql server setup as prerequisite dependency.
so it will be installed automatically ,
Alos you can us "INNO setup" a free utiltiy
to write script to make your setup.

2.For win application you can also implement sql server Compact , so you don't need to set connection-string ever.
 
Share this answer
 
v4
Comments
Sneha_10 23-Jul-14 12:18pm    
Thank you. Will try it. :)
did it help to resolve your probelm ?
 
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