473,394 Members | 1,696 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.

Dataset -> XML -> Access .adp file

Good morning everyone,

Using C# I create a bog-standard System.Data.DataTable
which I then Add to a System.Data.Dataset.

I need to import that structure into an Access .adp file
so I have taken the approach of using XmlTextWriter to
create an xml file. This works just fine and the IDE can
certainly read it back and interpret it correctly. But
Access cannot. It tells me that it cannot create table
using the information contained in the document.

If someone knows the details could you please tell me what
I need to do to make this happen. Clearly the VS C#
implementation and Access are meant to be able to
communicate through this mechanism and it seems that I
have chosen wrong settings for some factor somewhere.

The code I used to write the file (this come more or les
directly from the Help on XML) is:

private void WriteSchema()
{
string fn = @"C:\InfoMan\InfoData\mySchema.xml";

System.IO.FileStream fs =
new System.IO.FileStream(
fn,System.IO.FileMode.Create );

System.Xml.XmlTextWriter xw =
new System.Xml.XmlTextWriter( fs,
System.Text.Encoding.Unicode );

_DataSet.WriteXmlSchema( xw );
xw.Close();
}

Thanks in advance for any advice you can give me,

Plumer

Nov 15 '05 #1
0 2054

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

Similar topics

0
by: Alex | last post by:
I found some good information On Saving a DataSet as an XML File at this site http://www.dedicatedsolutions.co.uk/DesktopDefault.aspx?tabid=62 It is worth the click
3
by: Maury | last post by:
Hi, I would like to persist a Dataset Table in an Access Table I have a Access Database and I saved the data in a XML file: string strSQL = "SELECT * FROM "+TableName; OleDbDataAdapter...
12
by: facicad | last post by:
Look my prog. I have combobox where is have all tables names of access file. The user select one table and the content is show in datagrid. The user can add, erase or modify some record or row. ...
5
by: John Nagle | last post by:
This, which is from a real web site, went into BeautifulSoup: <param name="movie" value="/images/offersBanners/sw04.swf?binfot=We offer fantastic rates for selected weeks or days!!&blinkt=Click...
2
by: Nupur | last post by:
Hi!!Can anyone tell me how to export data from database(or dataset) into a .CSV file using a C#.net windows application. Please someone reply soon
0
by: mnor07 | last post by:
Hello Everyone, I am trying to read/write from an Access Database (in Visual Basic). I have created the binding source, dataset, adapter and linked to my db. At this point I need to know...
1
by: markliam | last post by:
Is there a a quick way of appending a dataset to an XML file, or does the XML file need to be read into a new dataset and then re-saved with a new dataset containing both old/new data?
3
by: cmrhema | last post by:
Hi, I want to send reports using email. I am going to retrieve the results in a dataset. Thereafter I want to store it in a text file and this text file i want to send as an attachment to the...
3
by: Zabooster | last post by:
I have a project to submit in a few hours' time. In order to explain what I need clearly, I will provide a very simple example. Suppose I have an application consisting of 3 forms- The first has a...
4
rizwan6feb
by: rizwan6feb | last post by:
I am working on an application in VB.NET and MySql. I am getting a duplicate entry for key 1 error. My application goes through the following steps. 1. Populate my DataSet from the database. 2....
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:
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?
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
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
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...

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.