Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maintaining connection to SQL Server or not?
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Maintaining connection to SQL Server or not?
Miscellaneous
Thread ID:
01025474
Message ID:
01025474
Views:
79
I am making baby steps in creating a simple (test) form using n-tier approach. UI -> BO -> DA. That is, UI through BO asks DA for a record and displays it. As user navigates through records in the table, the cycle "UI->BO->DA" will be done quite often (possibly). The DA is where connection to SQL Server takes place.

Should I close the connection and open a new one on every call to DA or should I make the connection PUBLIC and maintain it for duration of the form being open?

Thank you for any suggestions.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform