Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATE CONNECTION

Status
Not open for further replies.

rlals

Programmer
Jun 23, 2003
29

Hi!
I´m using Visual Foxpro version 6 with SP 5.
I want to use a SQL server data base but my Fox doesn´t give options to create remote views ou connections.
This just let me use *.dbc files.

What is wrong ? There is a special version to do that, or I need to set up something ??


Ricardo
 
Ricardo,

No, you don't need a special version.

Here are the steps you need to go through:

1. In Control Panel, create a DSN for your SQL Server database. You use the ODBC applet to do that (this might be part of Administrative Tools, depending on your version of Windows).

2. In VFP, create or open a DBC.

3. In the project manager, drill down into the DBC; click on Connections; click on New. In the Data Source drop down, select the name of the DSN you created in step 1. Save and close the Connection.

4. Still in the DBC / project manager, click on Remote Views. Click on New. Choose the connection you created in step 3.

5. You will now be in the remote view designer, and you can go ahead and create your view.

The above is only an overview. If you need more details, come back.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 


Yes!! This works.
Thank you.

Ricardo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top