Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When open and close connection?
Message
 
 
To
13/04/2005 11:57:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01004153
Message ID:
01004210
Views:
29
>>Hi everybody,
>>
>>I have a theoretical question. If we're working with SQL Server, what is the commonly-used practice: open connection at the beginning of the application and close it at the end or open and close only when sending requests to the server?
>>
>>I have this question for VFP-SQL Server applications and for .NET applications.
>>
>>(I'm going to cross-post in .NET forum).
>>
>>Thanks a lot in advance.
>
>No need to cross post to .Net. Open and close as needed. Keeping a connection open is more costly than getting it again from the pool. 'Disconnected' is .Net's favorite:)
>Cetin

Thanks, Cetin. That's what we implemented, but just wanted a confirmation if this is right.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform