KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q134723: PRB: Datasource Name Too Long Error as Establishing Connection

Article: Q134723
Product(s): Microsoft FoxPro
Version(s): WINDOWS:2.5,3.0
Operating System(s): 
Keyword(s): kbvfp300 kbDSupport kbMDAC250
Last Modified: 23-FEB-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, version 3.0 
- Microsoft Data Access Components version 2.5 
-------------------------------------------------------------------------------

SYMPTOMS
========

When attempting to establish a connection to a remote data source using a
connection created with the Connection Designer, Visual FoxPro fails, and
displays this error message:

  Connectivity error: [Microsoft][ODBC DLL]Data Source Name Too Long

CAUSE
=====

In the Connection Designer, the Connect String was chained together using commas
instead of semi-colons.

RESOLUTION
==========

The connection string specified in the connection designer must be changed to be
chained together using semi-colons.

STATUS
======

This behavior is by design.

MORE INFORMATION
================

The following connection string, if entered in the Connection Designer, fails
due to the presence of commas:

     DSN=vfpsql,USERID=sa,PASSWORD=sa,DATABASE=pubs

The correct syntax is:

     DSN=vfpsql;USERID=sa;PASSWORD=sa;DATABASE=pubs

Additional query words: 3.00 VFoxWin ODBC

======================================================================
Keywords          : kbvfp300 kbDSupport kbMDAC250 
Technology        : kbVFPsearch kbAudDeveloper kbMDACSearch kbMDAC250 kbVFP300
Version           : WINDOWS:2.5,3.0
Issue type        : kbprb

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.