"SQL Server 2022 as the primary database on Linux via the official container: connection, schema conventions, indexing, and T-SQL style."
Install
npx skillscat add donartkins/griot/sql-server-2022 Install via the SkillsCat registry.
SKILL.md
SQL Server 2022 Skill
Container
mcr.microsoft.com/mssql/server:2022-latest on host port 14333; data in mssql_data volume (infra owns the compose file).
docker exec gtp-sqlserver /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "$GTP_SA_PASSWORD" -C -Q "SELECT @@VERSION"Conventions
dboschema; PascalCase names matching entities;nvarchar(max)bodies;UNIQUEIDENTIFIERPKs;SYSUTCDATETIME()timestamps.- Index every FK; composite indexes for board reads and the dashboard query.
- Procs:
usp_prefix,NOCOUNT ON, fully parameterized (OWASP line). - T-SQL versioned in
.sqlfiles underGriot.Infrastructure/Sql/.
Verify
- Table list matches the ERD; the dashboard query plan is single-pass without object scans.