473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

difference between OleDBConnection and SqlConnection?

What is the difference between OleDBConnection and SqlConnection?
Or better expressed, what is OleDB?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Jul 21 '05 #1
7 12492
They are two different implementations of IDBConnection. SqlConnection is
the SqlServer implementation, OleDb was everything 'else' . That's been
minimized to some degree since the addition of the ODBC and Oracle libraries
in the 1.1 framework so OleDbConnection should probably be renamed to
PeopleWhoStillUseMSAccessConnection

The answer to your question though. Back in the old school days, a bunch of
VB programmers started whining b/c data access was too hard. So Microsoft
came out with ODBC which was an agreed upon spec that you could use to
access any database that complied with it. They still complained that it
was still to hard. So they came up with OleDB, the next version of
DataAccessForEveryone. From there things morphed into ADO and then more
recently ADO.NET. But basically it's just a spec that vendors can agree or
not agree to abide by, most have but some haven't.

Bill

--just joking about the VB Programmers, it's a running joke with a few
people that read this NG regularly.
"cody" <pl*************************@gmx.de> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
What is the difference between OleDBConnection and SqlConnection?
Or better expressed, what is OleDB?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jul 21 '05 #2
"cody" <pl*************************@gmx.de> wrote in
news:Oc**************@TK2MSFTNGP11.phx.gbl:
What is the difference between OleDBConnection and SqlConnection?
Or better expressed, what is OleDB?


Microsoft OLE DB Reference:

http://msdn.microsoft.com/library/en-
us/oledb/htm/dasdkoledboverview.asp

or

http://tinyurl.com/38olt
..NET Data Access Architecture Guide:

http://msdn.microsoft.com/library/de...l=/library/en-
us/dnbda/html/daag.asp

or

http://tinyurl.com/267s
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Jul 21 '05 #3
from what I read...

SqlConnection is solely used against mssql servers...
whereas OldDBConnection in general uses any ODBC compliant driver

"cody" <pl*************************@gmx.de> wrote in message
news:Oc**************@TK2MSFTNGP11.phx.gbl...
What is the difference between OleDBConnection and SqlConnection?
Or better expressed, what is OleDB?

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jul 21 '05 #4
> SqlConnection is solely used against mssql servers...
whereas OldDBConnection in general uses any ODBC compliant driver

so what is OdbcConnection good for if OleDBConnection does the same work?

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Jul 21 '05 #5
Cody, you can use any of the three on SqlServer for instance, just as you
can use the OracleDB, OleDb or Odbc for Oracle.

Since the maturation of the technologies spanned quite a time frame, many
vendors provided support for multiple specs. In general, many suggest that
you use as specific a provider as possible if you want to take full
advantage of the DB features.
"cody" <no****************@gmx.net> wrote in message
news:OY**************@TK2MSFTNGP09.phx.gbl...
SqlConnection is solely used against mssql servers...
whereas OldDBConnection in general uses any ODBC compliant driver

so what is OdbcConnection good for if OleDBConnection does the same work?

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk

Jul 21 '05 #6
> Cody, you can use any of the three on SqlServer for instance, just as you
can use the OracleDB, OleDb or Odbc for Oracle.

Since the maturation of the technologies spanned quite a time frame, many
vendors provided support for multiple specs. In general, many suggest that you use as specific a provider as possible if you want to take full
advantage of the DB features.

thank you!

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
Jul 21 '05 #7
On Wed, 5 May 2004 21:31:10 +0200, "cody" <pl*************************@gmx.de> wrote:

¤ What is the difference between OleDBConnection and SqlConnection?
¤ Or better expressed, what is OleDB?

OLEDB is based upon COM (Component Object Model) so ultimately the code that executes is unmanaged
(interop). System.Data.OleDb is simply a .NET managed namespace (wrapper) for the COM OLEDB
providers.

AFAIK, the System.Data.SqlClient namespace is a fully native .NET managed provider and is
recommended if you are using SQL Server.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ludvig | last post by:
This Exception is executed when using SQLConnection. OleDbConnection connects fine. System.EnterpriseServices.Platform.Initialize() +503...
4
by: Curtis | last post by:
Which is preferred or what is the difference? SQLConnection or OLEDbConnection. We are connecting to data in MSSQL2000 primarily through stored procedures.
2
by: neodev | last post by:
Hi I have 2 mode for open db 'Path DB Private Const pathDB As String = "C:\...\diabolik.mdb" 'for the ole db Private conn As New OleDbConnection 'for th sqlconnection Private connRS As...
7
by: cody | last post by:
What is the difference between OleDBConnection and SqlConnection? Or better expressed, what is OleDB? -- cody www.deutronium.de.vu || www.deutronium.tk
4
by: Mahesh Kumar.R | last post by:
What is the difference between SqlDataReader and IDataReader ...? kindly with small example... Mahesh~
1
by: Greg J | last post by:
What is the difference when using SQLConnection and SQLX classes or OleDbConection and OleDbXXX classes for database manipulation in multiuser (e.g. 100 users) environment? Can both handle...
1
by: jinfeng_Wang | last post by:
hi, I have a question about the difference between SqlConnection.IDisposable.Dispose() and SqlConnection.Dispose(). Both of them realize the function of releasing the connection to the...
1
by: JO | last post by:
hello, is there a difference in speed between OLEDBConnection and SQLConnection bye, ################################################################## bonjour, existe t'il une différence...
16
by: SyGC | last post by:
Hello, Im trying to connect to a MySQL DB on my home network (testing purposes) using the following VB.NET code; Imports System.Data.OleDb Private Sub Button3_Click(ByVal sender As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.