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

exporting a dataset or dataview to a dbf file

Hi!

I'm using visual studio .net 2003, creating a windowsapplication. I'm also
using a SQL server for storing and retrieving data.

Is it possible for me, using the application, to create a dbf file and store
data from a dataset or a dataview in this file? And if so how?

greatful for any help.

Best regards
Hans Årsjö
Nov 17 '05 #1
1 7047
Hi Hans,

You can create a FoxPro DBF using standard SQL DDL.

Create Table MyTable (cField C(10), iField I, nField N(10, 2), dField D)
Insert Into MyTable (cField, iField, nField, dField) Values ("One", 1, 1.00,
{01/01/2001})
You can also create a linked server in SQL Server and insert data that way.
Use the latest FoxPro and Visual FoxPro OLE DB data provider, downloadable
from http://msdn.microsoft.com/vfoxpro/downloads/updates .

sp_addlinkedserver 'MyLinkedServer', 'Description', 'VfpOleDb.1',
'C:\MyPath\'
Select * From MyLinkedServer...MyTable
--
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
ci**************@msn.com www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
"Hans - DiaGraphIT -" <Ha************@discussions.microsoft.com> wrote in
message news:10**********************************@microsof t.com...
Hi!

I'm using visual studio .net 2003, creating a windowsapplication. I'm also
using a SQL server for storing and retrieving data.

Is it possible for me, using the application, to create a dbf file and
store
data from a dataset or a dataview in this file? And if so how?

greatful for any help.

Best regards
Hans Årsjö

Nov 17 '05 #2

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

Similar topics

1
by: Al | last post by:
in order to implement sorting, paging in a datagrid, can I have the datasource of the datagrid a datareader or it must be a dataset then I create a dataview and make it a datasource of the...
0
by: Babu Mannaravalappil | last post by:
Hi all, I apologize for posting this question on two groups. I did not know which one out of "XML" and "ADONET" groups, should I post this. I would like to create an xsd file out of an...
1
by: angela | last post by:
Hi I have two select statements, one pulling out the contacts and one pulling out the primary address of the contact (if there is one) And I would like to populate the dataset or rearrange a...
1
by: Luis Esteban Valencia | last post by:
Hello Everyone, Iam an intermediate ASP.Net programmer and iam facing a challenging task. I have a table in MS-SQL server database called 'Members'. The table has following fields... ...
6
by: enrique | last post by:
Hello, I simpy want to place a record ID into a session variable. I know how to create session variables, I'm just can't figure out the syntax for the record item when I'm working with a...
0
by: nospamthanks | last post by:
Hi, This is probably a very simple question, but it's held me up for the last hour or two: I have a simple xml document and schema - all I am doing for the moment is loading the xml into a...
0
by: Nathan Franklin | last post by:
Hello Guys, I have been trying to work this our for so long, but I just can't seem to find the answer. I am loading a datatable from a an access database using an oledbdataadapter. I then...
0
by: Mike Collins | last post by:
I am trying to export data from multiple tables in SQL Server to an XML file so I can then import it to another database. It seems to be working fine for exporting, but I am having trouble...
2
by: hemantpateria | last post by:
Difference between dataset, dataview, data grid
7
AHayes
by: AHayes | last post by:
I've been searching online for a while now with no luck, so I'll try the friendly folk here. _The Problem I have a dataset/dataview that's getting its data from an XML file (which we're using...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.