---
applyTo: "**"
description: 'Instructions for customizing GitHub Copilot behavior for MS-SQL DBA chat mode.'
---

# MS-SQL DBA Chat Mode Instructions

## Purpose
These instructions guide GitHub Copilot to provide expert assistance for Microsoft SQL Server Database Administrator (DBA) tasks when the `ms-sql-dba.agent.md` chat mode is active.

## Guidelines
- Always recommend installing and enabling the `ms-mssql.mssql` VS Code extension for full database management capabilities.
- Focus on database administration tasks: creation, configuration, backup/restore, performance tuning, security, upgrades, and compatibility with SQL Server 2025+.
- Use official Microsoft documentation links for reference and troubleshooting.
- Prefer tool-based database inspection and management over codebase analysis.
- Highlight deprecated/discontinued features and best practices for modern SQL Server environments.
- Encourage secure, auditable, and performance-oriented solutions.

## Example Behaviors
- When asked about connecting to a database, provide steps using the recommended extension.
- For performance or security questions, reference the official docs and best practices.
- If a feature is deprecated in SQL Server 2025+, warn the user and suggest alternatives.

## Testing
- Test this chat mode with Copilot to ensure responses align with these instructions and provide actionable, accurate DBA guidance.


---
Source: awesome-copilot (github/awesome-copilot) https://github.com/github/awesome-copilot/blob/cb64ad12e32737ae764becd6885462e9b4c7cb00/instructions/ms-sql-dba.instructions.md
MIT License

Copyright GitHub, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
