怎样在打包程序中自动附加安装sql server数据库(How to install SQL automatic packing procedures in additional server database).docVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
怎样在打包程序中自动附加安装sql server数据库(How to install SQL automatic packing procedures in additional server database)
怎样在打包程序中自动附加安装sql server数据库(How to install SQL automatic packing procedures in additional server database)
1, create the installation project Setup installation project
On the file menu, point to add items, and then select new projects.
In the add new Project dialog box, select installation and deployment projects in the project type pane, and then select Install items in the templates pane. In the name box, type setup (other names are OK, as per will).
Click OK to close the dialog box.
The project is added to the solution explorer, and the file system editor opens.
In the properties window, select the ProductName property, and type in the XXXX system (the name of the project you are doing).
2, create the installer class (install.cs) in the installation project.
Right on your projects solution, select the new project in add. Then select the class library, enter DbSetUp in the name, and select the directory where your project program is located. Click OK to close the dialog box.
Right click on the new project, DbSetUp, and select new item in add. Then select the installer class in the Visual c# project item, and click Add to close the dialog box.
Switch to the code view and write the following code in the install.cs file:
Using System;
Using System.Collections.Generic;
Using System.ComponentModel;
Using System.Configuration.Install;
Using System.Diagnostics;
Using System.Data.SqlClient;
Namespace DBSetUp
{
[RunInstaller (true)]
Public, partial, class, Installer1: Installer
{
Public, Installer1 ()
{
InitializeComponent ();
}
Private, void, CreateDataBase ()
{
/ / start SQL service, installed after the service did not start prevention
Process P = new, Process ();
P.StartInfo.FileName = cmd.exe;
P.StartInfo.UseShellExecute = false;
P.StartInfo.RedirectStandardInput = true;
P.StartInfo.RedirectStandardOutput = true;
P.StartInfo.RedirectStandardError = true;
P.StartInfo.CreateNoWindow = true;
P.Start ();
P.StandardInput.WriteLine (net start MSSQL$Rybx); //Rybx is the clie
您可能关注的文档
- 高强度螺栓分析(Analysis of high strength bolts).doc
- 高强度螺栓的储运(Storage and transportation of high strength bolts).doc
- 高强度文件夹加密大师破解法(High strength folder encryption master crack).doc
- 高强度铁镍代钴硬质合金的研发(Research and development of high strength Fe Ni Co cemented carbide).doc
- 高强度螺栓一般都用什么材质(What kind of material do high strength bolts generally use).doc
- 高强混凝土的配合比设计(Mix proportion design of high strength concrete).doc
- 高层结构设计中六个比的控制与调整(Control and adjustment of six ratios in high rise structural design).doc
- 高层结构设计的控制参数(比值)及调整方法(转自user的博客)_ybbxk的(Control parameters (ratios) and adjustment methods for high-level structural design (from user blog) _ybbxk).doc
- 高层钢结构建筑的工程监理特点分析(Analysis of engineering supervision characteristics of high rise steel structure building).doc
- 高性能水泥基材料维护加固(Maintenance and strengthening of high performance cement based materials).doc
- 怎样开好手动档车(How to open a good car).doc
- 怎样才能做出高质量的立体画(How to make high quality stereo picture).doc
- 怎样才能把歌唱好(How to sing).doc
- 必修1复习资料(Review the information required 1).doc
- 怎样提高学生的口语表达能力(曹伟利)(How to improve students' oral English ability (Cao Weili)).doc
- 怎样穿衣才好看(How to dress to look good).doc
- 怎样识别新房好坏(How to identify the quality of new homes).doc
- 思修第八章题(Repair the topic of the eighth chapter).doc
- 思华创投(Thinking of Chinese venture capital).doc
- 怎样做一块好的pcb板(How to do a good PCB board).doc
最近下载
- 2024-2025学年下学期高中英语选修一第三单元A卷.docx VIP
- 淡水鱼深加工项目可行性研究报告.docx VIP
- 老年患者髋部骨折围手术期麻醉管理.pptx VIP
- 深圳市房屋建筑工程施工图设计文件监督抽查常见问题汇编(第2版).docx
- 美国微机保护装置SEL-351A使用手册_20001006.pdf VIP
- 基于计算机视觉的舌体多特征识别与裂纹舌量化评估体系构建.docx
- 2025年广东省基层住院医师线上岗位培训(口腔学)《牙体牙髓病》专业课答案(5).docx
- 2025-2030中国红糖行业市场运行态势及发展趋势与投资预测研究报告.docx
- 欧姆定律基础练习题.pdf VIP
- 2018年-2020年托业考试语法考点全汇总.pdf VIP
文档评论(0)