Bassam Gamal
Bassam Gamal

Reputation: 701

Design a generic interface to connect to variety of database types

I need to create a service that would be able to

Upvotes: 1

Views: 1093

Answers (1)

Guigui
Guigui

Reputation: 1115

Depending on which database you are connecting you should use different API. For Sql Server, juste use the SQLConnection with SQL Adapter. It is the fastest for SQL Server. I have never used ODP.Net but as it is developped by Oracle I would use this one for querying Oracle Database.

ODBC and OLEdb both adds a layer that is going to slow your queries. So use as much "specialized" connectors to your database. This will be more efficient.

Upvotes: 1

Related Questions