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
|
|
|
|
|
|
2025-06-27 14:27:03 +03:00
|
|
|
Address = FunctionParameters["PG_IP"];
|
2025-06-25 13:17:23 +03:00
|
|
|
Port = "1434";
|
|
|
|
|
|
|
|
|
|
ConnectionString = OPI_MSSQL.GenerateConnectionString(Address, , Login, Password, Port);
|
2025-06-27 14:27:03 +03:00
|
|
|
TLSSettings = OPI_MSSQL.GetTlsSettings(True);
|
2025-06-25 13:17:23 +03:00
|
|
|
|
|
|
|
|
Result = OPI_MSSQL.CreateConnection(ConnectionString, TLSSettings);
|
|
|
|
|
|
|
|
|
|
OPI_MSSQL.CloseConnection(Result);
|