Re: ADO Connection problem when not logged in as an Admin
- From: "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
- Date: Thu, 3 Jan 2008 17:03:18 -0500
I never said that there was a difference between ODBC ADO and OLEDB ADO. In
fact, I don't understand what you mean by that.
ODBC is for DAO and OLEDB is for ADO. ADO doesn't understand ODBC drivers;
however, there is a special OLEDB driver (MSDASQL or Microsoft's OLEDB
Provider for ODBC) that can make the connection between ADO and an ODBC
driver but using this special driver (automatically called by ADO when using
an ODBC connection string) add another level of overhead.
If you use OLEDB than use an OLEDB provider in order to have the best
performance and if you are using SQL-Server 2005 than use its native driver
for the same reason.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"aedwards via AccessMonster.com" <u11653@uwe> wrote in message
news:7dac8ecb24af1@xxxxxx
Hey thanks for your help. I didn't know there was a difference between
ODBC
ADO and OLEDB ADO. I thought there was just ADO (which by default used
OLEDB)
I changed the connection string and it's working fine.
It doesn't explain (at least to me) why it was working for Administrators
and
not for non-admins, but what the hey, it works, so I'm not complaining.
Thanks again
Aaron
Sylvain Lafontaine wrote:
It's because you have made some errors in your connection string: USER and
PASSWORD are not valid parameters for the old ODBC SQL Server provider; so
I
suppose that ODBC is reverting back to using Integrated Security for
everyone.
Take a look at: http://www.connectionstrings.com/?carrier=sqlserver
In the case of SQL-Server 2005, you can also use the new native provider:
http://www.connectionstrings.com/?carrier=sqlserver2005
Finally, I don't understand why you want to still use an ODBC provider
when
using ADO objects. You should use OLEDB instead for a better performance
and using ODBC should be reserved to DAO.
Hi,[quoted text clipped - 16 lines]
Thanks.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200801/1
.
- References:
- ADO Connection problem when not logged in as an Admin
- From: aedwards via AccessMonster.com
- Re: ADO Connection problem when not logged in as an Admin
- From: Sylvain Lafontaine
- Re: ADO Connection problem when not logged in as an Admin
- From: aedwards via AccessMonster.com
- ADO Connection problem when not logged in as an Admin
- Prev by Date: Re: Code to find table dependencies of queries
- Next by Date: RE: Determining How Many Instances of an Application are Active
- Previous by thread: Re: ADO Connection problem when not logged in as an Admin
- Next by thread: Re: Apply Query Criteria in VBA
- Index(es):
Relevant Pages
|