473,403 Members | 2,359 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,403 software developers and data experts.

Mapping oledb data to odbc target


Given: Data.oledb source, and a Data.odbc target

The oledb data is read into a dataset.

(1)

Is there an easy way to copy that dataset to the target datasource ( I
can look through the dataset and do INSERT statements, but is there a
single command to copy the data to a table ) ?

(2)

Is there a dataset object for odbc ?

(3)

Does .net have a native ado.net interface to as/400/db2 databases?

--

Go SeaHawks! Beat Saints!
Jul 21 '05 #1
1 1344
> Is there an easy way to copy that dataset to the target datasource ( I
can look through the dataset and do INSERT statements, but is there a
single command to copy the data to a table ) ?
If you're talking One Sql Statement ---
<--- You'll need to write the oneshot command as the actual database
underlying the ODBC provider could be god knows what. Even then very few
databases support the ability to persist everything from a datatable like
structure into tables - Sql Server does - XML DML

Now if you're looking for a one shot command as far as your C# code goes

Create a new DataTable,
DataTable.ImportRow (From the other datatable in a loop)
DataAdapter.Update(thisnewDatatable)

<--- remember the above will use COmmandBuilder to generate your Sql - so it
won't be pretty and won't work in every single case on the planet (i.e. if
there are PK's missing or weird joins ).

(2)

Is there a dataset object for odbc ? Yes, System.Data.DataSet is not for a provider, it's common all over.
(3)

Does .net have a native ado.net interface to as/400/db2 databases? .... I think for Db2 it does, but I really don't know :-/// !! But there are
many other ultra smart folks on this group who will know for sure. How 'bout
google? :)
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik


"Josef Schneider" <us*@cord.blah> wrote in message
news:34*************@individual.net...
Given: Data.oledb source, and a Data.odbc target

The oledb data is read into a dataset.

(1)

Is there an easy way to copy that dataset to the target datasource ( I
can look through the dataset and do INSERT statements, but is there a
single command to copy the data to a table ) ?

(2)

Is there a dataset object for odbc ?

(3)

Does .net have a native ado.net interface to as/400/db2 databases?

--

Go SeaHawks! Beat Saints!

Jul 21 '05 #2

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

Similar topics

12
by: Parking Meters | last post by:
Today I managed to get the OleDB provider to let me put datasets from an as400 using sql. Great, the provider string I used is: Provider=IBMDA400.DataSource.1;User ID=XXXXX;Password=XXXX;Data...
4
by: PeteZ | last post by:
I've come from a strong ODBC usage background (using DSN's on servers) and am wondering whether I should start recommending OLEDB or SQL data providers rather than ODBC It seems that ODBC...
8
by: Johan Goris | last post by:
I've made a small test program. I connect with oleDb (in fact sqlConnection ....etc) to a SQL-server. It works fine at home. But it did not work at another place, altough other simple C-sharp...
1
by: Me | last post by:
I need to build a tool to map data from various database schemas into a system I have built. I need to be able to allow the clients of my software to use a tool to map data in their database with...
1
by: Josef Schneider | last post by:
Given: Data.oledb source, and a Data.odbc target The oledb data is read into a dataset. (1) Is there an easy way to copy that dataset to the target datasource ( I can look through the...
3
by: Giuseppe D'Elia | last post by:
Hi there, I got a problem using an MS Access database through ASP.NET. After updating my system from .NET Framework 1.0 to 1.1, my existing application gives me the following error when...
2
by: ram_palavalasa | last post by:
Hi all, I have a assignment of vc++.net and sybase to populate data and generate reports which is the best one? is OLEDB more efficient than ODBC? i think OLEDB itself is a layer on the...
5
by: Jesse Albert | last post by:
Hiyo, I'm trying to import a CSV file into a datatable using either ODBC or OLEDB. One of the columns contains an IP Address. For some reason, the IP address will not display correctly. All of...
0
by: Randy | last post by:
Hi,all I met a strange problem, I connected to access database using oledb connection, connection string like "Provider=Microsoft.Jet.OLEDB.4.0; Data...
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: 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?
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
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,...
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
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...

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.