Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote View & Connecting to a SQL database
Message
From
25/01/2005 04:46:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00980144
Message ID:
00980305
Views:
39
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform