Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs: improve mssql statement order

Scott Wilsonc2f2dc1e7232
diff --git a/docs/integrations/app-connections/mssql.mdx b/docs/integrations/app-connections/mssql.mdx
index ca91a17dbd..45082103bc 100644
--- a/docs/integrations/app-connections/mssql.mdx
+++ b/docs/integrations/app-connections/mssql.mdx
@@ -17,14 +17,14 @@ Infisical supports connecting to Microsoft SQL Server using database principals.
-- Grant server-level connect permission
GRANT CONNECT SQL TO [infisical_app];
+ -- If you intend to use Platform Managed Credentials (see below)
+ GRANT ALTER ANY LOGIN TO [infisical_app];
+
-- Switch to the specific database where you want to create the user
USE my_database;
-- Create the database user mapped to the login
CREATE USER [infisical_app] FOR LOGIN [infisical_app];
-
- -- If you intend to use Platform Managed Credentials (see below)
- GRANT ALTER ANY LOGIN TO [infisical_app];
```
</Step>
<Step title="Grant Relevant Permissions">