How To Trap Error

Results 1 to 2 of 2

Thread: How To Trap Error

  1. #1
    Swarnendu Banerjee Guest

    Default How To Trap Error

    Suppose my SQL server is closed right now.If I want to execute ASP pages that in turn does some database manipulation - it is giving me error.Is there any way that I can trap that stuff and let the user know in a sophisticated way........<BR>Thanx

  2. #2
    fl1rt Guest

    Default RE: How To Trap Error

    not sure if I understnad but...<BR><BR>when I need to modify a database or take it offline but it still gets called by an asp page...<BR><BR>I have a simple text file with a flag in it 0 or 1 (off/on) that is used to check if the online database access should be accessed or not.<BR><BR><BR>put a conditional check around your database accessing stuff and toggle the flag as and when you need to. This should stop errors occuring or access when you specify it to.<BR><BR>hope that helps.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts