M
matt del vecchio
Hey all,
I'm at a new programming gig, and my team here likes to use the "IDb"
data objects instead of "Sql" data objects. Such as:
IDbCommand command = conn.CreateCommand();
...
IDbDataParameter param = command.CreateParameter();
...
IDbDataAdapter myDA = conn.CreateDataAdapter(command);
....Yet, we use a SQL Server 2000 db. When I asked why we do this, it
was explained that because this way--programming to the actual
interface instead of specific SqlClient classes--we can quickly swap
to another db engine and have no worries. If we had to.
Now, all the MS .NET books I've read have said that the
"System.Data.SqlClient" classes have been optimized for SQL Server db
use.
Does anyone know for a fact whether our using the "IDb" syntax is
hurting performance?
Thanks!
matt
I'm at a new programming gig, and my team here likes to use the "IDb"
data objects instead of "Sql" data objects. Such as:
IDbCommand command = conn.CreateCommand();
...
IDbDataParameter param = command.CreateParameter();
...
IDbDataAdapter myDA = conn.CreateDataAdapter(command);
....Yet, we use a SQL Server 2000 db. When I asked why we do this, it
was explained that because this way--programming to the actual
interface instead of specific SqlClient classes--we can quickly swap
to another db engine and have no worries. If we had to.
Now, all the MS .NET books I've read have said that the
"System.Data.SqlClient" classes have been optimized for SQL Server db
use.
Does anyone know for a fact whether our using the "IDb" syntax is
hurting performance?
Thanks!
matt