473,508 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQLConnection vs OLEDbConnection

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 connection pooling etc. or what might be the reason
when selecting from these two DB class categories?
Cheers!
Dec 28 '05 #1
1 3678
Greg,

If you are dealing with SQL Server, and you know you are, then you will
want to use the SQL classes. If you are dealing with another DB technology
that doesn't have a native provider, but an OLE DB provider, then use that.

IMO, you should only use the OLE DB provider when you have an OLE DB
provider for a database but no managed provider (like the classes in the
System.Data.SqlClient namespace).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Greg J" <gj@spam.mail.invalid.is> wrote in message
news:do**********@nyytiset.pp.htv.fi...
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 connection pooling etc. or what might be the reason
when selecting from these two DB class categories?
Cheers!

Dec 28 '05 #2

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

Similar topics

7
12504
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
8914
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
7906
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
1784
by: Ludvig | last post by:
This Exception is executed when using SQLConnection. OleDbConnection connects fine. System.EnterpriseServices.Platform.Initialize() +503...
4
9603
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.
3
5485
by: Jon | last post by:
Hi, Can I use SQLconnection to connect to a Access DB File on my local drives? Thanks. Jon
2
2069
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
7574
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
1722
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
1891
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
7125
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
7328
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,...
1
7049
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
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5055
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
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.