How I can create a SETUP for C# App [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I create an application using C# and SQL Server database, when I try to create the setup I realized that I need to install SQL Server and create the database in every computer that I install my app on.
Is there any way or software can create the setup with the database without install the SQL server in other computers?

If your storing data locally you are better off to use SQLite (as Flat Eric mentioned, it needs no installation and it efficient on small DB's) then you can just copy the .mdf files instead of having to install the entire SQL server on every machine. Visual Studio provides great functionality to help you set up a LocalDB.
Here are two useful links, They really helped me in these situations:
Upgrade to LocalDB
Creating a Local Database File in Visual Studio
Connecting to Data in a Local Database File (Windows Forms)

Related

Code first migration to Azure database / webservice [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm having trouble setting up Visual Studio and my Web Service hosted on the Azure platform. My webservice needs to connect to an AzureDB.
The troubles begin when i try to Code first migrate my data models into my Azure database. I'm not sure how this is done, because when i try to do it in the Package Manager, it keeps doing it on the local database, and not on the Azure database. The guides i've found seems to be outdated, or not working with VS2019 somehow.
The update-package command picks up the connection string from your "startup" project in your solution, which is likely to be your website.
So you could update the connection string in there, and if your permissions are correct, you'll be able to deploy to the remote database.
What I would suggest is look into to doing a proper pipelined solution, where the migration runs as part of a deployment to an environment.

SQL Server database for c# application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new at programming and I want to make an app which uses a SQL Server database. Most important feature of this database must be usable for every computer which has the app installed.
I mean, when I give this app's setup file to another person, this person should be install my app without installing SQL Server program, extra things etc. I don't know it is possible.
I created a database with "SQL Server Object Explorer" inside of "(localdb)\MSSQLLocalDB" but when I tried to add new connection, server name was empty. So I didn't import a database to my project.
So how/where can I create and import a database ?
If you want a local SQL database with your application, that is: data is not shared between devices or users, you'll want something like SQLite which is designed for embedding in distributed applications.
To use it you need to link against the binary and include the binary in your application package. Or, you can use the SQLite team's native C# SQLite library. See here: https://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki

Which local database should be used for C# Windows Application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Which local database should be used for C# Windows applications?
I am very confused about Localdb, SQL Server Express and SQL Server Compact.
And install on client Machine.
SQL Server Express is the currently favored option by Microsoft. It's a full database engine, but it must be (separately) installed on the client's PC, and it starts up as a Windows service in the background.
SQL Server LocalDB is a developer-oriented special version of SQL Server Express, with the same feature set, and it, too, must be installed. Other than SQL Server Express, it doesn't start up as a Windows service in the background, but it gets fired up when your application starts, and terminates when your application finishes its work.
SQL Server Compact Edition is a very different beast - uses .sdf files, is a single-user, embedded database, meaning you just need to include a few *.dll in your project, no separate installation needed. It's limited in its features, and it's no longer developed any further by Microsoft and will eventually go away
If you absolutely must have a "no-install" approach, you'll need to investigate other options, like SQLite or others.

Create and manage database in visual studio 2013 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm currently learning the basics of ASP.NET and visual studio 2013. My teacher has given me an assignment to create a basic student registration form and when the student clicks submit, his data should be uploaded to the database.
And also there should be an option to display all the submitted data in a single table in a webpage.
I've created the basic web form but I don't know how to create and connect to a database.
Using PHP, I could create a mysql connection and use sql queries for the rest.
How do I do it in asp.net and sql server?
PS. I'm using sql server 2012 and visual studio 2013 community edition.
Any help would be appreciated.
You have a number of options here. I would recommend based on what appears to be limited experience a tool like Entity Framework https://msdn.microsoft.com/en-us/data/ef.aspx or NHibernate http://nhibernate.info/ would be sufficient. The benefit of these tools is they can actually generate your entire database from your model or vs versa. Nhibernate might be a little more complex for you to setup so I would go with Entity Framework. Google for some samples, there should be plenty!
If you are familiar with PHP a similar such tool would be Doctrine http://www.doctrine-project.org/ which I have used and it is pretty good.
The key really is you need to adjust to a totally new paradigm for development (Unless you have already used OO development within PHP)
Good luck with you development.

what should be the database for the windows form application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am new to programming in windows environment with Visual Studio most of my work is done in web and PHP .I have to build windows application for a store and the store has to add stock/make bills and sort expired products and the stuff related to stuff so what database backend should i prefer?i thought of microsoft sql but i have to install it on clients system or any simple alternative would be more helpful ?
I asked a similar question here:
Local file-based SQL Server
I had used SQL Server previously, but like you, it had to go onto a client's computer. I'm now using "Microsoft SQL Server Compact Edition (CE)" as suggested in the answer, and this works really well as a standalone database solution.
For deployment point of view I suggest you to use MS Access Database. It is most flexible and simple in use also. Check following link for same
http://office.microsoft.com/en-in/access/
I am using MDB (access database), but for the next project thinking to go for SQLite.
Reason is because MDB access via OleDb is not working in 64 bit applications. You have to compile software as 32 bit, then it will work under 64 bit OS. Or other solution is to install something, called ADE, what will add provider, which solve the issue.

Categories

Resources