{"id":63394,"library":"mssqlserver","title":"Testcontainers MSSQL Server","description":"Provides isolated Microsoft SQL Server containers for Java testing.","status":"active","version":"1.21.4","language":"java","source_language":null,"source_url":"https://github.com/testcontainers/testcontainers-java","tags":["testcontainers","mssql","testing","docker"],"install":[{"cmd":"<dependency>\n  <groupId>org.testcontainers</groupId>\n  <artifactId>mssqlserver</artifactId>\n  <version>1.21.4</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.testcontainers:mssqlserver:1.21.4'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"MSSQLServerContainer","correct":"org.testcontainers.containers.MSSQLServerContainer"}],"quickstart":{"code":"import org.testcontainers.containers.MSSQLServerContainer;\n\npublic class Quickstart {\n    public static void main(String[] args) {\n        try (MSSQLServerContainer<?> mssql = new MSSQLServerContainer<>()) {\n            mssql.start();\n            System.out.println(\"MSSQL Server started at \" + mssql.getJdbcUrl());\n        }\n    }\n}","lang":"java","description":"Starts a MSSQL Server container for testing."},"warnings":[{"fix":"Ensure Docker is installed and the Docker daemon is running.","message":"Requires Docker to be installed and running.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'contain':9 'docker':16 'isol':5 'java':11 'microsoft':6 'mssql':2,14 'provid':4 'server':3,8 'sql':7 'test':12,15 'testcontain':1,13","created_at":"2026-06-17T16:43:28.039275+00:00","updated_at":"2026-06-17T16:43:28.039275+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://java.testcontainers.org","github":"https://github.com/testcontainers/testcontainers-java","docs":"https://appdoc.app/artifact/org.testcontainers/mssqlserver/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}