Overview
What the SQL Server front-end is, how to start it and what to expect.
raftdb-mssql answers SQL Server clients (sqlcmd, JDBC, .NET SqlClient) over TDS (crate raftdb-tds, D90). A batch is parsed as T-SQL, each statement is translated just before it runs into the SQL of the engine behind raftdb-mysql (the MariaDB dialect, the one that has RETURNING), run in an engine session, and the answer is turned into TDS items. This file lists what is supported, how it is translated, and what is refused. Design reasons are in D91.
State of the checks. The front-end is tested with the standard SQL Server client tools and drivers (sqlcmd, ODBC, JDBC, .NET). What it does not support is stated in this chapter and on the limits page. See the page "Compatibility testing".
Stage 6 (D115). MARS, collations, code pages through SqlClient, spatial types (also through SqlClient and Microsoft.SqlServer.Types), smaller items, schedules, sp_stop_job, column permissions, KILL, backup and restore. See the page "Stage 6".
Running#
raftdb-mssql --listen 127.0.0.1:1433 --user sa --password SECRET --embed raftdb.conf --raftdb-user NAME --raftdb-password PW
raftdb-mssql --listen 127.0.0.1:1433 --user sa --password SECRET --raftdb 127.0.0.1:7480 --raftdb-user NAME --raftdb-password PWOne login from the command line (--user, --password; the user name is compared without regard to case; it is sa, the owner), and the logins made with CREATE LOGIN (stage 5). The database master is made at start and is where a login lands unless it names another. TLS is offered when a certificate is configured (D96); without it clients must connect with Encrypt=false.
Identity#
By default the front-end names itself Raft DB and says which server it is compatible with. SELECT @@VERSION answers Raft DB 0.0.5 (T-SQL front-end compatible with SQL Server 2022) - 16.0.1000.6 (X64) followed by a copyright line; the login acknowledgement, sp_server_info, xp_msver and SERVERPROPERTY('Edition') say Raft DB too. The numbers are SQL Server 2022's and do not change: SERVERPROPERTY('ProductVersion') is 16.0.1000.6, ProductMajorVersion is 16, EngineEdition is 3.
The front-end always answers in Raft DB's own wording; the option --identity vendor was removed (it is refused at start). The Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL) refuses a server whose program name is not Microsoft SQL Server, so applications that connect through it do not work with Raft DB. SqlClient, the ODBC driver, the JDBC driver, sqlcmd, bcp, SQLAlchemy, Django, Entity Framework Core and TypeORM work with the default.