473,471 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQLConnection vs. OLEDbConnection

Which is preferred or what is the difference? SQLConnection or
OLEDbConnection.

We are connecting to data in MSSQL2000 primarily through stored procedures.
Nov 21 '05 #1
4 9595
"Curtis" <cu****@synergyontheweb.com> schrieb:
Which is preferred or what is the difference? SQLConnection or
OLEDbConnection.


You will more likely get an answer here:

<URL:news://news.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:

<URL:http://msdn.microsoft.com/newsgroups....dotnet.framew
ork.adonet>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
The classes in the SqlClient Namespace have been specifically designed to
work with SQL Server 7 and up. There's a whole extra in those classes
(SqlConnection, SqlCommand, etc) specific to SQL Server which you won't find
in the classes under the OLEDb namespace (OLEDbConnection, OLEDbCommand,
etc). Also, various optmizations have been built into these classes keeping
SQL Server in mind which cannot be in the more generic OLEDb classes. You
should use the classes in the SqlClient namespace unless you have a good
reason not to. So I would suggest using SqlConnection for SQL Server 2000
and also using the remaining classes in the SqlClient namespace for data
access.
hope that helps..
Imran.

"Curtis" <cu****@synergyontheweb.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Which is preferred or what is the difference? SQLConnection or
OLEDbConnection.

We are connecting to data in MSSQL2000 primarily through stored
procedures.

Nov 21 '05 #3
hi.. I have recently just completed a project using entirely sqlxxx ado.net
command set ... however one customer has some Win98 system and sqlxxx
commands don't work .. have to take great pain to change all to OLEDBxxxx
...(not aware of any documentation mentioned about this....or i could have not
dig deep enough to find them..)
so my very own conclusion is SQLxxx is faster but OLEDBxxx is safer for
compatibility....

Albert

"Curtis" wrote:
Which is preferred or what is the difference? SQLConnection or
OLEDbConnection.

We are connecting to data in MSSQL2000 primarily through stored procedures.

Nov 21 '05 #4
Windows 98 is a supported platform for the classes in the SqlClient
namespace. Lookup the documentation for any of the classes and you should
see that. AFAIK, you need to make some changes with the Sql Server
configuration (or rather MSDE configuration since I don't think Sql Server
2000 runs on Windows 98) so as to get it to work correctly. Apart from that,
the classes should work fine.

hope that helps..
Imran.
"Albert" <Al****@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
hi.. I have recently just completed a project using entirely sqlxxx
ado.net
command set ... however one customer has some Win98 system and sqlxxx
commands don't work .. have to take great pain to change all to OLEDBxxxx
..(not aware of any documentation mentioned about this....or i could have
not
dig deep enough to find them..)
so my very own conclusion is SQLxxx is faster but OLEDBxxx is safer for
compatibility....

Albert

"Curtis" wrote:
Which is preferred or what is the difference? SQLConnection or
OLEDbConnection.

We are connecting to data in MSSQL2000 primarily through stored
procedures.

Nov 21 '05 #5

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

Similar topics

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
1
by: Tom Hartnett | last post by:
I just noticed that the SqlConnection class will not accept "file name=c:\SomeUDL.udl" as its connectionstring property. However, the OleDbConnection class will use it. Can anyone tell me why? ...
3
by: Stephen | last post by:
I'm experiencing a strange problem that has me baffled. I created a webservice with a webmethod that connects to a remote MS SQL Server. It works fine when connecting to one server (running SQL...
3
by: Ludvig | last post by:
This Exception is executed when using SQLConnection. OleDbConnection connects fine. System.EnterpriseServices.Platform.Initialize() +503...
3
by: Jon | last post by:
Hi, Can I use SQLconnection to connect to a Access DB File on my local drives? Thanks. Jon
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...
5
by: Familjen Kalrsson | last post by:
Hi I wounder if I can use Sqlconnection or other Sql members to work with a MS Access database. I have tried to connect to Access's database Northwind, but when I set the data source to...
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...
2
by: DaveL | last post by:
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=somedatabase;Data Source=mymachine i get the above connection string via a sql Table which relates to what...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.