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

Access database to XML

EMW
Hi

Is it possible to convert a MDB access database to a XML (sheet/something)?
I'm very new with XML, thus I don't know all its possibilities.
I'm writing a program for my PDA and since it is not possible to open the
CDB database with .NETCF, I'm looking for other possibilities then buying
3rd party (inthehand) software.

thanks,
Eric
Jul 21 '05 #1
4 1545
You can grab all of your tables in the Database and put them in a DataSet.
From there you can use DataSet.WriteXML("SomePath") to create an XML file,
and myDataSet.ReadXML("SomePath") to get it into a Dataset

If you look at my post here (mullahbill is my forum name)
http://forums.devbuzz.com/tm.asp?m=2...mode=1&smode=1 I show an
example of how to do this...

Remember though if you are new to PPC, that the filesystem is different...no
C:\ drives or such,

HTH,

Bill
"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
Hi

Is it possible to convert a MDB access database to a XML (sheet/something)? I'm very new with XML, thus I don't know all its possibilities.
I'm writing a program for my PDA and since it is not possible to open the
CDB database with .NETCF, I'm looking for other possibilities then buying
3rd party (inthehand) software.

thanks,
Eric

Jul 21 '05 #2
EMW
Thanks!

"William Ryan" <do********@comcast.nospam.net> schreef in bericht
news:uX**************@TK2MSFTNGP10.phx.gbl...
You can grab all of your tables in the Database and put them in a DataSet.
From there you can use DataSet.WriteXML("SomePath") to create an XML file,
and myDataSet.ReadXML("SomePath") to get it into a Dataset

If you look at my post here (mullahbill is my forum name)
http://forums.devbuzz.com/tm.asp?m=2...mode=1&smode=1 I show an
example of how to do this...

Remember though if you are new to PPC, that the filesystem is different...no C:\ drives or such,

HTH,

Bill
"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
Hi

Is it possible to convert a MDB access database to a XML

(sheet/something)?
I'm very new with XML, thus I don't know all its possibilities.
I'm writing a program for my PDA and since it is not possible to open the CDB database with .NETCF, I'm looking for other possibilities then buying 3rd party (inthehand) software.

thanks,
Eric


Jul 21 '05 #3
EMW
Ok, I read the thread, but I'm now puzzled.
With this methode I first make my query, then put it on the PDA and then
read it?

What I need to do is to create a list of records in which my PDA program
makes a search.
I.e. I work at a mobile communications firm and we have a few thousend sites
all over the country.
Each site has a 4 digit number and the user of my program enters this number
in the textbox.
Then he taps on "search" and he will get the address and some more info.

Right now it is done by a sql-query in a ADOCE connection object, but since
cdb is not supported in .NETCF,
I need some other way to do this.
I figured XML is the easiest???

So can I make an XML file of the database info (created from an EXCEL sheet)
and then make some kind of query inside this XML page?
Can I create a new XML sheet based on the original XML file with the
criteria for the seach?

I hope I'm not too much of a pain in the a.. ;)

rg,
Eric
"William Ryan" <do********@comcast.nospam.net> schreef in bericht
news:uX**************@TK2MSFTNGP10.phx.gbl...
You can grab all of your tables in the Database and put them in a DataSet.
From there you can use DataSet.WriteXML("SomePath") to create an XML file,
and myDataSet.ReadXML("SomePath") to get it into a Dataset

If you look at my post here (mullahbill is my forum name)
http://forums.devbuzz.com/tm.asp?m=2...mode=1&smode=1 I show an
example of how to do this...

Remember though if you are new to PPC, that the filesystem is different...no C:\ drives or such,

HTH,

Bill
"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
Hi

Is it possible to convert a MDB access database to a XML

(sheet/something)?
I'm very new with XML, thus I don't know all its possibilities.
I'm writing a program for my PDA and since it is not possible to open the CDB database with .NETCF, I'm looking for other possibilities then buying 3rd party (inthehand) software.

thanks,
Eric


Jul 21 '05 #4
You aren't a pain, no worries...

1) If you are used to standard queries, you cna use a product by Inthehand
that's an ADOCE wrapper. While I have not used it personally, I know many
that have and the reviews are universally that the product is excellent and
the guy that wrote it is very visible and well respected in the CF world.
2) You can also use SQL Server CE which is a great solution. If you search
on SQL Server CE there are a few good example out there, but Rob Tiffany
just came out with a new book on the subject...I just wrote a review on it
here http://www.devbuzz.com/content/books.asp and it's available at a 30%
discount.

3) If you want to use XML here's a basic strategy. The whole goal is to use
Data in a DataSet and the dataset doesn't care where it comes from (the
data). It can come from SQL Server, CE, a text file, an XML file etc. So,
on the desktop, you fire a query and build a dataset that has all the data
you need. Then, use DataSet.WriteXML("SomePath");

Then, copy via your method of choice the XML file to the PDA.

Once it's there, you declare a new dataset and call the ReadXML ie
myDataSet.ReadXML(@"\Storage Card\myData.xml");

Now that data is available on the PDA. I'd recommend making the dataset a
public property so you can acccess it throughout. you can add all you want
to it and then when you are done, write the new XML back to the storage
card, sync the file back to the desktop and use it to update your database.
It sounds much more complicated than it is.

You can also use the tables of the Dataset to create other objects like
Dataviews to facilitate searching and filtering....

HTH,

Bill
"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
Ok, I read the thread, but I'm now puzzled.
With this methode I first make my query, then put it on the PDA and then
read it?

What I need to do is to create a list of records in which my PDA program
makes a search.
I.e. I work at a mobile communications firm and we have a few thousend sites all over the country.
Each site has a 4 digit number and the user of my program enters this number in the textbox.
Then he taps on "search" and he will get the address and some more info.

Right now it is done by a sql-query in a ADOCE connection object, but since cdb is not supported in .NETCF,
I need some other way to do this.
I figured XML is the easiest???

So can I make an XML file of the database info (created from an EXCEL sheet) and then make some kind of query inside this XML page?
Can I create a new XML sheet based on the original XML file with the
criteria for the seach?

I hope I'm not too much of a pain in the a.. ;)

rg,
Eric
"William Ryan" <do********@comcast.nospam.net> schreef in bericht
news:uX**************@TK2MSFTNGP10.phx.gbl...
You can grab all of your tables in the Database and put them in a DataSet.
From there you can use DataSet.WriteXML("SomePath") to create an XML file, and myDataSet.ReadXML("SomePath") to get it into a Dataset

If you look at my post here (mullahbill is my forum name)
http://forums.devbuzz.com/tm.asp?m=2...mode=1&smode=1 I show an
example of how to do this...

Remember though if you are new to PPC, that the filesystem is

different...no
C:\ drives or such,

HTH,

Bill
"EMW" <so*****@microsoft.com> wrote in message
news:3f**********************@dreader2.news.tiscal i.nl...
Hi

Is it possible to convert a MDB access database to a XML

(sheet/something)?
I'm very new with XML, thus I don't know all its possibilities.
I'm writing a program for my PDA and since it is not possible to open

the CDB database with .NETCF, I'm looking for other possibilities then buying 3rd party (inthehand) software.

thanks,
Eric



Jul 21 '05 #5

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

Similar topics

3
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
11
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
49
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code,...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
11
by: Harel | last post by:
I have a report SQL which have been working for a few weeks. Its large and the target database is large. It has 59 join, and I dont think there is anything I can do about this, since the DB I use...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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
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.