Ask a Question related to ASP Database, Design and Development.
-
ccg #1
Testing for SQL Availability in ASP
In ASP (vbscript) is there a way to check to see if a SQL server is
online before trying to open a connection?
I have a situation where we have a SQL server that may be offline for
a couple minutes and right the ASP page returns:
Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.
I'd like to be able to first check to make sure the server is
available and if NOT, then skip the database connection on that page
altogether. Or, at least load the page without showing the error. I
have on error resume next but it still displays this error.
Thanks!
ccg Guest
-
variable availability
I know that unless you use the "var" keyword when declaring a variable within a UDF, it makes that variable local to the function. If you don't use... -
Template availability
*I have my own flash templates website. There some nice templates. Do not hesitate to ask any que? Referring URLs http://www.templatesmx.net -
JDK 1.4.2 Availability on AIX5L ?
Folks, Does anyone know when JDK 1.4.2 is expected to be available for AIX 5L ? I've had a quick look around the HP website but couldn't find... -
Cookie availability
Hi Manohar. So, when the user turns cookies off, session ids cannot be created? Thanks, Robert Scheer "Manohar Kamath "... -
Panther Availability?
Hi Anyone know when Panther is supposed to be released to the masses? TIA Claude -
Bob Barrows [MVP] #2
Re: Testing for SQL Availability in ASP
ccg wrote:
On Error Resume Next is the only way. It should be catching this error. we> In ASP (vbscript) is there a way to check to see if a SQL server is
> online before trying to open a connection?
>
> I have a situation where we have a SQL server that may be offline for
> a couple minutes and right the ASP page returns:
>
> Microsoft OLE DB Provider for SQL Server error '80004005'
>
> [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
> access denied.
>
> I'd like to be able to first check to make sure the server is
> available and if NOT, then skip the database connection on that page
> altogether. Or, at least load the page without showing the error. I
> have on error resume next but it still displays this error.
>
> Thanks!
need to see your code.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows [MVP] Guest
-
Bullschmidt #3
Re: Testing for SQL Availability in ASP
Variable Types
[url]http://www.asp101.com/samples/var_types.asp[/url]
This has an example of some simple error handling.
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
[url]http://www.Bullschmidt.com[/url]
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest



Reply With Quote

