Deploy standalone database - database

I create an application and use SQL SERVER 2008 R2 as its database. How I will deploy my application in a standalone computer without attaching the database? Is it possible to do that ?

Incase you don't want to install sql server on client side,you need to change database to any document database.you may go for sqlite http://www.codeproject.com/Articles/22165/Using-SQLite-in-your-C-Application

Related

How to embed SQL Table to .Net Application

I am using SQL Server as database with VB.net to develop an application. Is there any way to embed the SQL db/table to the application so that client will not have to install SQL Server.
I think recent versions of SQL Server have a feature called 'LocalDB' which might fit your needs : https://msdn.microsoft.com/en-us/library/hh510202.aspx

How can I transfer tables from one SQL Server database to another?

I have 2 SQL Server database files .mdf on 2 different projects in Visual Web Developer Express Edition 2010, I need to make them one database by taking the tables of one database to the other database.
I use the built in development server of Web Developer and I don't have SQL Server installed separately on my system.
So how can I do that ? Do I need special tools or this can be done with web developer ?
Thanks
Check out the database publishing wizard. It should let you generate scripts for the entire database and then you can just run those scripts in your new db.

Deploy SQL Server and my dataBase with oneClick setup

I'm asking if it's possible to deploy SQL Server and my database with oneClick setup.
I'm mean that I have to give to my client the setup file that contains my application and my database. The user should just have to click on the setup, and automatically install my application, SQL Server and deploy the database in one operation.
Is that possible?
Thanks but I
need alos to know how to deply te SQL SERVER 2008 runTime?
I mean after installing the application, I have to instal the SQL Server and then deploy the database
You can script all the objects in a database via the SSMS by right clicking on the db -> Tasks -> Generate Scripts -> Check Script All Objects in this database. Save the script to a .sql file and execute it against their SQL Server Instance.
Of course it is possible, your client just needs to provide SQL Server credentials during setup and your code can execute scripts during setup to create all the necessary database objects. If this doesn't fit your definition of "oneClick" than you would need to have this information ahead of time and include it in your installation but that would not be secure and it doesn't make much sense because you'd than have to create a unique setup for each client...

deploy SQL Server Express database with desktop app?

I've created my first database based desktop app in .NET and not able to understand how can I deploy the database with the application installer, so that the database, application and the SQL Server is installed in one go.
If I only deploy the native client for SQL Server and the database with the installer, will it work?
The application uses the database very frequently.
You need to install the SQL Express engine if you want to use it. Deploying only the client connectivity will give you exactly what the 'client connectivity' name implies: you'll be able to connect to a SQL Server. But only a running SQL Server instance will be able to read/write your application database.
The SQL Express install MSI is actually very customizable and allows for a lot of scenarios, including unattended setup and remote deployment. For the most basic options, see Configuring SQL Express During Installation. Your application installer will have to invoke the Express installer passing in the desired parameters.
Using click once you can make sql server express a dependency of the main project and it would be deployed with the instalation data and installed, if it is not instaled yet, when you first install your app.
You can do it in the project properties, in Visual Studio.

Problem with deploying an application that is using sql server 2008 express

I've developed an application for my college project in Visual C# which uses SQL Server 2008 Express database. My application is desktop-based. But the problem now is deploying the application. Is it required that a SQL Server 2008 be installed on the client machine (with my tables and data inserted) or can I just have the .mdf file exported and everything works well?
Is there a way to escape the installation of SQL Server 2008 on the target machine?
Sorry, just found a duplicate: Does user need SQL 2008 Express Installed if I deploy app with .mdf file?
You can deploy SQL Server Express with your application. However, most of the time this is just the wrong thing to do. SQL Server Express is a server-class database, and likes to use up system resources as such. It also runs as service, which means it's using those resources even when your application isn't active.
Instead, you should choose a desktop (or in-process) class engine, like SQL Server Compact Edition, Sqlite, or even MS Access. In addition to being an all around better choice for your desktop program, these database will also generally be much easier to deploy.

Resources