DSN
The Data Source node is optional. By default, SRS inherits the connection from the current application.
Connections in an XML file are stored in plain text. For security reasons, we recommend using the jetQuery Connections Manager. Connections stored in the Connections Manager are secured and encrypted.
Attributes
name- name of the connection; a command selects it withlink="{name}", and a command withoutlinkuses the first connectiontype- connection type; default ismssqlmssql- Microsoft SQL Server, Azure SQL DB, Amazon RDSMsExcel(experimental) - Excel (.xlsx) files as a database
- element value - connection string; an invalid connection string stops the SRS with
err/invalid-connectionstring
Two special values of the command link attribute do not need a dsn item:
link="self"- virtual query over the results of previous commands (SQLite syntax)link="srs"- lists the SRS definitions of the application
Types
mssql - SQL Server provider
The standard SQL Server provider connects to Microsoft® SQL Server, Microsoft® Azure SQL, and Amazon RDS for SQL Server.
MsExcel provider
Reads an Excel workbook. Every worksheet becomes a separate dataset named after the worksheet, and all values are returned as text. The command body is not used.
Parameters:
Path- required; file path relative to the application folderHeader- required;True- the first row holds column names,False- columns are namedA,B,C...
| XML | |
|---|---|
Note
The file system provider (FileSystem) is disabled. A command that uses it returns Type FileSystem not found.