Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need advice selecting data from VFP databases from ASP p
Message
From
07/08/2003 09:22:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00817450
Message ID:
00817686
Views:
16
This message has been marked as the solution to the initial question of the thread.
>hello,
>
>i have some ASP pages that i am using to pull up VFP data on our intranet. i am trying to do the following SQL select statement which works fine in VFP
>
>SELECT COUNT(*) FROM UNIQUECUST!UNIQUECUST U JOIN CS21!TRANSACTIONS T ON U.CUSTID=T.CUSTID
>
>i am selecting data from tables in different databases. i am able to do multi table SELECTs in my ASP pages as long as both tables are in the same database.
>
>help!
>
>n.

Nancy,
When selecting from different databases specify the fullpath. ie :
 dbpath = Server.MapPath("data")
 cSQL = "SELECT COUNT(*) " & _
   " FROM " & dbpath & "\UNIQUECUST!UNIQUECUST U " & _
   " JOIN " & dbpath & "\CS21!TRANSACTIONS T ON U.CUSTID=T.CUSTID"
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
Reply
Map
View

Click here to load this message in the networking platform