BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi 8 webservice with db connection best practice

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon May 21, 2007 8:55 pm    Post subject: Delphi 8 webservice with db connection best practice Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.