来自vb.net代码的SQL安装命令 [英] SQL Installation command from vb.net code
问题描述
我正在通过批处理文件使用以下命令来安装我所需的SQL服务器实例。问题是,当它运行时,语句显示在屏幕上,.bat文件打开以供查看。
如何通过我的vb.net应用程序运行此语句?
开始/等待SQLEXPR32and64.EXE / qb username =MyNamecompanyname =CONameaddlocal = ALL disablenetworkprotocols =2instancename =ERPTestingSECURITYMODE =SQL SAPWD =abc123
谢谢
阅读文档流程 [ ^ ]类。
Hi,
I am using following command through a batch file to install my required instance of SQL server. Problem is, when it runs, statement is shown on screen and .bat file is open for view.
How can I run this statement through my vb.net application?
start /wait SQLEXPR32and64.EXE /qb username="MyName" companyname="COName" addlocal=ALL disablenetworkprotocols="2" instancename="ERPTesting" SECURITYMODE="SQL" SAPWD="abc123"
Thanks
Read the documentation on the Process[^] class.
这篇关于来自vb.net代码的SQL安装命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!