Professional Documents
Culture Documents
QTip 2005 05 - Using ADO Connection Strings in InTouch SQL Access
QTip 2005 05 - Using ADO Connection Strings in InTouch SQL Access
QTip 2005 05 - Using ADO Connection Strings in InTouch SQL Access
1. Speed
2. No ODBC set required on each InTouch PC (complete database connectivity information is contained within the
InTouch application)
The only change that needs to be made to an InTouch application using SQL Access is the connection string in the
SQLConnect() function. An example ODBC SQLConnect() statement against a SQL Server database might look as
follows:
SQLConnect(ConnectionID, “DSN=ProductionDB;UID=wwAdmin;PWD=wwAdmin”);
Using an ADO, the connection string parameter no longer references an ODBC DSN (Data Source Name), but rather the
connection parameters implicitly – i.e., contained within the connection string in InTouch. Using OLE-DB to connect to
your SQL Server database is as simple as changing your connection string to the include following
Provider = SQLOLEDB
Data Source = SERVER NAME
User ID = USERID
Password = PASSWORD
Initial Catalog = DB NAME
For example, to connect to the RUNTIME database on the MS SQLServer named PlantServer, the following SQLConnect
() statement would be used:
©2003 Q-mation, Inc. All rights reserved. All trademarks are the property of their respective owners.