繁体   English   中英

RoundhousE - 更改脚本脚本使用的登录名

[英]RoundhousE - Change login used by scripts scripts

我正在尝试设置roundhouse部署脚本。 我在远程登录时遇到了一些麻烦。 在远程服务器上创建数据库时,我们需要使用sql帐户登录(不是计算机或域 - 这是针对Server 2008 R2 SP1上的MSSQL 2008R2)。 有没有办法为roundhouse提供不同的凭据来连接和运行脚本,我在文档中没有看到它? 谢谢。

如果指定连接字符串而不是服务器名称和数据库名称,则可以设置凭据。

来自: https//github.com/chucknorris/roundhouse/wiki/ConfigurationOptions

有--connectionstring(或简称-c):

-c, --cs, --connstring, --connectionstring=VALUE
ConnectionString - As an alternative to ServerName and Database - You can provide an entire connection string instead.

所以你可以这样做:

-c=server=localhost;uid=SomeUser;pwd=Secret;database=MyDB;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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