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

XML to ODBC

I have an application that can be 'queried' by sending an http post, in
return I get an XML file.

I have another application that can only work with ODBC.

I am asked to write a 'bridge' between these two.

What would be the best way to achieve this?
Mar 14 '06 #1
11 5663
Hi philip:
You could achieve this using a DataSet.
a Dataset can read and write data and schema as XML documents.
then, depending on what is next use ado.net classes to continue working with
the dataset.
I access all my ODBC tables using ds
search the help for dataset class
good luck

"Philip Wagenaar" wrote:
I have an application that can be 'queried' by sending an http post, in
return I get an XML file.

I have another application that can only work with ODBC.

I am asked to write a 'bridge' between these two.

What would be the best way to achieve this?

Mar 14 '06 #2
How can an application access the DataSet through odbc?

"raulavi" wrote:
Hi philip:
You could achieve this using a DataSet.
a Dataset can read and write data and schema as XML documents.
then, depending on what is next use ado.net classes to continue working with
the dataset.
I access all my ODBC tables using ds
search the help for dataset class
good luck

"Philip Wagenaar" wrote:
I have an application that can be 'queried' by sending an http post, in
return I get an XML file.

I have another application that can only work with ODBC.

I am asked to write a 'bridge' between these two.

What would be the best way to achieve this?

Mar 14 '06 #3
I use a function where I pass my sql strint parameter and return the datatable
Public Function ReturnTbl(ByVal SQLParm As String) As DataTable
Dim cn As New OdbcConnection(CnString)
Dim da As New OdbcDataAdapter(SQLParm, cn)
Dim dt As New DataTable
Try
da.Fill(dt)
Catch ex As Odbc.OdbcException
'?? Throw New
DataException(MessageBox.Show(ex.ToString & vbLf & "", "DataBaseException "))
'User error msg
MsgBox(SQLParm _
& vbLf & vbLf & " " & ex.Message,
MsgBoxStyle.Critical, "SOSErr ")
Catch DBex As DataException
Throw New DataException("Unable to retrieve data")
End Try

Return dt

End Function
http://msdn.microsoft.com/library/de...xmldataset.asp
"Philip Wagenaar" wrote:
How can an application access the DataSet through odbc?

"raulavi" wrote:
Hi philip:
You could achieve this using a DataSet.
a Dataset can read and write data and schema as XML documents.
then, depending on what is next use ado.net classes to continue working with
the dataset.
I access all my ODBC tables using ds
search the help for dataset class
good luck

"Philip Wagenaar" wrote:
I have an application that can be 'queried' by sending an http post, in
return I get an XML file.

I have another application that can only work with ODBC.

I am asked to write a 'bridge' between these two.

What would be the best way to achieve this?

Mar 14 '06 #4
Thank you.

But the problem is not retrieving data through odbc in vb.net. The problem
is making data avalible to other applications through odbc.

"raulavi" wrote:
I use a function where I pass my sql strint parameter and return the datatable
Public Function ReturnTbl(ByVal SQLParm As String) As DataTable
Dim cn As New OdbcConnection(CnString)
Dim da As New OdbcDataAdapter(SQLParm, cn)
Dim dt As New DataTable
Try
da.Fill(dt)
Catch ex As Odbc.OdbcException
'?? Throw New
DataException(MessageBox.Show(ex.ToString & vbLf & "", "DataBaseException "))
'User error msg
MsgBox(SQLParm _
& vbLf & vbLf & " " & ex.Message,
MsgBoxStyle.Critical, "SOSErr ")
Catch DBex As DataException
Throw New DataException("Unable to retrieve data")
End Try

Return dt

End Function
http://msdn.microsoft.com/library/de...xmldataset.asp
"Philip Wagenaar" wrote:
How can an application access the DataSet through odbc?

"raulavi" wrote:
Hi philip:
You could achieve this using a DataSet.
a Dataset can read and write data and schema as XML documents.
then, depending on what is next use ado.net classes to continue working with
the dataset.
I access all my ODBC tables using ds
search the help for dataset class
good luck

"Philip Wagenaar" wrote:

> I have an application that can be 'queried' by sending an http post, in
> return I get an XML file.
>
> I have another application that can only work with ODBC.
>
> I am asked to write a 'bridge' between these two.
>
> What would be the best way to achieve this?

Mar 14 '06 #5
Hi Philip,

Thanks for your post!

For the current issue, as far as I know, there is no interface of XML which
can be accessed directly by using ODBC driver. If you want to use other
applications (no .NET application) to access the XML data source, I think
using XML SDK is a good way.

In addition, you can import the XML data to SQL server and use the ODBC to
access the SQL Server. Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 16 '06 #6
Yuan,

That indeed seems like the best option. I could use SQL Express 2005 for
this right? I mean I can redistribute this freely with my application?

""Yuan Ren[MSFT]"" wrote:
Hi Philip,

Thanks for your post!

For the current issue, as far as I know, there is no interface of XML which
can be accessed directly by using ODBC driver. If you want to use other
applications (no .NET application) to access the XML data source, I think
using XML SDK is a good way.

In addition, you can import the XML data to SQL server and use the ODBC to
access the SQL Server. Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 17 '06 #7
Hi Philip,

Thanks for your reply!

If you use the SQL express, I suggest you save the data as MDF file. And
then, the client will use it conveniently. If the client has the office
component, you can also use the Access. It is easy to use as the desktop
data base engine. Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 20 '06 #8
Hi Yuan,

Thanks for your reply!

Why do you suggest saving the database as a mdf file? What is against using
ODBC driver for SQL to connect to the database?

""Yuan Ren[MSFT]"" wrote:
Hi Philip,

Thanks for your reply!

If you use the SQL express, I suggest you save the data as MDF file. And
then, the client will use it conveniently. If the client has the office
component, you can also use the Access. It is easy to use as the desktop
data base engine. Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 20 '06 #9
Hi Philip,

Thanks for your reply!

I'm sorry maybe I have a little confusion about the current issue. I
thought you want to deploy the database to the client so that I suggested
you save the data base to the mdb file. If you deploy the data base to the
server, please use ODBC driver to connect the SQL data base freely. It's
OK. Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 21 '06 #10
I have several workstations throughout europe that will run an application.
This application can only connect to databases using ODBC connections wriiten
in plugins in vb6.

The data this application needs is inside several other systems throughout
europe that can be retrieved through xml requests to those applications.

My idea was to install SQL 2005 express on the workstations (localy). Then
write an application in VB.net that sends out the xml requests to the other
applications, receives/parses the data it gets back and places it in the SQL
2005 express database.

The application on the workstations can then locally connect to the SQL 2005
express database and query for the data its needs.

This is my task at hand.

What is the advantage in using mdf (ms access) files?
""Yuan Ren[MSFT]"" wrote:
Hi Philip,

Thanks for your reply!

I'm sorry maybe I have a little confusion about the current issue. I
thought you want to deploy the database to the client so that I suggested
you save the data base to the mdb file. If you deploy the data base to the
server, please use ODBC driver to connect the SQL data base freely. It's
OK. Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 21 '06 #11
Hi Philip,

Thank for your reply!

The solution seems OK. I think I have no additional comments about the
current issue. If you have any issues, please feel free to let me know.
It's my pleasure to be assistance.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Mar 21 '06 #12

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

Similar topics

0
by: Marco Aschwanden | last post by:
Hi - Win2000 - Python 2.3.3 - py2exe 0.5.0 - eGenix Comercial & Base Package I am developing an app using mxODBC. On the home page they say ...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
4
by: Roger Redford | last post by:
Dear Experts, I'm attempting to marry a system to an Oracle 817 datbase. Oracle is my specialty, the back end mainly, so I don't know much about java or javascript. The system uses javascript...
4
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
3
by: Lauren Quantrell | last post by:
Maybe a dumb question - I'm new to ODBC. How do I install an Access ..mde file on a user's workstation and create the ODBC connection to the backend SQL Server database without having to go through...
5
by: Alec | last post by:
Hi All, I am currently trying to link in Access 97 to a table in a MSSQL 7 server. Initially the link is fine, however, when I close the access database and re-open it from the same network...
2
by: Crazy Cat | last post by:
Hi all, I am having trouble getting linked Oracle 9 server in MS SQL Server 2005 Express to work properly. My machine is running Windows XP. The Microsoft and Oracle OLE DB Providers have...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...
0
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...

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.