The method of SQL Server connecting VFP database

Source: Internet
Author: User
Tags dsn odbc table name

The interconnection of different database platform is commonly called the heterogeneous service of the database, now each big database can realize such heterogeneous interconnection, but the specific implementation technology of each vendor is not the same, such as: In SQL Server called linked server, through ODBC and other database interconnection.

The test environment for this article is:

Operating system: WINDOWS2000 SERVER (Traditional system)

Installation database: SQLSERVER2000 (English) and VFP6.0

Specific steps to achieve:

1. require PC to install VFP6.0 and SQL Server2000 software.

2. Configure Windows ODBC data source.

Start Menu-"assembly-" System management Tool-"data source (ODBC)-" Enter configure User DSN or System DSN can: Add-"Select Microsoft FOXPRO VFP DRIVER (*. DBF)-In the ODBC VISUAL FOXPRO Setup screen, customize the data source name (optional: vfptest)-The database type can select VISUAL FOXPRO databse (*. DBC) or free TABLE DIRECTORY (*. DBF such as Select this can be a free choice of directory)-"OK complete."

Configure and test ODBC complete!

3. Configure the connection server in sqlserver2000

Enterprise Manager-"Security-" Connection server-"right" New connection server-"define the connection name;" Select a different data source; Specifies that the program name is: MICROSOFT OLE DB PROVIDER for ODBC DRIVER; Product name is not filled; The data source specifies the name of the data source that is defined in ODBC just now; The provider string is filled in the following format: User id=username; PASSWORD=USERPASSWD (or in the following format: Uid=username; PWD=USERPASSWD), where the username and password corresponding to the VFP database to be connected to the user name and password-"Security tab: Set up in this security context, and input VFP database username and password-" Server Option tab page can default-"OK."

4. All preparations are complete!

In SQL Server Enterprise Manager-"security-" connect the server to open the newly built connection server-"Click on the table, you can see in the right window of the VFP database users have all the table names, but here also can not view the records of the table, This needs to be implemented in the Sqserver Query Analyzer with specific SQL! When accessing a table, use the format: [Connect server name]. [VFP users]. [Table name]. More detailed and specific use here no longer repeat.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.