Accessibility

TechNote (Archived)

Data Source Undefined errors when working with ODBC Socket data sources

Issue


When adding or modifying ODBC Socket data sources, one of the following errors may be generated:

 Connection verification failed for data source: test3  []java.sql.SQLException: SQLException while attempting   to connect: java.sql.SQLException: [MERANT][SequeLink   JDBC Driver][SequeLink Server]The specified data source   is not defined.  The root cause was that: java.sql.SQLException:   SQLException while attempting to connect:   java.sql.SQLException: [MERANT][SequeLink JDBC Driver]   [SequeLink Server] The specified data source is not   defined. 

 Error Occurred While Processing Request  Variable THISDATASOURCE is undefined.  The error occurred in C:\Inetpub\wwwroot\CFIDE\administrator\   datasources\odbcsocket.cfm: line 531  Called from C:\Inetpub\wwwroot\CFIDE\administrator\   datasources\odbcsocket.cfm: line 455  Called from C:\Inetpub\wwwroot\CFIDE\administrator\   datasources\odbcsocket.cfm: line 769 

ODBC Socket data sources are those which utilize the DataDirect SequeLink ODBC Socket Server services. Within the ColdFusion Administrator, this corresponds to the selections in the drop-down driver box for Microsoft Access and ODBC Socket. These driver choices use the SequeLink ODBC Socket Server services, which are labeled as ColdFusion MX ODBC Agent and ColdFusion MX ODBC Server in the Windows Services list. The ColdFusion MX ODBC Agent is used by CFMX to make changes to ODBC data sources. The ColdFusion MX ODBC Server is used by CFMX to access ODBC data sources.

When creating or modifying any data sources that use the ODBC Socket server, both the ColdFusion MX ODBC Agent and ColdFusion MX ODBC Server services must be running. If the ColdFusion MX ODBC Agent service is not running, you will see the first error listed above. If the service is running but the account it is configured to run as does not have sufficient system permissions, you will see the second error listed.

Solution


To determine if permissions are the cause of the error, temporarily change the ColdFusion MX ODBC Agent service to run as the local SYSTEM account rather than an NT user account:

Windows NT:

  1. Select the Start menu > Settings > Control Panel > Services.
  2. Highlight the ColdFusion MX ODBC Agent service and click Startup.
  3. Change the Log On As: option to be System Account. Click OK.
  4. Stop and restart the ColdFusion MX ODBC Agent service.
  5. Open the ColdFusion Administrator and create or modify the data source.


Windows 2000/XP:

  1. Select the Start menu > Settings > Control Panel > Administrative Tools > Services.
  2. Highlight the ColdFusion MX ODBC Agent service.
  3. Right-click on the service and choose Properties
  4. Select the Log On tab.
  5. Change the Log on as: option to be Local System account. Click OK.
  6. Restart the ColdFusion MX ODBC Agent service.
  7. Open the ColdFusion Administrator and create or modify the data source.


If you are able to successfully create or modify the data source after making this change, the user account previously designated for the ColdFusion MX ODBC Agent service does not have sufficient privileges to function correctly. The following suggestions may help determine where additional privileges may be needed.

  • View the Windows Event Viewer log.
    ColdFusion MX ODBC Agent errors are typically logged to the Event Log, which will provide additional information regarding the specific Windows error number being generated.
  • Use a Windows Registry monitoring tool, such as RegMon.
    Using a registry monitoring tool can provide information regarding success/failure events during Registry access by the ColdFusion MX ODBC Agent service. In particular, access to the HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ is needed by the service.

Additional Information


Related TechNotes:


AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:tn_18644
Browser:Chrome
Internet Explorer
Netscape
Opera
Safari
Firefox
Database:DB2
Informix
MySQL
Oracle
SQL Server
Sybase
MS Access

Products Affected: