473,394 Members | 1,567 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,394 software developers and data experts.

update dbase (dbf) tables

HI all,

Can someone show me or point me to a place where I can find out how to
update dbase(dbf) tables.

Thanks
RObert
Feb 5 '07 #1
4 4800
Hi,

You can use ODBC, I do not remember if you can use OLEDB, go to
connectionstrings.com and see what options you have.
--
Ignacio Machin
machin AT laceupsolutions com
"Robert Bravery" <me@u.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
| HI all,
|
| Can someone show me or point me to a place where I can find out how to
| update dbase(dbf) tables.
|
| Thanks
| RObert
|
|
Feb 5 '07 #2
you also mite find some c/c++ rdd/dll out there and
wrap them

dave

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:Oo*************@TK2MSFTNGP06.phx.gbl...
Hi,

You can use ODBC, I do not remember if you can use OLEDB, go to
connectionstrings.com and see what options you have.
--
Ignacio Machin
machin AT laceupsolutions com
"Robert Bravery" <me@u.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
| HI all,
|
| Can someone show me or point me to a place where I can find out how to
| update dbase(dbf) tables.
|
| Thanks
| RObert
|
|


Feb 6 '07 #3
Hello Robert,

Just to add to Mark's post the native dbf access is realized in CodeBase lib

RBCan someone show me or point me to a place where I can find out how
RBto update dbase(dbf) tables.

---
WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Feb 6 '07 #4
Hi Robert,

Depending on whether the dbase files are compatible, you might try the
FoxPro and Visual FoxPro OLE DB data provider, downloadable from the link
under my signature.

Here's some VB.NET code to get you started. You should be able to translate
it to C#:
Imports System
Imports System.Data
Imports System.Data.OleDb

Module Module1

Sub Main()

Try

Dim cn1 As New OleDbConnection( _
"Provider=VFPOLEDB.1;Data Source=C:\Temp\;")
cn1.Open()

Dim cmd1 As New OleDbCommand( _
"Create Table Test (Field1 I, Field2 C(10), Field3 L)", cn1)
cmd1.ExecuteNonQuery()

' In VFP logical values are represented in text as .F. and .T.
Dim cmd2 As New OleDbCommand( _
"Insert Into Test Values (1, 'Row 1', .T.)", cn1)
cmd2.ExecuteNonQuery()

Dim cmd3 As New OleDbCommand( _
"Insert Into Test Values (2, 'Row 2', .F.)", cn1)
cmd3.ExecuteNonQuery()

Dim da1 As New OleDbDataAdapter("Select * From Test", cn1)
Dim ds1 As New DataSet()
da1.Fill(ds1)

'Dim dr1 As DataRow()
'ds1.Tables(0).Rows.Add(dr1)
'ds1.Tables(0).Rows(2).Item(0).
Console.WriteLine(ds1.Tables(0).Rows(0).Item(2).To String())
Console.WriteLine(ds1.Tables(0).Rows(1).Item(2).To String())
Console.ReadLine()

Catch e As Exception
MsgBox(e.ToString())
End Try

End Sub

End Module

--
Cindy Winegarden
ci***@cindywinegarden.com

VFP OLE DB: http://msdn2.microsoft.com/en-us/vfoxpro/bb190232.aspx
VFP ODBC: http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx


"Robert Bravery" <me@u.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
HI all,

Can someone show me or point me to a place where I can find out how to
update dbase(dbf) tables.

Thanks
RObert


Feb 6 '07 #5

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

Similar topics

4
by: Matt Young | last post by:
I've been tasked with integrating an older management system based on DBF files with my snappy new ASP application to provide users of the ASP application with real-time data from the management...
10
by: level8 | last post by:
I would like to see a Clipper/dbase DBF file as a table in SQL Server 7.0. How can I SELECT rows from DBF file? Should I use OLE DB Provider or ODBC, and how?
8
by: chippy | last post by:
Hi, I've a VB script that creates a Access object in a word doc. Here is the full script. It works for all but the Export. Which always fails with a 3011 error. If I do the same in Access as a...
2
by: trint | last post by:
Anyone aware of c#, ado.Net dbase IV code sample? I would like to just open and view a .dbf table. Thanks, Trint
6
by: coriolis_wong | last post by:
Hi, I need to transfer csv format file to DBase III format file. How do i do it in Python language? Any help is appreciated. Thanks.
5
by: MontainDoctor | last post by:
Hi Folks I have a database in dbase. The dbf tables have numerous indexes because of which the linking is not possible. What to do? Rakesh
6
by: Aleyna[] | last post by:
Hi all, I wanted to connect an old DBASE file (I don't know the exact version) but I could not make it at all. I couldn't find a way to execute sql statements on db file using c#. The...
2
by: bcbrock | last post by:
I am trying to figure out how to query some data out of a dbase IV (.dbf) file sitting on a remote server from my MySQL/PHP/Web Server. Both servers are Windows Server 2003 SP2. My...
10
by: Johny | last post by:
Is there a module for reading/modifing db files from Python? Thanks for help B.
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.