What to do if can't connect?

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/67234?pagenum=1
05 November 2025, 16:44

Topic


SiSL
What to do if can't connect?
09 June 2008, 12:08


Well, problem mostly occurs with people who has seperate servers with SQL and IIS

What code do you apply to your sites if connection failed ? <

 

Replies ...


AnonJr
09 June 2008, 12:53


Are you asking what to do if your Web server doesn't connect to the SQL Server? Your question is a little unclear...<
SiSL
09 June 2008, 13:15


Exactly...
Let's say SQL server is down and IIS could not connect. How to address it<
phy1729
09 June 2008, 19:44


write "The SQL server is unreachable at this time" write the footer and exit is typically what I do or I write "<!--db-->" as the only thing to the page so I know where the error is.<
AnonJr
09 June 2008, 21:02


All things being equal, its best to code so that it crashes responsibly. (yes, there is a right and a wrong way to crash)

I've started programming my apps with a quick connection check. If it fails the check it redirects to a page that explains that the problem is ours, not the users, etc. and apologizes for the downtime. In the background it logs some information for me so I can do a little analysis later. I'm working on expanding that code so I can crash more responsibly my self. smile<
© 2000-2021 Snitz™ Communications