Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote View & Connecting to a SQL database
Message
De
25/01/2005 04:46:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00980144
Message ID:
00980305
Vues:
40
>I have been creating Remote Views with success to attach to a third-party's SQL Server tables. However, I've been using my laptop connected to their server to do the design. This time, the client is in another state and I can't attach to their server. I created a DBC with a remote view to our own SQL Server to a table called TSP_TIMEENTRIES. I sent the DBC to the client but the front end is throwing an error, saying it can't connect to the table. Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'dbo.TSP_TIMEENTRIES'.
>
>I removed the dbo. from the SQL code and it still runs fine on mine, but it then just gives me the same error except the object name is 'TSP_TIMEENTRIES'. I should add that it's the same DSN of course.
>
>Any ideas greatly appreciated.
>JR

Joy,
Are you sure you're connecting to correct server and database with that table in it? You can use CONNSTRING clause of "USE" command to change the connection (no need to use a DSN). ie:

Use myView CONNSTRING "Driver=SQL server;Server=192.140.22.1;Integrated Security=SSPI;Initial Catalog=myDatabase"

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform