Database: SQL Server¶
Summary¶
Use SQL Server or Azure SQL when you want enterprise-grade relational features, mature tooling, and straightforward operational workflows.
Outcome¶
After completing this guide, SkyCMS will connect to SQL Server or Azure SQL and use it as the primary relational data store.
Steps¶
- Set
ConnectionStrings__ApplicationDbContextConnectioninappsettings.jsonor as an environment variable with the server, database, and authentication values. - Review the common configuration patterns below for SQL Server and Azure SQL.
- Start or restart SkyCMS to apply the configuration.
- Complete the setup wizard if this is a fresh installation.
- Verify the connection using the checklist below.
Required settings¶
Set ConnectionStrings:ApplicationDbContextConnection with server, database, and authentication values.
Example configuration¶
Common patterns include:
- local trusted connection,
- Azure SQL with
Encrypt=Trueand explicit credentials.
Validation checklist¶
- application starts successfully,
- sign-in and content save work,
- publish flow completes without database errors,
- firewall and authentication settings allow runtime connectivity.
Connection troubleshooting¶
- authentication errors: validate user/password or integrated auth context,
- certificate issues in development: review trust/certificate settings,
- network issues: verify firewall and SQL endpoint access.