Hello, team
In PB classic we used function ds.setTransObject(sqlca) all the time.
I assumed that the parallel use in SnapDevelop would be SetDateContext, but it now says that this function is obsolete and will be deprecated and simple assignment should be used instead.
In PB classic, if the transaction object was not valid (not connected, for instance) we would get an error. Is there a way to receive the same error before any DB operations are attempted?
Thank you
Arcady
If PS script code has 3 embedded SQLs one after another, does this mean that the .NET code will connect to the DB 3 times?
Is there a way to keep this connection open and close it manually when required?
We are using ADO.NET to connect to DB. Connecting to a data source can be time-consuming. To minimize the cost of opening connections, ADO.NET uses an optimization technique called connection pooling, which minimizes the cost of repeatedly opening and closing connections.
Refer to https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-pooling for more details.
If you want to keep this connection open and close it manually, please call DataContext.CurrentConnection.Open() and DataContext.CurrentConnection.Close().
Regards, Logan