473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Fetching from FoxPro tables and updating SQL server tables

Hi

I am using vb.net

Is it possible to fetch data from foxpro tables (vfp8) and update tables in sql server 2000? The table structures of the foxpro tables are different from those in sql server. Depending on the data fetched, I would like to update relavent table columns in sql server. How can this be done

Regards
Sarah
Nov 20 '05 #1
3 2358
Hi Sarah,

Download the odbc dll for .net and then use it in an imports statement like
this:
Imports Microsoft.Data.Odbc

Then set up the connection:

Dim oconn_d As New OdbcConnection("Driver={Microsoft dBase Driver
(*.dbf)};UID=admin;usercommitsync=yes;threads=3;st atistics=0;safetransaction
s=0;pagetimeout=5;maxscanrows=8;maxbuffersize=2048 ;FIL=dBase
IV;DriverID=533;deleted=0;defaultdir=f:\imcapps\db ffiles;dbq=f:\imcapps\dbff
iles;collatingsequence=ascii;")

The dbase driver should work, but you can also check out other driver
connections at http://www.able-consulting.com/ado_conn.htm

Then simply open both tables and copy data from one table to the other.

HTH,

Bernie Yaeger

"Sarah" <an*******@discussions.microsoft.com> wrote in message
news:4C**********************************@microsof t.com...
Hi,

I am using vb.net.

Is it possible to fetch data from foxpro tables (vfp8) and update tables in sql server 2000? The table structures of the foxpro tables are different
from those in sql server. Depending on the data fetched, I would like to
update relavent table columns in sql server. How can this be done?
Regards.
Sarah

Nov 20 '05 #2
In news: uK**************@TK2MSFTNGP11.phx.gbl,
Bernie Yaeger <be*****@cherwellinc.com> wrote:
The dbase driver should work, but you can also check out other driver
connections at http://www.able-consulting.com/ado_conn.htm


Hi Bernie,

The Dbase driver will most likely not work. New features have been added to
VFP tables, making them incompatible with old drivers.

For Sarah - Even though your tables were created with VFP8, if they do not
have any of the new data features added in VFP7 and VFP8 then your tables
can be read with the VFP ODBC driver, which will read all previous versions
too. If any of the VFP7 or VFP8 features have been used then you can access
the tables vial the Visual FoxPro OLE DB data provider, which will read all
previous table versions also.

Both the ODBC driver and OLE DB data provider can be downloaded from
http://msdn.microsoft.com/vfoxpro/do...s/default.aspx.

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
ci**************@mvps.org www.cindywinegarden.com

Nov 20 '05 #3

Thanks
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Perry | last post by:
Hi, I have a large FoxPro table with an index that I need to be Queried from SQL Server by OLE.DB or ODBC. If I query the DBF directly a search takes 1 Minute +. Is there a way I can call the...
0
by: Adam Haskell | last post by:
Ok heres the situation: We have a linked server from SQL 2000 to a foxpro dbf. In our test enviroment we had the Foxpro and SQL server on the same machine. The linked worked perfect. Now we are...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
2
by: Salad | last post by:
OS = WinXP & Win98. Access = A97 & AXP Q1) Where can I find the VFP ODBC driver at Microsoft. I have been working developing an app in Access that will link to some DOS FoxPro tables. I...
3
by: | last post by:
I am trying to Delete records from Fox Pro Free Tables (.DBF) using C#. I am able to insert and view data with no problems but when I try to delete - no luck. It appears that I need to run a...
9
by: cj | last post by:
I'm trying to forge ahead with Visual Basic .Net but recently I've suffered several major set backs in demonstrating VB is the future and we should move from Visual FoxPro. I really need to find...
12
by: Alex S | last post by:
Hello everyone, My company uses a FoxPro database right now as an interface and a database. For our situation, I have come to the conclusion that it would be a better choice for us to move to an...
5
by: drgonzo120 | last post by:
hello, i must convert a foxpro database tro a sql-server datase, and while i'm thinking on it, are there any known programs??? maybe open source? that do this job ??? because re-inventing the...
3
by: Kunal Desale | last post by:
Hi, How to insert/update data in foxpro table field having datatype MEMO using Linked Server? I have written sql insert queries in which i have used linked server to insert data into foxpro...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.