PC Review


Reply
Thread Tools Rate Thread

ADO connect not using UID in connect string

 
 
=?Utf-8?B?Um9iZXJ0?=
Guest
Posts: n/a
 
      18th Feb 2005
I have the following connect string for an ado open:
Driver={Microsoft Access Driver (*.mdb)};Dbq=my.mdb;Uid=robert;Pwd=xyz;
When I try to execute the open it says there are no read permissions. I
have given read permissions to everthing except user Admin. User admin has
no permissions. How can I get the ADO to use the user in the connect string?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?c21rMjM=?=
Guest
Posts: n/a
 
      20th Feb 2005
Try this connection string. It eliminates the need for UID and PWD in the
string:

Conn="Provider=sqloledb;Data Source=YourServer;Initial
catalog=YourDBName;Integrated Security=SSPI;"

HTH,
Sam

"Robert" wrote:

> I have the following connect string for an ado open:
> Driver={Microsoft Access Driver (*.mdb)};Dbq=my.mdb;Uid=robert;Pwd=xyz;
> When I try to execute the open it says there are no read permissions. I
> have given read permissions to everthing except user Admin. User admin has
> no permissions. How can I get the ADO to use the user in the connect string?
>

 
Reply With Quote
 
=?Utf-8?B?Um9iZXJ0?=
Guest
Posts: n/a
 
      21st Feb 2005
I want to use UID and PWD because I do not want user admin (the default) to
have access.

"smk23" wrote:

> Try this connection string. It eliminates the need for UID and PWD in the
> string:
>
> Conn="Provider=sqloledb;Data Source=YourServer;Initial
> catalog=YourDBName;Integrated Security=SSPI;"
>
> HTH,
> Sam
>
> "Robert" wrote:
>
> > I have the following connect string for an ado open:
> > Driver={Microsoft Access Driver (*.mdb)};Dbq=my.mdb;Uid=robert;Pwd=xyz;
> > When I try to execute the open it says there are no read permissions. I
> > have given read permissions to everthing except user Admin. User admin has
> > no permissions. How can I get the ADO to use the user in the connect string?
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO Connect string =?Utf-8?B?Um9zY28=?= Microsoft Access 3 8th Apr 2005 01:03 PM
This code hangs on connect() if connect hangs. how to make this so that if connect hangs i time out after 10 seconds. perhaps there is someway to do this with ioctlsocket and select? can anyone show how to do this? Daniel Microsoft Windows 2000 Networking 0 15th Feb 2005 01:37 AM
Need Help With Connect String =?Utf-8?B?Sm9obiBMYW5l?= Microsoft Access VBA Modules 2 27th Oct 2004 10:51 AM
Shared Sub Connect(server As [String], message As [String]) ? Emilio Microsoft VB .NET 4 6th Oct 2004 11:36 AM
Re: Connect string Ken Tucker [MVP] Microsoft VB .NET 0 14th Jul 2004 02:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:40 AM.