Group:  Microsoft Excel ยป microsoft.public.excel.querydao
Thread: Difference ADODB and OLEDB

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Difference ADODB and OLEDB
"Frank" <fasheldon[ at ]hotmail.com> 24.09.2006 17:31:11
Hi,

When programming in vb.net i always used the OLEDB class to connect to my
SQL database. eg. with something like:

Dim objConnection as New OleDbConnection( ConnectionString )

I noticed this does not work in Excel/VBA, here i used:
Set connection = New ADODB.Connection
connection.Open ConnectionString

My questions: #1 Whats the difference between OleDB and ADODB ?
#2 why do i need a set statement in VBA together with the Dim statement?

thanks,

Frank


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net