Forum Discussion
MarioGV
1 year agoNew Contributor III
how can I close a database connection
cHi All, good day.
I'm using a database connection and it's working good:
Dim dt As DataTable = Nothing Dim dbConnApp As DbConnInfo = BRApi.Database.CreateDbConnInfo(_si, Dblocation.Externa...
- 1 year ago
hi All, after several tests and SQL readings, I found the solution, at the end it need to add a line:
dbConnApp.Close()
The database connection has closed and no error message.
I hope it could help somebody. Regards.
DanielWillis
1 year agoValued Contributor
I think you might be doing something wrong. Using 'Using' is standard practise. Feel free to share your code.
Henning
OneStream Employee
1 year agoI would also recommended to follow standard practice on that and try to use the "Using" statement as e.g. per snippet Daniel shared earlier.
Related Content
- 1 year ago
- 8 months ago
- 1 year ago
- 6 years ago