Thanks for your help, but what I was actually looking for was a way to get all the information, the file name, the line number where the compiler blew up, the actual database error or asp error...actually here is the code...I think this only works with asp3.0 (windows 2000 and up) Maybe some of you can use it as well.
glenn
Set objError = Server.GetLastError()
If Len(CStr(objError.ASPCode)) > 0 Then
strErrorMessage = strErrorMessage + "IIS Error Number :" + objError.ASPCode + "--"
end if
If Len(CStr(objError.Number)) > 0 Then
strErrorMessage = strErrorMessage + "Com Error Number :" +objError.Number + "--"
End If
If Len(CStr(objError.Source)) > 0 Then
strErrorMessage = strErrorMessage + "Error Source :" +objError.Source + "--"
End If
If Len(CStr(objError.File)) > 0 Then
strErrorMessage = strErrorMessage + "File Name :" +cstr(objError.File) + "--"
End If
If Len(CStr(objError.Line)) > 0 Then
strErrorMessage = strErrorMessage + "Error Line :" +CStr(objError.Line) + "--"
End If
If Len(CStr(objError.Description)) > 0 Then
strErrorMessage = strErrorMessage + "Error Description :" +cstr(objError.Description) + "--"
End If
If Len(CStr(objError.ASPDescription)) > 0 Then
strErrorMessage = strErrorMessage + "Full Description :" +cstr(objError.ASPDescription) + "--"
End If
cust_id = session("cust_id"

user_id = session("user_id"

if cust_id = "" then
cust_id = "unknown customer"
end if
if user_id = "" then
user_id = "unknown user"
end if
sql = "insert into errortable (error_id,APPLICATION_GROUP,APPLICATION_NAME,program_name,subroutine_name,error_message) "
sql = sql + " values "
sql = sql + "(errors_seq.nextval,'app_name',' ERROR HANDLING', '" & Request.ServerVariables("SCRIPT_NAME"

& "', '"
sql = sql + "cust_id :" & cust_id & " user_id : " & user_id & "', '"
sql = sql + strErrorMessage & "')"
set error_rs = dataconn.execute(sql,,adCmdText)