Hi, I Build a MSSQL database in Azure and i am trying to get the credentials to work, but when i click on generate credentials i get the following error .
mssql "Cannot find the schema “dbo”
vault write database/roles/my-role
db_name=my-mssql-database
creation_statements=“CREATE LOGIN [{{name}}] WITH PASSWORD = ‘{{password}}’;
CREATE USER [{{name}}] FOR LOGIN [{{name}}];
GRANT SELECT ON SCHEMA::dbo TO [{{name}}];”
default_ttl=“1h”
max_ttl=“24h”
Success! Data written to: database/roles/my-role
Try dropping the GRANT line from your connection string as a test and re-test the role read. My guess is that you’re actually not connecting to the database and this is a secondary error that is being hidden.