mssql-jdbc
AGENTS.md1.1k starsChanged 4 months agoMITView on GitHub
This document provides guidance for AI coding agents working with the mssql-jdbc repository. Before making changes, agents should be aware of: The .github/instructions/ directory contains comprehensive guides: This repository provides reusable prompts in .github/prompts/ for common maintainer workflows. Use these to guide agents through multi-step operations.
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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
23 rules. About 0 are common, 19 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Before making changes, agents should be aware of:
- Distinctive: line 55
Backward Compatibility: No breaking changes without proper deprecation and documentation
- Distinctive: line 56
Test-First Development: All changes require tests — write failing tests before implementing fixes
- Distinctive: line 58
Protocol Compliance: Follow MS-TDS specifications
- Distinctive: line 59
Performance Awareness: Avoid allocations on hot paths, reuse buffers, guard log messages
- Distinctive: line 60
JDBC Specification Compliance: Follow JDBC 4.2/4.3 specification for standard interfaces
- Distinctive: line 68
Write a failing test that reproduces the issue
- Distinctive: line 70
Ensure all tests pass across JRE profiles
- Distinctive: line 71
Update Javadoc if behavior changes
- Distinctive: line 78
Document new public APIs with Javadoc
- Very specific: line 83
Add the property constant to SQLServerDriverStringProperty, SQLServerDriverBooleanProperty, or SQLServerDriverIntProperty
- Very specific: line 84
Add getter/setter to SQLServerDataSource.java
- Very specific: line 85
Add parsing in SQLServerConnection.java
- Distinctive: line 86
Default to a backward-compatible value
- Distinctive: line 87
Add tests for the new property
- Distinctive: line 93
Add new token/flag constants to the relevant TDS classes
- Distinctive: line 95
Test against multiple SQL Server versions (2012+, Azure SQL)
- Very specific: line 100
Update SqlAuthentication enum if adding a new authentication method
- Distinctive: line 102
Ensure federated auth flow works if applicable
- Distinctive: line 103
Test with the relevant authentication infrastructure
- Distinctive: line 110
Verify no regressions with existing tests
- Distinctive: line 111
Run internal performance benchmarks for major changes
- Distinctive: line 132
Check existing tests for usage patterns
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AI Agent Guidelines for Microsoft JDBC Driver for SQL Server
This document provides guidance for AI coding agents working with the mssql-jdbc repository.
Quick Start
Essential Context Files
Before making changes, agents should be aware of:
| File | Purpose |
| README.md | Project overview |
| CONTRIBUTING.md | Contribution guidelines |
| Coding_Guidelines.md | Java coding standards |
| coding-best-practices.md | Engineering best practices |
| review-process.md | PR review requirements |
| .github/copilot-instructions.md | Copilot-specific instructions |
Detailed Technical Instructions
The .github/instructions/ directory contains comprehensive guides:
| Guide | Coverage |
| architecture.instructions.md | Project structure, package layout, layer architecture |
| patterns.instructions.md | Exception handling, logging, resource management, testing patterns |
| glossary.instructions.md | Terms, acronyms, authentication modes, data types |
| performance-metrics.md | Performance instrumentation, connection and statement metrics |
| state-machine-testing.md | Model-based testing framework, seed-based reproducibility |
Workflow Prompts
This repository provides reusable prompts in .github/prompts/ for common maintainer workflows. Use these to guide agents through multi-step operations.
| Prompt | Purpose |
| getting-started.prompt.md | Interactive guide to all available mssql-jdbc Copilot prompts |
| build.prompt.md | Build the driver with Maven across JRE profiles |
| run-tests.prompt.md | Run tests with Maven across JRE profiles |
| setup-dev.prompt.md | Set up the development environment |
| fix-bug.prompt.md | Diagnose and fix a bug with tests and documentation |
| implement-feature.prompt.md | Plan and implement a new feature end-to-end |
| code-review.prompt.md | AI-assisted code review for a pull request |
| perf-optimization.prompt.md | Investigate and implement performance improvements |
| create-pr.prompt.md | Create well-structured pull requests |
| generate-doc-comments.prompt.md | Generate Javadoc comments following project conventions |
| generate-prompt.prompt.md | Generate new Copilot prompt files for the project |
| generate-skill.prompt.md | Generate Copilot Agent Skills (SKILL.md) |
Core Principles
- Cross-Platform Compatibility: Code must work on Windows, Linux, and macOS
- Multi-Profile Compilation: Code must compile across all JRE profiles (
jre8throughjre26) - Backward Compatibility: No breaking changes without proper deprecation and documentation
- Test-First Development: All changes require tests — write failing tests before implementing fixes
- Security by Default: Secure defaults, no credential logging, parameterized queries
- Protocol Compliance: Follow MS-TDS specifications
- Performance Awareness: Avoid allocations on hot paths, reuse buffers, guard log messages
- JDBC Specification Compliance: Follow JDBC 4.2/4.3 specification for standard interfaces
Common Tasks
Bug Fix Workflow
- Understand the issue from the bug report
- Locate relevant code in
src/main/java/com/microsoft/sqlserver/jdbc/ - Write a failing test that reproduces the issue
- Implement the fix using patterns from
.github/instructions/patterns.instructions.md - Ensure all tests pass across JRE profiles
- Update Javadoc if behavior changes
Feature Implementation
- Review the feature specification or issue
- Plan the implementation (see
implement-featureprompt) - Implement with tests (unit + integration)
- Document new public APIs with Javadoc
- Update CHANGELOG.md
Adding Connection String Properties
- Add the property constant to
SQLServerDriverStringProperty,SQLServerDriverBooleanProperty, orSQLServerDriverIntProperty - Add getter/setter to
SQLServerDataSource.java - Add parsing in
SQLServerConnection.java - Default to a backward-compatible value
- Add tests for the new property
- Document in Javadoc
TDS Protocol Changes
- Reference the MS-TDS specification for the protocol extension
- Add new token/flag constants to the relevant TDS classes
- Implement parsing/writing in
IOBuffer.java,tdsparser.java, andStream*.javafiles - Test against multiple SQL Server versions (2012+, Azure SQL)
- Consider backward compatibility
Authentication Changes
- Update
SqlAuthenticationenum if adding a new authentication method - Implement token acquisition in the appropriate auth class (
SQLServerMSAL4JUtils.java,KerbAuthentication.java, etc.) - Ensure federated auth flow works if applicable
- Test with the relevant authentication infrastructure
Performance Optimization
- Profile the issue using benchmarks or tracing
- Identify allocation hotspots (see
perf-optimizationprompt) - Apply patterns: buffer reuse, lazy initialization, object caching, lock narrowing
- Verify no regressions with existing tests
- Run internal performance benchmarks for major changes
External Resources
Key Documentation Links
- Microsoft JDBC Driver on Microsoft Learn
- MS-TDS Protocol Specification
- SQL Server Documentation
- JDBC API Specification
Repository Policies
See the root directory for:
- Coding_Guidelines.md — Java coding standards and formatting rules
- coding-best-practices.md — Engineering best practices
- review-process.md — PR review requirements and responsibilities
Getting Help
- Check existing tests for usage patterns
- Reference similar implementations in the codebase
- Consult the Microsoft Docs for API behavior specifications
- For protocol questions, refer to MS-TDS open specifications
- For JDBC specification questions, refer to the Oracle JDBC documentation
This document is automatically loaded as context for AI agents working in this repository.
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.

