Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Questions on OleDBConnection vs SQLConnection
Message
From
06/08/2002 13:54:04
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Questions on OleDBConnection vs SQLConnection
Miscellaneous
Thread ID:
00686643
Message ID:
00686643
Views:
87
Hi, folks...

Two questions...

First, we recently learned that our app *may* need to support either SQL Server or Oracle. Up to this point, we've been using SQLCONNECTION, SQLADAPTER, and SQLCOMMAND in our data access component. Obviously (or at least I believe obviously), we could be more generic and use OLEDBCONNECTION, OLEDBADAPTER, and OLEDBCOMMAND instead. However, I've heard (2nd hand) that those commands are slower than the SQL command counterparts. Is this true?

If it is, then I have a 2nd question...we considered have a general CONNECTION method (and a general ADAPTER method and a general DBCOMMAND function), where we'd issue either a SQL... command or an OLEDB...command. However, it also occured to me that since these 'generic' functions need to return something (a connection handle, a reference to an adapter) that would be stronly typed, we'd need to go a step further...and that seems more complicated than necessary.

So has anyone tried to write generic methods to deal with this type of access (SQL vs non-SQL Server), and what approaches have they tried? (And if anyone has any URLs that cover this type of thing, that would also help)

Thanks,
Kevin
Next
Reply
Map
View

Click here to load this message in the networking platform