Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need to access VFP table from SQL
Message
From
04/11/2016 06:23:48
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01642670
Message ID:
01642711
Views:
40
>>I need to get data out of SBT arcust1.dbf from SQLserver 2014.
>>
>>Is that possible and what do I need to do to get there?
>>
>>Thanks alot
>>
>>P
>
>May be old blog of mine will be helpful
>
>http://blogs.lessthandot.com/index.php/datamgmt/datadesign/think-carefully-which-sql-server-you-wan/

i don't want to import the data, just query for a excel report. this is being run sometimes several times a day.
it's about outstanding receivables held in SBT (or whatever it is called nowadays)

here it is:
** SIF
      USE \\ott-apv002\sbtsif\ardata\AccountNames AGAIN SHARED
      USE \\ott-apv002\sbtsif\ardata\arCUST01 AGAIN SHARED

SQL for first report sheet

SELECT AccountNames.cname as Ctype,custno,company,terr,balance,PADR(email,80) as email,CHRTRAN(phone,"/-.","") as claimno 
      FROM arcust01 
      join AccountNames ON LEFT(arcust01.custno,1)=AccountNames.cCode
      WHERE custno<>"A" AND custno<>"W"  
      ORDER BY 2
P
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform