Skip to content

Connect

Connects to the database. The result record contains the connection 'Uid' which is used for subsequent commands.

Permissions

Command KindNeeded User Kind
ConnectAll

Parameters

NameTypeDescriptionRequiredDefaultValues
DatabasestringName of the database ([Database]).yes
PasswordstringThe password of the user.yes
UserstringName of the user ([User]).yes
CheckbooleanIf 'True' the connection data is verified without logging in. The Uid becomes empty. The default value is 'False'.nofalse
SetCookiebooleanIf 'True', the uid is returned in a cookie. The default value is 'False'.nofalse

Result

NameTypeDescription
UserstringName of the connected user.
UidstringUnique ID, to identify the connection which is used for subsequent commands.
DomainstringDomain of the connected user.
DatabasestringName of the connected database.
WorksheetstringStart worksheet of the connected user.
ClientUserAgentHashstringHash of the client user agent.
ClientIpHashstringHash of the client IP address.
ServerHoststringIp address of the server.
ServerPortintegerPort of the server.
CsrfServerHeaderstringCSRF header name, which is sent by the server. It is used when the uid is returned in a cookie. For this, the 'SetCookie' parameter must be 'True'.
CsrfClientHeaderstringCSRF header name, which must be returned by the client. It is used when the uid is returned in a cookie. For this, the 'SetCookie' parameter must be 'True'.
Sysboolean'True' if user is 'Sys'.
SysTechboolean'True' if user is 'SysTech'.
AdminbooleanIf 'True' the connected user has admin permissions.
DesignerbooleanIf 'True' the connected user has designer permissions.
ImportbooleanIf 'True' the connected user has the permission to import data ('Import Dimension', 'Import Table'...), independent of database permissions.
FixedbooleanIf 'True' the connected user cannot be changed ('Sys' or 'SysTech').
MinYearintegerFirst year of fixed date dimensions of the database.
MaxYearintegerLast year of fixed date dimensions of the database.
DefaultMaxRecordsintegerDefault maximum number of records to be returned. It is used when 'MaxRecords' is not set in the query.
LicensestringName for which the server license was issued.

Code

text
CONNECT
DATABASE=[string, Needed]
PASSWORD=[string, Needed]
USER=[string, Needed]
CHECK=[boolean, default=false]
SETCOOKIE=[boolean, default=false]