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

21 lines
672 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
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);