|
-
May 23rd, 2004, 10:17 PM
#1
Thread Starter
Fanatic Member
Advice required about sqlconnection
Dear The Expert,
Which better .. to always open the sqlconnection until the application closed or to open the sqlconnection only when it required? ..
I need advice .. many thanks in advance
Regards
Winanjaya
-
May 23rd, 2004, 10:28 PM
#2
Sleep mode
You open the connection ONLY whenever needed . There's no advantage of leaving the connection open from the moment you start your app till you close it .
-
May 23rd, 2004, 10:48 PM
#3
Thread Starter
Fanatic Member
But .. how if I want to implement Commit and RollBack for WAN Application? this is for network connection consideration..
pls advice .
thanks
Winanjaya
-
May 24th, 2004, 07:00 PM
#4
Sleep mode
If you explicitly , open the connection you must close it when you finish . If you open it implicitly , then you don't have to close it because it closes automatically when using the dataAdapte's fill or update method . That's it .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|