Member Junction
    Preparing search index...

    SQL Server DDL, stored-procedure, migration, introspection and transaction SQL.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    • SQL Server-specific Flyway escape. Interleaves a CAST(N'' AS NVARCHAR(MAX)) between the split halves so the running T-SQL concat chain inherits NVARCHAR(MAX) precedence. Without the cast, N'a' + N'b' produces NVARCHAR(a+b) capped at NVARCHAR(4000) and silently truncates anything past 4,000 characters.

      Parameters

      • sql: string

      Returns string

    • Minimum in-row byte footprint of a column. Off-row-capable variable-length / LOB types (incl. (N)VARCHAR(MAX)) contribute only a 24-byte in-row pointer; fixed-length types contribute their full size. Unknown types are treated as off-row pointers (conservative).

      Parameters

      • rawSqlType: string

      Returns number

    • SQL Server FK-graph query for cascade planning — reads the sys.foreign_keys catalog. Returns one row per FK column with childNullable (from sys.columns.is_nullable) and colCount (columns in the constraint, for composite exclusion). Both parent + child are filtered to schema. Schema is embedded as a literal (no bind params) so it runs via ExecuteSQL(sql).

      Parameters

      • schema: string

      Returns string