我正在尝试设置roundhouse部署脚本。我在远程登录时遇到了一点小麻烦。在远程服务器上创建数据库时,我们需要使用sql帐户登录(而不是机器或域-这是针对Server2008 R2 SP1上的MSSQL2008R2)。有没有办法为roundhouse提供不同的凭证来连接和运行脚本,因为我在文档中看不到它?谢谢。
发布于 2011-08-03 01:42:04
如果指定连接字符串而不是服务器名称和数据库名称,则还可以设置凭据。
来自: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;https://stackoverflow.com/questions/6375927
复制相似问题