 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon May 21, 2007 8:55 pm Post subject: Delphi 8 webservice with db connection best practice |
|
|
Hello!
I'm building a .net webservice with Delphi 8. The webservice connects
to Mysql database with Mysql .net connector.
What is the best practise in creating and maintaining the connection?
Currently I create the Mysql connection object in Global.asax in
application_start event and freeing it application_end.
When my webmethods need to access th db, I open and close the
connection in web method function.
Is this wise or what would be the best practise in doing this?
Thanks!
Marko |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|