08.01.2015 Views

IWS_Training_Guide_v.. - FF-Automation

IWS_Training_Guide_v.. - FF-Automation

IWS_Training_Guide_v.. - FF-Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 20. Using ODBC Database Source Names (DSN)<br />

ODBC, short for Open Database Connectivity, is a standard software API method for using relational database<br />

management systems (RDBMS). The goal of ODBC is to allow SQL (Structured Query Language) queries to<br />

take place on the database independent of the programming language used. An ODBC implementation<br />

consists of three (3) components:<br />

1. The Application (in this case, the <strong>IWS</strong> application)<br />

2. A Core ODBC Library<br />

3. A database Driver<br />

The Core ODBC library is provided by the Operating System (e.g. Windows XP) and interprets commands sent<br />

by the application to the database (through the Driver). The Driver is specific to a database, and only needs to<br />

know how to attach to the Core ODBC library.<br />

Almost every database in existence can be interfaced via ODBC. Microsoft now ships ODBC with every version<br />

of Windows (except Windows CE which does not support ODBC). In order to use this capability, you must use<br />

Microsoft .NET Framework 1.1 or higher.<br />

Note:<br />

• The Microsoft .NET Framework 2.0 is automatically installed with <strong>IWS</strong> v.6.1 Service Pack 3<br />

The connection between the Application and the Database starts by defining a DSN, or Database Source<br />

Name. This is structure to define the connection to the Database, including the protocol, host, port and<br />

database. This connection is defined in detail at the Operating System Services level, not at the Application (or<br />

VBScript) level.<br />

Note:<br />

• A DSN (e.g. System DSN) must be specified by the Operating System<br />

To configure a DSN (e.g. Windows XP Pro), you click on the Start button, select Control Panel, and then<br />

Administrative Tools. Next, click on the Data Sources icon. This opens the ODBC Data Source Administrator<br />

dialog box.<br />

Note that there are three different type of DSN’s:<br />

• System DSN<br />

In general, you should use a System DSN. This type of DSN is not dedicated to a specific user, and is<br />

available to all users on the local computer. The data source is local to the computer.<br />

• File DSN<br />

This type of DSN can be shared among all users who have the same driver(s) installed. The data source<br />

is not user-dedicated and need not be local to the computer.<br />

• User DSN<br />

This type of DSN is only available to the current user and the data source is local to the computer.<br />

InduSoft Web Studio 20–1

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

Saved successfully!

Ooh no, something went wrong!