18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Database Interface<br />

1. Follow the Troubleshooting steps, and look for error messages in the log. An error message can tell you<br />

if you have made a mistake, such as entering with a wrong column name or specifying an invalid data<br />

format.<br />

2. Some databases have problems when you use reserved words as column names. Therefore, you should<br />

avoid using column names such as Time, Date, Numeric, etc.<br />

3. If your column name starts with AND or OR (e.g., ORange), enter the name surrounded by square<br />

brackets. For example, instead of ORange=10, enter [ORange]=10.<br />

4. If you are using SQL Server CE, you might have some problems when querying string fields. It has been<br />

identified that filters do not work with NCHAR data types; however, they do work if you declare these fields<br />

as NVARCHAR(). You might try to recreate your table by using this data type. An example of a<br />

command that creates a table with strings that can be queried is displayed below:<br />

CREATE TABLE Table1 (Name NVARCHAR(128), Age Numeric, Sex NVARCHAR(1))<br />

ORACLE<br />

Q: When I lose the connection with an ORACLE database, it does not recover. I receive the following message<br />

in the logwin: Database: Error: ORA-03114: not connected to ORACLE. Is that a problem with the IWS<br />

Database Interface<br />

A: The Oracle .Net Provider has a problem managing the connection pool. You need to install a QFE 830173.<br />

At the time that this document was written, more information about this problem could be found at this site<br />

(external link).<br />

Q: When I try to access the database, I get the following error message: ORA-00162: external dbid length<br />

19 is greater than maximum (16). What should I do<br />

A: At the time that this document was written, there was a problem on the Oracle .NET Provider; the Server<br />

Name (SERVER/TNS) could not exceed 16 characters. In order to fix this problem, you should try to reduce<br />

your Server Name field. One way of doing this is to edit the file \WINDOWS\system32\drivers\etc\hosts to<br />

add an entry with a smaller server name. For instance, the server name specified by 192.168.89.98, has 13<br />

characters, it could be reduced to 3 by adding the following line in the file:<br />

192.168.89.98 ora<br />

Now you can configure the Server Name configuration using ORA/TNS instead of 192.168.89.98/TNS.<br />

MYSQL<br />

Q: When I try to access the database from my local machine it works fine, but when I move my project to a<br />

remote machine, it says Access Denied.<br />

A: Each user on a MySQL database has a property associated with it that indicates the computer fromwhich<br />

it can get access to the database. By default, this property is set to localhost, so you will only be able to<br />

access the database if you are accessing from the local computer. You should read the MySQL manual for<br />

information about changing this setting.<br />

Q: Sometimes when I try to synchronize a remote MySQL database with a local MySQL database, or if I try to<br />

use application redundancy, a connection to the ADO.NET interface is opened and never closed.<br />

A: Go to the Database Configuration dialog and uncheck the Automatically Create option.<br />

SYBASE<br />

Q: I configured my Sybase database using the Browse button. When I click the test button, the test<br />

succeeds, but when I try to run my project I get the following error: Database: Error: Parse error: DSN<br />

'MyDatabase' does not exist. What am I doing wrong<br />

A: Please refer to Database Appendix F - Using Sybase for more information about this problem.<br />

Q: Why, when I try to connect to the Sybase database, am I receiving the error Error to create<br />

connection class [iAnywhere.Data.AsaClient.AsaConnection]<br />

A: You do not have the ADO.NET Provider installed on your computer. The database setup program has an<br />

option to install the Provider. Rerun the setup program, and make sure to check that option.<br />

Page 500<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!