You are here: Start » Function Reference » Hardware Support » MSSQL » MSSQL_EndTransaction
Header: | ThirdPartySdk.h |
---|---|
Namespace: | fil |
Module: | ThirdParty |
Ends the ongoing transaction.
Syntax
void fil::MSSQL_EndTransaction ( MSSQL_State& ioState, const ftl::String& inConnectionString, const fil::MSSQLCompletionType::Type& inCompletionType )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
ioState | MSSQL_State& | Object used to maintain state of the function. | |
![]() |
inConnectionString | const String& | Connection string. | |
![]() |
inCompletionType | const MSSQLCompletionType::Type& | Transaction completion type (commit or rollback). |
Description
Ending a transaction
This filter can be used to either commit or rollback the current transaction when the commit mode is set to manual.
Remarks
SQL database driver software
This filter is intended to cooperate with Microsoft SQL Server database. To be able to open a connection to the database, it is required to install Microsoft ODBC Driver for SQL Server.
Add DLL path to system environment variable may be required.
Recommended ODBC Driver version for FabImage Studio usage is 18.
Microsoft ODBC Driver for SQL Server can be downloaded from the following website: https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server.
Connecting to a database
inConnectionString field must be used to enter a connection string that specifies information about a data source and the means of connecting to it. inConnectionString can be set to:
DSN=<DSN_name>
where DSN_name is a name of a User or System DSN configured using the Microsoft ODBC Data Source Administrator toolFILEDSN=<DSN_file_path>
where DSN_file_path is a path to a .dsn file created using the Microsoft ODBC Data Source Administrator tool- any other valid connection string, e.g.
Driver={ODBC Driver 18 for SQL Server};Server=myServerAddress;Database=myDataBase;UID=myUsername;PWD=myPassword;
For more information about connection strings, see: https://www.connectionstrings.com/sql-server/.
See Also
- MSSQL_SetCommitMode – Sets the database commit mode.