在C#程序中安装期间/之后自动附加SQL Server数据库 [英] Automatically attach SQL Server database during/after installation in c# program

查看:79
本文介绍了在C#程序中安装期间/之后自动附加SQL Server数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我在安装过程中或使用c#.net(桌面应用程序)安装后如何附加SQL Server数据库(SQL Server 2005).我们可以创建一个表单来获取连接字符串的详细信息(用户ID,密码,服务器名称等).请告诉我如何使用.net

Please tell me how can we attach SQL Server database (SQL Server 2005) during installation or after installation using c#.net (desktop application). We can create a form to get details of connection string (user id, pass, server name etc..) . please tell me how can we automatically attach database with SQL Server using .net

推荐答案

如何自动将数据库与SQL Server附加在一起,请参阅针对创建设置并支持使用VS.NET创建数据库 [在安装.NET应用程序期间创建数据库 [部署您的应用程序和数据库 [
Look at the answers given for the similar question asked here[^].
Various article links are present in it that will help you achieve the same.

Have a look at these too:
Creating setup With support for database creation Using VS.NET[^]
Create database during installation of a .NET application [^]
Deploy your Application and Database[^]


这篇关于在C#程序中安装期间/之后自动附加SQL Server数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆