SQL dialect and integration contracts
Octaviius SQL dialect organization and application integration validation rules.
Relational surface
Octaviius SQL combines selection, joins, subqueries, derived tables, set operations, aggregation and window functions. TOP, EXEC, @name parameters and stored procedures provide familiar syntax for T-SQL environments. A query contract covers cardinality, types, NULL values and explicitly requested ordering.
Dialect scope
Octaviius SQL covers SELECT, joins, aggregates, set operations, DDL/DML, views, procedures and scripts. Its typing, scope and publication rules define the application contract. Instance capabilities expose available protocols and effective limits; the SQL reference specifies supported forms and their semantics.
Dialect boundaries
- SQL BEGIN TRAN/COMMIT/ROLLBACK and a shared multi-statement snapshot.
- WITH CTEs, recursive SQL, #temporary tables and user-defined functions.
- PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK and DEFAULT constraints.
- EXCEPT ALL, INTERSECT ALL and full SQL Server collation/implicit-conversion semantics.
- EXECUTE AS, RAISERROR and table-valued procedure parameters.
- Bounded n PRECEDING/FOLLOWING window frames and DISTINCT window aggregates.
- STRING_AGG WITHIN GROUP and correlated STRING_SPLIT/APPLY.
- Distributed execution, synchronous replication and automatic failover.
Limits that affect application design
Scalar subqueries have one column and at most one row; correlation sees only the immediate outer scope. Set types must be compatible. Some operators retain max_intermediate, default 250,000 in Engine; this is not a global export row limit. Simple selections stream, while specific intermediates may still reject oversized work. Do not hide a limit error by adding a TOP that changes an exact answer.
ODBC must remain in autocommit; applications requiring rollback need another publication design. Later errors do not undo earlier published writes. Third-party application compatibility cannot be inferred from a few pyodbc tests.