Update mssql docs

This commit is contained in:
Calvin Leung Huang 2017-05-04 16:46:34 -04:00
parent 7dcec6e68f
commit b49993f81f
1 changed files with 3 additions and 3 deletions

View File

@ -39,11 +39,11 @@ Once the MSSQL connection is configured we can add a role:
$ vault write database/roles/readonly \
db_name=mssql \
creation_statements="CREATE LOGIN [{{name}}] WITH PASSWORD = '{{password}}';\
USE AdventureWorks; CREATE USER [{{name}}] FOR LOGIN [{{name}}]; \
GRANT SELECT ON SCHEMA::dbo TO [{{name}}];" \
CREATE USER [{{name}}] FOR LOGIN [{{name}}];\
GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA::dbo TO [{{name}}];" \
default_ttl="1h" \
max_ttl="24h"
Success! Data written to: database/roles/readonly
```