sqldmo(分布式管理对象)

sqldmo(分布式管理对象)

ID:15822119

大小:49.00 KB

页数:25页

时间:2018-08-05

sqldmo(分布式管理对象)_第1页
sqldmo(分布式管理对象)_第2页
sqldmo(分布式管理对象)_第3页
sqldmo(分布式管理对象)_第4页
sqldmo(分布式管理对象)_第5页
资源描述:

《sqldmo(分布式管理对象)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、sqldmo(分布式管理对象)SQLDMOregistrationmethod:1,includingfilesandroutingFilenamelocationSqldmo.dll,c:Program,FilesMicrosoft,SQL,Server80ToolsBinnSqlresld.dllexecutabledirectorySqlsvc.dllexecutabledirectoryW95scm.dll,Installation,drive:Program,FilesMicrosoft,SQL,Server80ToolsBinnSqlsvc.rl

2、lexecutabledirectoryresources2052Sqldmo.rll,c:Program,FilesMicrosoft,SQL,Server80ToolsBinnResources1033Sqlunirl.dllc:windowssystem322,executetheDOScommandRegSvr32sqldmo.dll------------------------------------------------------------------------------It'sbeenalongdaysinceIsignedupf

3、orsqldmosothateveryonecansavetimeafterregisteringforsqldmo!Theresultsareasfollows:Tobuildaproject,thecodeisasfollows:(directcopycanbe)UsingSystem;UsingSystem.Collections.Generic;UsingSystem.ComponentModel;UsingSystem.Data;UsingSystem.Drawing;UsingSystem.Text;UsingSystem.Windows.Forms;UsingSy

4、stem.IO;UsingSystem.Diagnostics;Namespacedeploymentdemo{Public,partial,class,Form1:Form{Public,Form1(){InitializeComponent();}PublicvoidDeploySQLDMO(stringdllPath){StringsystemPath=Environment.GetFolderPath(Environment.SpecialFolder.System);StringsqlwoaFile=String.Format(@{0}sqlwoa.dll',sys

5、temPath);StringsqlwidFile=String.Format(@{0}sqlwid.dll',systemPath);If(...File.Exists(sqlwoaFile)){File.Copy(String.Format(@{0}sqlwoa.dll',dllPath),sqlwoaFile);}If(...File.Exists(sqlwidFile)){File.Copy(String.Format(@{0}sqlwid.dll',dllPath),sqlwidFile);}ProcessP=new,Process();P.StartInfo.

6、FileName="regsvr32.exe"";P.StartInfo.Arguments=String.Format("/s{0}\sqldmo.dll",dllPath);P.StartInfo.WorkingDirectory=systemPath;P.StartInfo.WindowStyle=ProcessWindowStyle.Hidden;P.Start();P.WaitForExit();P.Close();}Private,void,Form1_Load(object,sender,EventArgs,e){DeploySQLDMO("D:\SQLDMO

7、");}}}Note:inthedllPathfoldermustincludeSQLDMO.DLL,sqlresld.DLL,sqlsvc.DLL,sqlwid.dll,sqlwoa.dll,w95scm.DLLandanamefortheResourcesfolder,Resourceshasanameforthe2052folder,SQLDMO.RLL2052,sqlsvc.RLLevenfilesIfnecessary,practiceme(QQ:393209543)-------

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。