Re: datetime type in SQL Server 2008

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"yqever" <yqever@xxxxxxx> wrote in message news:eDmnfQBQKHA.1268@xxxxxxxxxxxxxxxxxxxxxxx

SQL Server 2008
cmd = new OdbcCommand

<snip>

Seriously? You're using ODBC to connect to SQL Server 2008...?

Yes. What's wrong?

ODBC was superseded *thirteen* years ago by OleDb:
http://msdn.microsoft.com/en-us/library/ms810892.aspx
http://database.ittoolbox.com/documents/odbc-vs-oledb-18150

The very first version of the .NET Framework back in 2002 introduced native
..NET data providers to replace OleDb and didn't even include ODBC natively,
which was available as a separate add-on to support very old databases for
which there were no OleDb drivers.

These days, there are native .NET data providers for all major databases,
and these run rings round OleDb in terms of performance and manageability.

Generally speaking, there is no good reason for using ODBC if OleDb is
available, and no good reason for using OleDb if a native .NET data provider
is available.

Especially with SQL Server...
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.aspx


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

.



Relevant Pages

  • Re: Really want a answer, is there a mature way to access different data providers without performan
    ... I dll can support both SQL server and mysql, ... > You can use OleDB and ODBC also. ... > direct adapter as SqlClient. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: [Mail merge] Pb with a datasource from a remote server
    ... > still uses ODBC to connect to SQL Server databases, ... >>> Are you using OLEDB or ODBC to connect? ... >>> Are you using WIndows Integrated Security or SQL Server security? ... >>> Peter Jamieson ...
    (microsoft.public.word.mailmerge.fields)
  • Re: asychronous OLEDB
    ... to some personal assumption on how OLEDB works. ... About the ODBC, I have to look into it, but I have a full OLEDB ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.data.oledb)
  • Re: Components - SQL Server Compact Edition?
    ... or any components that work with OLEDB or ODBC. ... Vassiliev V. V. ... to connect to SQL Server 2005 Compact Edition? ...
    (borland.public.delphi.database.ado)
  • Re: Migrating to OLEDB
    ... Certainly OLE DB is extremely flexible and I certainly understand that the ... in making a decision to use OLE DB over ODBC for a "typical" application. ... I am presently grappling with problems with OLEDB in our own application (an ... request a Forward-Only, Static, Keyset Driven, or Dynamic cursor type ...
    (microsoft.public.data.odbc)