RoundhousE - 更改脚本脚本使用的登录 [英] RoundhousE - Change login used by scripts scripts

查看:180
本文介绍了RoundhousE - 更改脚本脚本使用的登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to set up roundhouse deployment scripts. I am running into a little trouble with remote logins. We need to login with an sql account (not machine or domain - this is against MSSQL 2008R2 on Server 2008 R2 SP1) when creating the database on remote servers. Is there any way to provide different credentials for roundhouse to connect and run scripts as, I am not seeing it in the documentation? Thanks.

推荐答案

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

If you specify the connection string instead of the server name and db name, you can then set the credentials as well.

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

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

There is the --connectionstring (or -c for short):

-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;

这篇关于RoundhousE - 更改脚本脚本使用的登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆