473,811 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using XML and ADO.Net for Database creation with the Compact Framework

Hey all

Appologies for cross posting, but this post covers a few areas in one.

I'm fairly new to XML and my ideas are over reaching my grasp (as well
as possibly not fully understanding certain concepts). My basic
questions are:

1.
I want to create a database in SQLCE. I understand that a schema is used
for validation purposes (I think) but if a schema was created describing
a database table, could it be loaded with ADO.net and used to create
the table in SQLCE (all this, of course, occurring on a PDA)? At this
point, there would be no requirement for data.
Or would it be better to use a CREATE TABLE script and simply run it as
a query?

2.
The table would be of a generic design so that, for example, a total of
20 fields would exist but depending on user requirement not all of them
would be used. Would this kind of design then limit the effectiveness
of using XML files for data input/output?
Any input would be apprieciated.

Paul

Nov 11 '05 #1
1 1843
You can defintely script the tables and run them, altough I'm not sure of
the efficiency of that approach. Depends on how often you need to do this
in your app and if you persist the data or not.

I Regularly use XML to transfer data between a PDA and both SQL Server and
ORacle. There are many different approaches, but you can easily create a
DataSet, and use it's WriteXML method to write out an XML file. THen, you
can transfer raw XML to a PDA , declare a DataSet and then use the ReadXML
to recreate the DataSEt locally. You can use add new rows , delete them or
whatever else.

Here's an example I answered that may be of some help to you ...
http://forums.devbuzz.com/tm.asp?m=2...mode=&s=#25126

HTH,

Bill
"Paul" <Paul@Don'tChuf fingSpamMe.com> wrote in message
news:bm******** ***********@new s.demon.co.uk.. .
Hey all

Appologies for cross posting, but this post covers a few areas in one.

I'm fairly new to XML and my ideas are over reaching my grasp (as well
as possibly not fully understanding certain concepts). My basic
questions are:

1.
I want to create a database in SQLCE. I understand that a schema is used
for validation purposes (I think) but if a schema was created describing
a database table, could it be loaded with ADO.net and used to create
the table in SQLCE (all this, of course, occurring on a PDA)? At this
point, there would be no requirement for data.
Or would it be better to use a CREATE TABLE script and simply run it as
a query?

2.
The table would be of a generic design so that, for example, a total of
20 fields would exist but depending on user requirement not all of them
would be used. Would this kind of design then limit the effectiveness
of using XML files for data input/output?
Any input would be apprieciated.

Paul

Nov 11 '05 #2

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

Similar topics

3
2290
by: Michael Sparks | last post by:
Hi, I'm posting a link to this since I hope it's of interest to people here :) I've written up the talk I gave at ACCU Python UK on the Kamaelia Framework, and it's been published as a BBC R&D White Paper and is available here: * http://www.bbc.co.uk/rd/pubs/whp/whp113.shtml
0
2810
by: William Ryan | last post by:
If you download the code for MS Press Microsoft .NET Compact Framework by Wigley and Wheelwright in Chapter 11 there's code to handle this. If you haven't bought the book----TRUST ME, BUY IT. In particular the irDAListener class should do what you need. I can send you some of the code we used to accomplish this, but it's essentially what I learned in the book with some minor modifications. I'll be glad to forward you what I've...
3
1737
by: EMW | last post by:
How can I put everything that is in a datagrid into a SQL server database (which should be readable by an PocketPC program)? There is probably a simple solution for it, but as always it is difficult to find it in the jungle of MSDN. thanks! Eric
1
2256
by: den 2005 | last post by:
Hi Everybody, I am new at this group/forum. I am a .Net Programmer from Manila, Philippines. I like to ask anyone who can help me how to use mySQL database in programming Visual Studio .Net Smart Device Application (.Net Compact Framework). Specific question is it seems the System.Data namespace at this application does not have the ODBC or OleDB namespace classes/objects. It offers only for MS SQL CE. How can I go around this to be able...
7
20773
by: charliewest | last post by:
Using .Net CF, i have created a 2 dimension ArrayList, and "binded" this list to a ComboBox control using the "DataSource" property. I have set the DisplaySource and ValueMember properties as well. The control populates well, both the display values, and selected values. However, when i try to "set" the SelectedValue or SelectedIndex properties, nothing happens.... The default blank value in the ComboBox is always selected. My code is: ...
10
4582
by: jt | last post by:
The program works like this: There is a form with a button. When the form is loaded, a separate thread is started which is retreiving/updating data in the database every x seconds. When clicked on the button, data is retrieved from the database. This looks to work fine. However, sometimes after clicking on the butten to retrieve the data i got an error message (on the separate thread): "The connection is already Open"
1
8073
by: SammyBar | last post by:
Hi all, I'm having troubles with a Symbol 9000 device (Compact Framework v 1.1) when activating the barcode scanner from a window. The problem is related to the Activated event of the form which carries the task of the initializing the scanner. It looks like this event is not called after the creation of one of the forms. Let me describe shortly the sequence of form creation. The app first call a browsing form by using ShowDialog()....
10
2163
by: Neville Lang | last post by:
Hi all, Here is a problem I first struck a while back in the Compact Framework. I am now using the full Framework (v2.0) and wanted to know whether there is anyway around this issue without building separate shim code in another DLL. Here is the layout of the external C DLL function: int thisFunction( double a, int b, double* c)
10
2963
by: C# Beginner | last post by:
Hi there, I'm currently trying to create a MS access file at runtime, but I stumble into some problems. 1. When I use Datatype adUnsignedInt I get an error (invalid type). 2. Which datatype must I use to create an autonumbering field? 3. Which datatype must I use to create an OLE-object field? I'm currently using Microsoft ActiveX Data Objects Library 2.8 and using engine type 5.
0
9730
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10392
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9208
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.