Microsoft SQL Server Technical Documentation

repository·live·Indexed 23 days ago

https://github.com/microsoftdocs/sql-docs

Official technical documentation for Microsoft SQL Server, including guides for Azure SQL Database and Azure Synapse Analytics. Content covers creating metric, resource health, and activity log alerts in the Azure portal, as well as developer quickstarts for connecting .NET applications to Azure SQL using Entity Framework Core and passwordless authentication.

Tokens
246.4K
Snippets
283
Records
979
Agent score
80%

What's inside SQL Server Documentation

  1. Overview of the SSIS Catalog (SSISDB)

    live

    The SSISDB catalog is the central management point for SQL Server Integration Services (SSIS) projects deployed to a SQL Server. It serves as a repository for projects, packages, parameters, environments, and operational history.

    Key Management Interfaces

    • SQL Server Management Studio (SSMS): Access the catalog by connecting to the Database Engine and expanding the Integration Services Catalogs node in Object Explorer. You can also access the underlying SSISDB database via the Databases node.
    • Stored Procedures: Manage objects by calling stored procedures directly within the SSISDB database.
    • SQL Views: Inspect objects, settings, and operational data by querying views in the SSISDB database.
    • Windows PowerShell: The catalog and database support Windows PowerShell for automation tasks like project deployment.

    Important Constraints

    • Database Renaming: You cannot rename the SSISDB database.
    • Linux Support: While SSIS packages can run on Linux, the SSIS Catalog itself is not supported on Linux.
    • Failover Behavior: In a cluster failover, running packages do not automatically restart. Use checkpoints to implement restart logic.
  2. Overview of mssql-python core features

    live

    The mssql-python driver is a native Python driver for SQL Server featuring a DDBC architecture (Direct Database Connectivity), which eliminates the need for an external ODBC driver installation.

    Key Capabilities:

    • DB-API 2.0 Compliance: Standard Python database interface.
    • Authentication: Supports SQL, Windows, and 7 Microsoft Entra ID methods (including ActiveDirectoryDefault, ActiveDirectoryInteractive, ActiveDirectoryMSI, etc.).
    • Connection Management: Built-in connection pooling and TLS encryption.
    • Execution: Supports execute(), executemany(), and batch_execute().
    • Transactions: Supports manual commit/rollback, autocommit mode, and isolation level control.
  3. Overview of the Microsoft go-mssqldb driver

    live

    The go-mssqldb driver is a pure Go implementation of the TDS (Tabular Data Stream) protocol designed for Microsoft SQL Server. It integrates with the standard Go database/sql interface and does not require CGo or external C libraries (like ODBC).

    It supports connecting to:

    • Microsoft SQL Server (all versions)
    • Azure SQL Database
    • Azure SQL Managed Instance
    • SQL database in Fabric
    • Fabric Data Warehouse
    • Azure Synapse Analytics

    It is compatible with Windows, Linux, and macOS.

  4. Overview of mssql-python driver

    live

    The mssql-python driver is Microsoft's official Python driver for SQL Server, Azure SQL Database, Azure SQL Managed Instance, and SQL database in Microsoft Fabric.

    Key characteristics:

    • Direct Database Connectivity (DDBC): Connects without requiring an external driver manager.
    • PEP 249 Compliance: Implements the standard Python Database API Specification 2.0 (connect, cursor, execute, fetch*).
    • Python 3.10+ Support: Requires Python 3.10 or later.
    • High Performance: Supports Apache Arrow for zero-copy result sets and native bulk copy operations for large data loads.
    • Security: Supports Microsoft Entra ID (formerly Azure AD) authentication, managed identities, and TDS 8.0 encryption via Encrypt=strict.
  5. Overview of Microsoft JDBC Driver for SQL Server

    live
    The Microsoft JDBC Driver for SQL Server is a Type 4 JDBC driver (pure Java) that implements standard JDBC APIs to connect Java applications to the Microsoft SQL Database Engine. It supports Azure SQL Database, SQL database in Microsoft Fabric, Azure SQL Managed Instance, and all supported versions of SQL Server (including Express Editions). It communicates directly via the SQL Server TDS protocol and requires no native libraries. It is compatible with major Java application servers like IBM WebSphere and SAP NetWeaver.
  6. Overview of monitoring and performance tuning in Azure SQL

    live

    To monitor performance in Azure SQL Database and Azure SQL Managed Instance, you should monitor CPU and IO resources relative to your selected service tier and performance level.

    Monitoring can be performed via:

    • Azure portal: For resource metrics, database advisors, and Query Performance Insight.
    • SQL Server Management Studio (SSMS): For engine-level monitoring.
    • Dynamic Management Views (DMVs): For deep engine-level diagnostics.
    • Query Store: For historical query performance analysis.
    • Database watcher (preview): For in-depth workload monitoring and estate-wide visibility.
  7. Overview of the dtexec Utility

    live

    The dtexec command prompt utility is used to configure and execute SQL Server Integration Services (SSIS) packages. It provides access to all package configuration and execution features, including parameters, connections, properties, variables, logging, and progress indicators.

    Supported Package Sources:

    • SSIS server
    • .ispac project files
    • SQL Server databases
    • SSIS Package Store
    • The file system
  8. What is the Microsoft SQL Database Engine?

    live
    The Microsoft SQL Database Engine is an enterprise-scale, general-purpose relational database management system (RDBMS). It serves as the core service for storing, processing, and securing data across all Microsoft SQL offerings. It functions as a service that accepts client connections and executes operations against databases, providing high availability, database recovery, and enterprise-class data access and encryption.
  9. Overview of Azure SQL Managed Instance

    live

    Azure SQL Managed Instance is a fully managed Platform as a Service (PaaS) database engine. It provides near 100% compatibility with the latest Enterprise Edition SQL Server Database Engine while automating management tasks such as upgrading, patching, backups, and monitoring.

    Key Use Cases

    • Lift and Shift: Migrate on-premises or IaaS SQL Server applications to the cloud with minimal changes.
    • High Security & Programmability: Ideal for workloads requiring high security (via native VNet support) and a rich programmability surface.
    • Reduced Management Overhead: Focus on domain-specific optimization while Microsoft handles underlying infrastructure, OS patching, and SQL updates.

    Migration Options

    • SQL Server migration experience in Azure Arc
    • Managed Instance link
  10. Understand Dev Container Templates for Azure SQL Database

    live

    Dev Container Templates provide preconfigured, containerized development environments for Azure SQL Database. They use the Development Container Specification (devcontainer.json) to ensure a consistent environment across local machines (via Docker and VS Code) and the cloud (via GitHub Codespaces).

    Workflow Lifecycle

    1. Initialization: Start with a template containing necessary configurations.
    2. Environment Setup: Docker builds the container based on devcontainer.json.
    3. Coding and Testing: Develop within the consistent environment to ensure compatibility.
    4. Deployment: Use CI/CD pipelines like GitHub Actions to deploy to Azure (e.g., Azure Static Web Apps, Azure Web App Service, or Azure SQL Database).
  11. Automate and schedule SSIS packages with SQL Server Agent

    live

    You can automate and schedule the execution of SQL Server Integration Services (SSIS) packages using SQL Server Agent. This allows you to run packages that are stored in:

    • The SSIS server
    • The SSIS Package Store
    • The file system

    Note that this guide focuses on on-premises scheduling. For Azure cloud or Linux (using cron), refer to the specific platform documentation for SSIS.

  12. Key features of mssql-django

    live

    The mssql-django backend provides several specialized features for SQL Server integration:

    • Drop-in Django backend: Works with Django's ORM, migrations, admin, and management commands.
    • Microsoft Entra ID authentication: Supports passwordless connections via extra_params (Managed Identity, Service Principal, etc.).
    • JSONField support: Uses native nvarchar(max) storage with Django lookup support.
    • Always Encrypted: Supports client-side encryption for sensitive columns.
    • Bulk operations: Optimized bulk_create and bulk_update with sensible batch sizes.
    • inspectdb: Ability to generate Django models from existing SQL Server schemas.