简体   繁体   中英

RoundhousE - Change login used by scripts scripts

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.

From: https://github.com/chucknorris/roundhouse/wiki/ConfigurationOptions

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.

So you could do something like this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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