M
Mark Redman
Hi All,
In our ASP.NET applications we use a connection string to connect to the
database, this obviously makes sense as the client(web browser) is
discinnected from the server and requests can be made at any time.
In the past when I programmed in Delphi and used ADO for windows
applications, I always created a database connection object which I used for
all database connectivity.
I am busy with a C# winforms application and cant decide if I should use a
connection string when making calls or use an SqlConnection object each
time, which gets created when the app runs.
(Obviously transactions can get created by either the connection string or
connection, but I am talking about single calls)
Any comments on this would be appreciated.
Thanks
Mark Redman
In our ASP.NET applications we use a connection string to connect to the
database, this obviously makes sense as the client(web browser) is
discinnected from the server and requests can be made at any time.
In the past when I programmed in Delphi and used ADO for windows
applications, I always created a database connection object which I used for
all database connectivity.
I am busy with a C# winforms application and cant decide if I should use a
connection string when making calls or use an SqlConnection object each
time, which gets created when the app runs.
(Obviously transactions can get created by either the connection string or
connection, but I am talking about single calls)
Any comments on this would be appreciated.
Thanks
Mark Redman