Hi I have a adp/SQL project running with my db.
Everything is ok but is there a way to customize error messages.
Example: read user cannot update one field so he receives the standard SQL error msg. Is there a way to make it more user friendly?
If you're using stored procedures, you can raise a custom error message, or you can have an output procedure that is returned with the error message.
If you're using direct sql syntax, then you can check the ADO error object and convert it to some sort of user defined error message.
Hope that helps
Related
So at my company we use a billing system which connects to a Firebird database that we have no back-end access to. I am quite new at this company so my familiarity with the Firebird database is not too great. We keep getting this error :
ERROR: Database Engine Error
Sender Class: TGLPreviewBtn
Exception Class: EIBODBError.
IBO ErrorERRCODE=335544569 SQLCODE=-204
Error Message:
ISC ERROR CODE:335544569
ISC ERROR MESSAGE:
Dynamic SQL Error
SQL error code = -204
Procedure unknown
GET_SUB_CONTACTLIST
At line 3, column 60
This has been a recurring thing since I've been hired (I've been here for about 45 days), and we've reported this error to the company which hosts the billing system that we use to access the database. The company keeps saying that it's a network issue on our end, however I cannot see any indication of a connection drop on our end.
I have to reiterate that we have no back-end access to this database so I have no way of going to see what GET_SUB_CONTACTLIST even refers to.
Any help will be appreciated, I am just out of college and this is my first job in a position like this so I will use this as a great learning experience.
This cannot be a network error on your end. The error literally means that Firebird was asked to execute a stored procedure called GET_SUB_CONTACTLIST, and that stored procedure does not exist at that time.
So either someone (or something) is creating and dropping stored procedures on the fly, or part of the application is calling a stored procedure that simply does not exist.
As an aside: error 335544569 (aka isc_dsql_error) covers a broad range of error conditions with 'dynamic' SQL (in other words: most SQL related errors...), unfortunately a lot of client libraries do not communicate the more specific error code 335544581 (or isc_dsql_procedure_err).
I am getting "Changed database context to.." message when USE statement is used.Application is built using Delphi XE7. I need to modify the databases in between without trying to get this message.Other database which i need is tempDB.Is there any SQL statement to pass from code to stop this message from coming?
I am using the following post to try and get the results of a query printed out to a file: Save a SQL query result to an XML file without SSIS or xp_cmdshell
But when I run it I get an error saying:
Msg 50000, Level 16, State 1, Procedure WriteToFile, Line 42
Error whilst Creating file "C:\TEMP\SQL_XML\test.xml",
I was wondering if there is any way to get more information about why exactly it errrored? I dont know much about debugging SQL queries. Im using SQL Server 2008 with SQL Server Management Studio. unfortunately
If you convert HRESULT -2146828218 to HEX you get 800A0046 and if you google for 0x800A0046 you'll find
CTL_E_PERMISSIONDENIED
Most plausible is that the identity running the COM Scripting.FileSystem object doesn't have permissions to write in C:\TEMP\SQL_XML. So verify that the Sql Service user has permission to create files in C:\TEMP\SQL_XML.
A second option might be that the file already exists.
A third option might be that the file is already in use.
While refreshing Webi report I am getting an error:
A database error occured. The database error text is: (CS) "Unexpected behavior" . (WIS 10901)
All the objects are parsing in the universe and Server is also responding. What can be the possible reason?
We are also able to run query in the database using database client tool.
If the error message appears after the a long time it might just be a timeout issue.
Else, you could try to import a version of the report that works in CMS to your local drive, rename it and run again.
It can be caused by some special character in the data combined with the fact that the server language settings do not foresee such character and therefore Business Objects cannot parse it for presentation.
If that is the case you might need to configure an environment variable of the server (like NLS_LANG) setting it to a value such that those special characters in your data can be handled by Business Objects.
In my situation, the error appera when some objet from the data base has changed or does not exists anymore. So we need to delete this object in the Universe or be sure that the field exists in the data base with the same name and type.
I had same problem with my reports. After couple hour of "investigation", I found.
I create Object in my universe, and set inappropriate type of object data Number, when value in database have type Character.
It throw me oracle Error (ORA-01722), and Bussiness Object error (WIS 10901), though SQL copied from report creator interface, executed directly on database return proper data.
I am just using sql store procedures inside classic asp to perform queries and data insertions etc. However I seem to be getting errors on the following:
.ActiveConnection = db
The only error I get is
error '80004005'
I get this error whenever I try calling a store procedure, whether it be a store procedure in a function file or in the actual file being executed. I seems to work if I put the connection details directly above it however it then fails for the next store procedure. I have never had this issue before and I can only think it may have something to do with the other process I am carrying out, which is reading data out of a CSV with with the data reader object. Thanks
Take a look at this which provides a nice list of different 80004005 error conditions and how to go about fixing them.
As #RogerSpear00 says it is hard to help if you don't post a fuller code snippet.