1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-01 22:29:52 +02:00
Files
OpenIntegrations/docs/en/examples/MSSQL/CreateConnection.txt

21 lines
669 B
Plaintext
Raw Normal View History

2025-06-27 11:47:43 +03:00
 Address = FunctionParameters["PG_IP"];
2025-06-25 13:17:23 +03:00
Login = "bayselonarrend";
2025-06-27 11:47:43 +03:00
Password = FunctionParameters["PG_Password"];
2025-06-25 13:17:23 +03:00
ConnectionString = OPI_MSSQL.GenerateConnectionString(Address, , Login, Password);
Result = OPI_MSSQL.CreateConnection(ConnectionString);
OPI_MSSQL.CloseConnection(Result);
// With TLS
Address = "api.athenaeum.digital";
Port = "1434";
ConnectionString = OPI_MSSQL.GenerateConnectionString(Address, , Login, Password, Port);
TLSSettings = OPI_MSSQL.GetTlsSettings(False);
Result = OPI_MSSQL.CreateConnection(ConnectionString, TLSSettings);
OPI_MSSQL.CloseConnection(Result);