Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install sql server database with my application c#

I have written a C# application that uses a SQL Server database. The intended users of this program will be running SQL Server 2008 R2. I have created a setup program (deployment project in visual studio) that installs my program but I would also like it to install the database. How do I go about accomplishing that?

like image 583
Vance Smith Avatar asked Mar 07 '11 09:03

Vance Smith


People also ask

How do applications connect to SQL Server?

In Power Apps Studio, open the app that you want to update. Click or tap Data sources on the View tab of the ribbon. In the right-hand pane, click or tap Add a data source. Click or tap New connection, click or tap SQL Server, and then click or tap Connect.

How do I create a SQL Server database and install it?

Use SQL Server Management StudioIn Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance. Right-click Databases, and then select New Database. In New Database, enter a database name.


1 Answers

You could write a custom install action. Take a look at the following article.

like image 134
Darin Dimitrov Avatar answered Sep 22 '22 20:09

Darin Dimitrov