mssql-jdbc
Copilot instructions1.1k starsChanged 4 months agoMITView on GitHub
This project is the Microsoft JDBC Driver for SQL Server, enabling Java applications to interact with SQL Server and Azure SQL databases. It implements the JDBC 4.2/4.3 specification, communicating over the TDS (Tabular Data Stream) protocol. It supports features like connection pooling, Always Encrypted, Azure AD authentication, bulk copy, configurable retry logic, and idle connection resiliency. The project builds from a single Maven project (pom.xml) with multiple JRE profiles (jre8, jre11, jre17, jre21, jre25, jre26). Each profile compiles against a…
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/mssql-jdbc
- trufflesecurity/trufflehog“JDBC regex captures invalid url data”GitHub · Jul 6, 2023 · 7 reactions
- tediousjs/tedious“[FEATURE REQUEST] Deprecate authentication.type = azure-active-directory-password”GitHub · Mar 21, 2025 · 3 reactions
- A Hacker News story“Microsoft open sources SQL Server JDBC driver, now on GitHub”Hacker News · Nov 17, 2016 · 3 points
- abrahem79/glowroot“Bump the maven group across 15 directories with 21 updates”GitHub · May 20, 2026 · 2 reactions
- abrahem79/glowroot“Bump the maven group across 16 directories with 21 updates”GitHub · May 20, 2026 · 2 reactions
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub and Hacker News (21 times).
On GitHub · 20
- Jul 6, 2023JDBC regex captures invalid url data — trufflesecurity/trufflehog7 reactions · 11 comments
- Mar 21, 2025[FEATURE REQUEST] Deprecate authentication.type = azure-active-directory-password — tediousjs/tedious3 reactions
- May 20, 2026Bump the maven group across 15 directories with 21 updates — abrahem79/glowroot2 reactions · 1 comment
- May 20, 2026Bump the maven group across 16 directories with 21 updates — abrahem79/glowroot2 reactions · 1 comment
- May 18, 2026Bump the maven group across 18 directories with 22 updates — abrahem79/glowroot2 reactions · 1 comment
15 more on GitHub
- Apr 24, 2026Bump the maven group across 19 directories with 24 updates — abrahem79/glowroot2 reactions · 2 comments
- Apr 24, 2026Bump the maven group across 18 directories with 24 updates — abrahem79/glowroot2 reactions · 2 comments
- Sep 4, 2026Reject pre-release candidates by default with a `rejectPreReleases` task property — ben-manes/gradle-versions-plugin1 reaction · 3 comments
- Jun 26, 2026Bump com.microsoft.sqlserver:mssql-jdbc from 12.8.1.jre11 to 12.8.2.jre11 in /coordinators/ratchet-coordinator-jms — ratchet-run/ratchet1 reaction · 1 comment
- Jun 26, 2026Bump com.microsoft.sqlserver:mssql-jdbc from 12.8.1.jre11 to 12.8.2.jre11 in /stores/ratchet-store-sqlserver in the maven group across 1 directory — ratchet-run/ratchet1 reaction · 1 comment
- Jun 26, 2026Bump com.microsoft.sqlserver:mssql-jdbc from 12.8.1.jre11 to 12.8.2.jre11 in /testing/ratchet-testsuite — ratchet-run/ratchetsays it tested it1 reaction · 2 comments
- Feb 20, 2026Bump the maven group across 17 directories with 22 updates — abrahem79/glowroot1 reaction · 1 comment
- Nov 24, 2025Bump com.microsoft.sqlserver:mssql-jdbc from 13.2.1.jre11 to 13.3.0.jre11-preview in the reactive-dependencies-jdbc group — hibernate/hibernate-test-case-templates1 reaction · 1 comment
- Nov 20, 2025[GHSA-m494-w24q-6f7w] JDBC Driver for SQL Server has improper input validation issue — github/advisory-database1 reaction · 1 comment
- Oct 17, 2025Bump com.microsoft.sqlserver:mssql-jdbc from 13.2.0.jre11 to 13.2.1.jre11 — vividus-framework/vividus1 reaction · 4 comments
- Aug 16, 2025Bump com.microsoft.sqlserver:mssql-jdbc from 12.10.0.jre11 to 13.2.0.jre11 — vividus-framework/vividus1 reaction · 3 comments
- Mar 21, 2025Bump com.microsoft.sqlserver:mssql-jdbc from 12.8.1.jre11 to 12.10.0.jre11 — vividus-framework/vividus1 reaction · 3 comments
- Sep 11, 2024java.vendor name changed in openj9 — spring-projects/spring-security-kerberos1 reaction · 1 comment
- Aug 23, 2024Bump com.microsoft.sqlserver:mssql-jdbc from 12.8.0.jre11 to 12.8.1.jre11 — vividus-framework/vividus1 reaction · 3 comments
- Aug 1, 2024Bump com.microsoft.sqlserver:mssql-jdbc from 12.6.1.jre11 to 12.8.0.jre11 — vividus-framework/vividus1 reaction · 3 comments
On Hacker News · 1
- Nov 17, 2016Microsoft open sources SQL Server JDBC driver, now on GitHub3 points · 1 comment
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
19 rules. About 0 are common, 8 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Driver source: All source code in src/main/java/com/microsoft/sqlserver/jdbc/.
- Distinctive: line 21
If the issue is a bug, reproduce it and identify the root cause in source code.
- Distinctive: line 22
If the issue is a feature request, review the proposal and assess its feasibility.
- Distinctive: line 23
If the issue is a task, follow the instructions provided in the issue description.
- Distinctive: line 25
If public APIs are changed, update Javadoc comments on all affected public members.
- Very specific: line 26
Add or update tests in src/test/java/ to validate the fix.
- Very specific: line 33
Use the existing test framework: extend AbstractTest for tests needing SQL Server, use JUnit 5 annotations (@Test, @Tag, @BeforeAll, …
- Distinctive: line 34
Follow the naming conventions and structure of existing tests.
- Distinctive: line 35
Ensure tests are comprehensive and cover edge cases.
- Very specific: line 36
Do NOT hardcode connection strings — use AbstractTest utilities and test config.
- Very specific: line 38
Consider state machine tests for complex stateful features (see docs/state-machine-testing.md).
- Very specific: line 42
Use the getting-started prompt (#getting-started) for an interactive guide to all available Copilot prompts.
- Very specific: line 49
All source code is in src/main/java/com/microsoft/sqlserver/jdbc/.
- Very specific: line 53
Follow exception handling patterns: SQLServerException.makeFromDriverError(...) with error keys from SQLServerResource.java (see …
- Distinctive: line 58
Do not change repository ownership or review-routing conventions without team discussion.
- Distinctive: line 59
Do not close issues without a fix or without providing a clear reason.
- Very specific: line 60
All changed code must be formatted with Eclipse formatter mssql-jdbc_formatter.xml.
- Very specific: line 64
Follow Coding_Guidelines.md for code style and coding-best-practices.md for engineering practices.
- Very specific: line 65
Follow review-process.md for PR review guidelines.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions — mssql-jdbc
📚 Project Overview
This project is the Microsoft JDBC Driver for SQL Server, enabling Java applications to interact with SQL Server and Azure SQL databases. It implements the JDBC 4.2/4.3 specification, communicating over the TDS (Tabular Data Stream) protocol. It supports features like connection pooling, Always Encrypted, Azure AD authentication, bulk copy, configurable retry logic, and idle connection resiliency.
The project builds from a single Maven project (pom.xml) with multiple JRE profiles (jre8, jre11, jre17, jre21, jre25, jre26). Each profile compiles against a different Java source level and produces a profile-specific JAR.
The project includes:
- Driver source: All source code in
src/main/java/com/microsoft/sqlserver/jdbc/. - Error resources: Localized error messages in
SQLServerResource.java. - Tests: Located in
src/test/java/com/microsoft/sqlserver/jdbc/.- Unit Tests: Many tests in
src/test/java/com/microsoft/sqlserver/jdbc/unit/are isolated, but this tree is not guaranteed to be SQL-Server-free; tests that extendAbstractTestor callsetConnection()/getConnection()require test database configuration. - Integration Tests: In feature-specific packages (
connection/,datatypes/,bulkCopy/,AlwaysEncrypted/, etc.) — generally require a SQL Server instance. - BVT Tests: In
src/test/java/com/microsoft/sqlserver/jdbc/bvt/— build verification / smoke tests. - State Machine Tests: In
src/test/java/com/microsoft/sqlserver/jdbc/statemachinetest/— model-based testing for complex state interactions.
- Unit Tests: Many tests in
🔧 Working with Issues
- If the issue is a bug, reproduce it and identify the root cause in source code.
- If the issue is a feature request, review the proposal and assess its feasibility.
- If the issue is a task, follow the instructions provided in the issue description.
- Cross-reference issue descriptions with code in
src/main/java/com/microsoft/sqlserver/jdbc/. - If public APIs are changed, update Javadoc comments on all affected public members.
- Add or update tests in
src/test/java/to validate the fix.
🧪 Writing Tests
- For every bug fix, ensure there are unit tests and integration tests that cover the scenario.
- For new features, write tests that validate the functionality.
- Write a failing test before implementing the fix (test-driven approach).
- Use the existing test framework: extend
AbstractTestfor tests needing SQL Server, use JUnit 5 annotations (@Test,@Tag,@BeforeAll,@AfterAll). - Follow the naming conventions and structure of existing tests.
- Ensure tests are comprehensive and cover edge cases.
- Do NOT hardcode connection strings — use
AbstractTestutilities and test config. - Tag tests requiring external resources with appropriate group annotations (
xSQLv12,xSQLv15,reqExternalSetup,fedAuth,kerberos, etc.). - Consider state machine tests for complex stateful features (see
docs/state-machine-testing.md).
⚙️ Automating Workflows
- Use the
getting-startedprompt (#getting-started) for an interactive guide to all available Copilot prompts. - Auto-label PRs based on folder paths (e.g., changes in
src/main/java/→area-driver, changes insrc/test/java/→area-testing). - Suggest CHANGELOG entries for fixes in
CHANGELOG.md. - Tag reviewers based on area of change.
🧠 Contextual Awareness
- All source code is in
src/main/java/com/microsoft/sqlserver/jdbc/. Follow the package structure described in.github/instructions/architecture.instructions.md. - The driver must work cross-platform: Windows, Linux, and macOS. Do not make platform-specific assumptions.
- Code must compile across all JRE profiles (
jre8throughjre26). Avoid using APIs unavailable in older JDK versions without profile guards. - Respect API compatibility rules — do not introduce breaking changes without proper justification and documentation.
- Follow exception handling patterns:
SQLServerException.makeFromDriverError(...)with error keys fromSQLServerResource.java(see.github/instructions/patterns.instructions.md). - Guard log statements:
if (logger.isLoggable(Level.FINER))— never log sensitive data (passwords, tokens, connection strings with credentials).
Constraints
- Do not change repository ownership or review-routing conventions without team discussion.
- Do not close issues without a fix or without providing a clear reason.
- All changed code must be formatted with Eclipse formatter
mssql-jdbc_formatter.xml.
📝 Notes
- Follow
Coding_Guidelines.mdfor code style andcoding-best-practices.mdfor engineering practices. - Follow
review-process.mdfor PR review guidelines. - Regularly review and update documentation to ensure it reflects the current state of the project.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

