473,414 Members | 1,711 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

custom asp/sql error message on missing sql table/field

120 100+
hi guys

is it possible to have a custom asp/sql error message on a missing sql table/field?
error msg e.g

Microsoft OLE DB Provider for SQL Server error '80040e37'
Invalid object name 'Hotel_Prices_2010'.
/.../...//...../....hiddenurl/etc//default.asp, line 101

at the moment if there was a typo error in my code for a sql table or a sql field etc then the front end asp page errors - I just want a failsafe around this..

thanks in advance
Omar.
Sep 18 '10 #1
3 1876
jhardman
3,406 Expert 2GB
yes, in IIS you can specify which page is returned for each error code. right click on your website, select properties, and look for "custom error codes"

Jared
Sep 20 '10 #2
jhardman
3,406 Expert 2GB
you can also put error handlers right in the page:[code]
'before section that might generate error
on error resume next
'after section that might throw error
if err.number > 0 then
response.write err.number
end if[code]Jared
Sep 20 '10 #3
omar999
120 100+
thanks for the help guys

I will give this a try
Omar.
Sep 29 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Hers2keep | last post by:
I have a report that I run which consists of two subreports. Occasionally, one or the other reports do not have valid recordsets due to a parameter query based on date. Right now, if there are...
3
by: Rolan | last post by:
I seem to be unable to have a custom error message to appear for Error 10011 (database was unable to append all the data to the table). Each time, the MS Access default error message box appears....
1
by: Kenny | last post by:
Hi, How to create a custom error message when user hit this error so that I can redirect to the login page. "The page requires session state that is no longer available. Either the session...
1
by: Baren | last post by:
Hi! I am using the following code to redirect and display custom error message. But its not working properly. Its giving the same error instead of the cusotm error web.config : ...
2
by: drisso | last post by:
Hello, I have searched that error on these message boards, msdn and crystaldecisions.com. I found tutorials that showed how to export a crystal report to pdf, but like many others I am getting...
2
by: Christopher Pettet | last post by:
I am having an issue with php and IIS6 in that I want a custom error page to display when a page isn't found (error 404). If I do a test and enter anything ending with .php it returns the...
0
by: info | last post by:
Hi, Is it possible to include in the Schema validation file, every custom error message for each validation rules? This mean, in the same xsd file we can have the validation rules (patterns)...
8
by: g_man | last post by:
I am trying trap Runtime error 3022 (duplicates) in the click event of a command button that closes the form. I have code in the Form_Error event that does a good job of providing a more meaningful...
2
by: sasierkha | last post by:
I have two options yes and no in option button when the user select the option yes it has two textbox with required field validator if value is entered no pbm otherwise error message will be...
3
by: Reedsp | last post by:
I am using Access 2007. In Access 2003, when you had the import window opened and clicked on the Cancel button, MS displayed an error message. To compensate for this using VB code, I used the "On...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.