ODBC x64: connection and execution
Windows driver, DSNs, bound parameters, transport options and successive results.
Driver architecture and server contract
The driver translates ODBC operations into HTTP(S) exchanges with Core. The server remains authoritative for catalog, types and permissions; Studio is independent of this link. Application and driver architecture must match. Autocommit reflects per-statement publication, and protocol negotiation determines the metadata and results available to clients.
Install on the client computer
Select ODBC in the unified installer, alone or with other modules. Its separate wizard requests administrator elevation and installs under Program Files\Octaviius\ODBC\x64. It needs no Python, creates no DSN or secret and does not start Core. Close applications using an older DLL before replacing it and honor restart requests.
The exact driver name is Octaviius ODBC Driver. Applications must be 64-bit. A 64-bit Windows OS does not make a 32-bit application compatible with this x64 driver. No Linux, macOS or x86 driver is included.
Create a DSN and supply the secret
Open the 64-bit ODBC administrator: %WINDIR%\System32\odbcad32.exe; SysWOW64 is the 32-bit view. User DSNs belong to the current Windows account; system DSNs serve multiple accounts/services and require appropriate administration. Select the driver, HTTPS server, database and UserPassword or ApiKey AuthMode.
The UI does not save passwords or API keys. Applications supply them at connect time. ApiKey mode accepts the secret in ApiKey or PWD. A DSN grants no rights: Core account/key permissions still apply.
Connection string and bound parameters
This pyodbc example targets Windows x64 with the installed driver, even for a remote Core. Install pyodbc in the application Python, not the server’s private runtime. Connection-string quoting prevents special characters from changing fields. SQL values use ? bindings rather than Python interpolation. Keep autocommit=True: Core has no multi-statement transactions.
import os
import pyodbc
def field(value):
return "{" + value.replace("}", "}}") + "}"
connection_string = (
"DRIVER={Octaviius ODBC Driver};"
"Server=" + field(os.environ["OCTAVIIUS_URL"]) + ";"
"Database=" + field(os.environ["OCTAVIIUS_DATABASE"]) + ";"
"AuthMode=ApiKey;PWD=" + field(os.environ["OCTAVIIUS_API_KEY"]) + ";"
)
connection = pyodbc.connect(connection_string, autocommit=True)
try:
cursor = connection.cursor()
try:
cursor.execute("SELECT Id, Montant FROM dbo.Ventes WHERE Pays = ?", "France")
while True:
rows = cursor.fetchmany(8192)
if not rows:
break
for row in rows:
print(row)
finally:
cursor.close()
finally:
connection.close()Connection options and driver behavior
| Option | Purpose |
|---|---|
| Server | HTTP(S) origin and optional port; HTTPS required outside loopback by default. |
| Database | Authorized database, never a disk path. |
| AuthMode | UserPassword with UID/PWD, or ApiKey with ApiKey/PWD. |
| BatchRows / BatchBytes | Requested batch limits, bounded by negotiated capabilities. |
| HttpTimeout | HTTP timeout, default 30 s, separate from SQL timeout. |
| FetchRetries | 0..3; default 1, sequence-based fetch replay, not SQL replay. |
| ParamError | Stop or Continue for parameter arrays; nontransactional. |
| AllowInsecure | No by default; Yes permits remote HTTP but does not disable HTTPS certificate validation. |
The driver negotiates protocol 4. Cursors are forward-only; no transactions or SQLPutData/SQLParamData. Procedure outputs become final after all results. Third-party client tests must cover metadata, parameters, Unicode, exact types, cancellation and multiple results.
Remove or repair the driver
The main installer provides a shortcut to rerun ODBC setup. Driver uninstall is separate from Core/Studio. Existing DSNs are retained and may still reference an old development path; recreate them against the installed driver when necessary. Check client bitness for IM002 before changing SQL permissions.