Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Problem ...
Message
De
01/03/2001 06:14:21
 
 
À
01/03/2001 04:41:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00480867
Message ID:
00480877
Vues:
9
>Dear all,
>
>I have a small program which written by VFP and run on a PC. Now, I would like to access the database on another PC via dailup(RAS of NT). Can I use the ODBC through TCP/IP network to access the database? Thank you for your help!!!
>

Why do you need to use ODBC? You can map a drive on the remote PC and then reference it directly. NT will let you use UNCs in the form \\dotted IP address\ShareName to reference a folder, and the following is valid:

* Assume that the remote system is 10.0.0.2, and it shares the folder
* containing the table as "ShareName". The table is named "MyTable"
USE \\10.0.0.2\ShareName\MyTable
* You can also map the UNC to a drive letter using NET USE or the
* WNetAddConnection2() or WNetAddConnection3() API calls, or the WSH
! NET USE Z: \\10.0.0.2\ShareName
USE Z:MyTable
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform