Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have tried many times to create a c# database Setup which runs on client side but i failed if you know any video link or any other helping material then please share it with me. I will be very thankfull to you.

What I have tried:

i have tried both the videos practice but not working:
How to install C# application with database on Client machine [2017] - YouTube[^]
[C# Application] How to create c# application Setup with SQL Server DataBase - YouTube[^]
Posted
Updated 19-Jan-19 9:02am

I can recommend this way of installing SQL Server: Modular InnoSetup Dependency Installer[^]
It uses the Inno Setup installer to install all kinds of prerequisites without including them in your setup, instead they are only downloaded if needed.

If you prefer an allround commercial installer, I can recommend Advanced Installer: https://www.slant.co/improve/topics/5669/viewpoints/3/~way-to-package-net-web-application-for-distribution~advanced-installer[^]

Even better would be to forget about SQL Server, as bundling it with your applications and setting it up is a real pain. There are alternatives that are much simpler and lightweight like PostgreSQL or SQLite. See: PostgreSQL Tutorial - Learn PostgreSQL from Scratch[^]

If you only need a lightweight database, see: https://www.slant.co/topics/274/~best-databases-for-a-small-net-application[^]
 
Share this answer
 
v3
Comments
Member 14123234 19-Jan-19 15:20pm    
thank's for response , But i have created the complete windows form and connected it to sql server.it's working fine know i want to create a setup of that to deliver it to my friend.so it's make me panic of doing so . i watched too many youtube videos for it but not working gives the error of database.
RickZeeland 19-Jan-19 15:35pm    
Welcome to the SQL Server victims club, because everyone uses it, it does not mean it is the best choice for you :)
RickZeeland 19-Jan-19 16:20pm    
I saw in the youtube video that the database files are detached and copied. This is not a good way to distribute your database, it is better to generate an SQL script in SQL Server Management Studio and run that from your app.
You're using an 3rd party install builder. Go to the manufacturer's website and ask them how to use their software.

Beyond that, when I write an app that uses a database, I prefer to write the SQL that's necessary to create the database, and let the app do the work (see if sql server is installed, and if it is, create/alter the database necessary. Your installer should either prompt the user to install the necessary db tools, or do it for them (after prompting them of course.
 
Share this answer
 
Comments
Member 14123234 19-Jan-19 15:21pm    
thank's for response , But i have created the complete windows form and connected it to sql server.it's working fine know i want to create a setup of that to deliver it to my friend.so it's make me panic of doing so . i watched too many youtube videos for it but not working gives the error of database.

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