Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Stop SQL execution by disconnecting Database Connection ???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rinu Gopalakrishna Pillai - 05 Oct 2007 20:24 GMT
Hi  All,

 I have a ASP/C# application that connect to Oracle database . After
issuing my SQL query if I close the browser or move into another page ( ie
whle executing in the databse serevr) will the SQL execution in server
continue or immediately stop.If it still continue how I can stop the
execution (by disconnecting the present database connection  ???).

Please help.

Thanks and Regards
RGP
Nicholas Paldino [.NET/C# MVP] - 05 Oct 2007 20:34 GMT
Rinu,

   You really can't.  The server won't know that the connection has
terminated (as far as I know), and will continue processing the page.  I'm
not sure if ASP.NET has some connection failure code to stop processing the
page in the event of a disconnect, but it is unlikely.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi  All,
>
[quoted text clipped - 8 lines]
> Thanks and Regards
> RGP
Peter Bromberg [C# MVP] - 05 Oct 2007 20:39 GMT
Your only real defense in this situation is a call to
Response.IsClientConnected, but if you have already issued your database
call, then it's probably a moot point.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi  All,
>
[quoted text clipped - 8 lines]
> Thanks and Regards
> RGP
Ignacio Machin ( .NET/ C# MVP ) - 05 Oct 2007 20:57 GMT
Hi,

> Hi  All,
>
[quoted text clipped - 3 lines]
> continue or immediately stop.If it still continue how I can stop the
> execution (by disconnecting the present database connection  ???).

I'm not very sure of how it will work, but I'm pretty sure that the
execution will continue, up to the point where the engine is ready to start
sending back some response, at this point as the client broke the connection
it will get an error and most posibly discard the processing.

If you do not get a good answer here you should post this in other groups,
as the same apply no matter what language you are using.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.