473,503 Members | 2,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting Dataset to Recordset

I have read Bill Vaughn's paper on this subject and I have one stumbling
block. Bill wrote his demo in VB.NET. He converts a DataTable to an XML
file. In VB.NET, he dimmed a recordset and used this syntax:

rs.Open(sPathToXMLfile)

When incorporating his code in my C# app, the ADODB.Recordset Open method
takes 5 arguments, all required. VB.NET arguments are, I assume, optional
since they are in square brackets.

The question is, what syntax is used to open an ADODB Recordset from an XML
file in C#?
--
Robert Hill
Senior Programmer/Analyst
Wake Forest Univ Baptist Med Ctr
Nov 16 '05 #1
2 3399
"Marathoner" <Ma********@discussions.microsoft.com> wrote in message news:<BD**********************************@microso ft.com>...
I have read Bill Vaughn's paper on this subject and I have one stumbling
block. Bill wrote his demo in VB.NET. He converts a DataTable to an XML
file. In VB.NET, he dimmed a recordset and used this syntax:

rs.Open(sPathToXMLfile)

When incorporating his code in my C# app, the ADODB.Recordset Open method
takes 5 arguments, all required. VB.NET arguments are, I assume, optional
since they are in square brackets.

The question is, what syntax is used to open an ADODB Recordset from an XML
file in C#?


Please go and have a look here <a
href="http://msmvps.com/gbvb/archive/2004/05/10/6178.aspx">Check
this</a>
Nov 16 '05 #2
Thank you for your response. This link was very informative but left me at
the same point as when I originally posted the question. I have an XML
recordset file created from a dataset. Now, how do I open a recordset with
this XML file in C#?

ADODB.Recodset.Open(sXMLfileName); does not work.

A VB6 application is going to consume this recordset.

Robert

"Gaspode" wrote:
"Marathoner" <Ma********@discussions.microsoft.com> wrote in message news:<BD**********************************@microso ft.com>...
I have read Bill Vaughn's paper on this subject and I have one stumbling
block. Bill wrote his demo in VB.NET. He converts a DataTable to an XML
file. In VB.NET, he dimmed a recordset and used this syntax:

rs.Open(sPathToXMLfile)

When incorporating his code in my C# app, the ADODB.Recordset Open method
takes 5 arguments, all required. VB.NET arguments are, I assume, optional
since they are in square brackets.

The question is, what syntax is used to open an ADODB Recordset from an XML
file in C#?


Please go and have a look here <a
href="http://msmvps.com/gbvb/archive/2004/05/10/6178.aspx">Check
this</a>

Nov 16 '05 #3

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

Similar topics

19
9288
by: Adam Short | last post by:
I am trying to write a routine that will connect a .NET server with a classic ASP server. I know the following code doesn't work! The data is being returned as a dataset, however ASP does not...
2
4917
by: Ed Staffin | last post by:
Hi, I have a need to conver the xml produced by a .net dataset (with a single table) into an adodb.recordset. The adodb.recordset doesn't understand the xml that the dataset.GetXml method...
0
1242
by: Ed Anady | last post by:
Using the method described in Microsofts Knowledge Base article http://support.microsoft.com/default.aspx?scid=kb;en-us;316337 to convert an XML file created by a DataSet into an XML file read by...
0
10222
by: Thaddeus | last post by:
//Author: //Thaddeus Jacobs, MCP //Kinematic Automation, Inc. //mailto:tjacobs@kinematic.com // //Description: //convert ADO .NET dataset to ADO 2.5 2.6 2.7 recordset and v/v //DataSet to...
5
2594
by: Prasad | last post by:
Hi I have a legacy DLL, that has functions which accept and return type "Variant" I want to use that DLL in .NET. I am able to use functions well that return variants but that return common data...
2
1713
by: Patreek | last post by:
Hi, I'm writing my first real asp.net app at my job, and I'd like opinions please. In my classic ASP apps that I've written, I'd often have separate files for retreiving data and returning the...
36
4413
by: kjvt | last post by:
Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a...
6
10802
by: James | last post by:
I am writing a web service for a classic ASP application. I need to consume an ADO recordset and then send it to another web service for processing. I found an MSDN ariticle telling how to do this...
0
7204
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
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6998
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
7464
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...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4680
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...
0
3171
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...
0
1516
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 ...
1
741
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.