简体   繁体   中英

SQL Server Express C# application install combination

What is the best way to deploy SQL Server Express Edition with an application for release? We also need to bring the data along as well.

I read that you use the SQL Server Express MSI installer, but how do we go about importing all the tables, views, sproc, data, etc?

This will be deployed to multiple customer sites and we need to start testing an install.

Any ideas will be greatly welcomed.

Thanks.

You can ship an MDF with your application and attach it at application runtime using the information at the following MSDN page.

http://msdn.microsoft.com/en-us/library/ms165716.aspx

This is similar to the way visual studio/ASP.Net attaches MDF files in App_Data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM