Hi fellows,
quick beginner's question... I using sort of a database access layer class to collect and prepare all my sql server's data for use in different places of my application. Now I wonder, should I open and close the SqlConnection every time I access the database or I should I keep the connection open all of the time while the application is running? Is there a performance/security difference?
Thanks in advance
Best wishes
waldemar
quick beginner's question... I using sort of a database access layer class to collect and prepare all my sql server's data for use in different places of my application. Now I wonder, should I open and close the SqlConnection every time I access the database or I should I keep the connection open all of the time while the application is running? Is there a performance/security difference?
Thanks in advance
Best wishes
waldemar