Connect an AI-built app to SQL Server

Start with the report result you want. A regional sales summary might need region, reporting period and total, while customer identifiers are unnecessary. Ask the database owner to supply a read-only view at the right grain.

EngineeringBy Published 1 min read

On this page

Design the view and principal

Use a dedicated SQL Server principal with effective read-only permissions on the intended objects. Check column permissions and grant only what the view requires. An application connection’s read-intent setting alone does not enforce read-only access.

Publish a data product

Choose exposed fields, permitted filters and aggregation rules. Have the app request a grant for the intended environment and purpose. Keep the connection string in the connector. When formatting decimal and bigint results, preserve the value supplied by the gateway and avoid an unreviewed JavaScript number conversion.

Reconcile the SQL Server result in SpringRoll

Compare the app’s total to the view for the same period and filter. Test an omitted field and a query outside the row or request limit. After revocation, retry a fresh read. Retained exports need a separate retention decision.