18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Database Interface<br />

Using Sybase<br />

You need to install the AsaClient provider on your computer; the tests with IWS were performed using the<br />

architecture explained in the topic Linking the Database Through a Remote DB Provider.<br />

If you are using the browse button to automatically generate the connection string, the string returned will<br />

have the following format:<br />

Provider=ASAProv.90; Data Source=Test<br />

This format requires that you create an ODBC DSN with the same name as the Data Source (in this case, Test)<br />

in order to communicate with the database. If the DSN is not created, the following error will display in the<br />

LogWin when connecting to the database:<br />

Database: Error: Parse error: DSN 'Test' does not exist<br />

To void an ODBC DSN, you can enter with the connection string manually as shown in the example below:<br />

Provider=ASAProv.90; DBF=C:\ Test.db<br />

Note: These procedures were tested using Sybase Server Anywhere 9.0.1.1751.<br />

Using Microsoft Excel<br />

IWS's database interface lets you store information in and retrieve information from Microsoft Excel<br />

spreadsheet (XLS or XLSX) files.<br />

You do not need to have Excel installed on the same computer as IWS; IWS can directly read from and write<br />

to an existing XLS/XLSX file. However, you do need to use Excel to create the initial file — either a blank<br />

spreadsheet for new data or a populated spreadsheet for reference data. Once you've created the file, you can<br />

move it to any location and establish a connection to it there.<br />

Note: This procedure was last tested using Microsoft Excel 2007 (12.0.6331.5000).<br />

To establish a connection between your IWS project and your XLS/XLSX file:<br />

1. In the Database Configuration property sheet, click the Browse button (…).<br />

Page 510<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!