HighTechTalks DotNet Forums  

Should I use OleDb and non-typed DataSet for multi db vendor code?

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss Should I use OleDb and non-typed DataSet for multi db vendor code? in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
John A
 
Posts: n/a

Default Should I use OleDb and non-typed DataSet for multi db vendor code? - 08-06-2008 , 03:36 PM






Hi all I have an integration project that I recently built that uses SQL
Server exclusively as it's database. I have been asked to change it so that
it will also work with MySql and Oracle. I am thinking that a non-typed
DataSet and OleDb is the way to go.

Am I headed down the right path? Will this indeed work for me for multiple
vendors?

--
Thank you,
John

Reply With Quote
  #2  
Old   
Mary Chipman [MSFT]
 
Posts: n/a

Default Re: Should I use OleDb and non-typed DataSet for multi db vendor code? - 08-07-2008 , 11:51 AM






No. Use OracleClient for Oracle, SqlClient for SQLS, and whatever
provider works with MySql. There is no good end-to-end story for true
provider-independent code in ADO.NET. You will get halfway there, and
then hit the wall with data types, parameters and delimiters. It's
better to just plan your data logic around needing to branch for each
data source than to try to roll it up into one. At some point in the
future the Entity Framework will be the way to go for scenarios like
yours, but it's not quite there yet.

--Mary

On Wed, 6 Aug 2008 13:36:02 -0700, John A
<i-code4food (AT) newsgroups (DOT) nospam> wrote:

Quote:
Hi all I have an integration project that I recently built that uses SQL
Server exclusively as it's database. I have been asked to change it so that
it will also work with MySql and Oracle. I am thinking that a non-typed
DataSet and OleDb is the way to go.

Am I headed down the right path? Will this indeed work for me for multiple
vendors?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.