PC Review


Reply
Thread Tools Rate Thread

ADO connect string ignoring UID & PWD

 
 
=?Utf-8?B?Um9iZXJ0?=
Guest
Posts: n/a
 
      23rd Feb 2005
When I use a ado connect string it ignors the UID and PWD in the connect
string and uses the user admin. How can I get the ADO connection to use the
user name and password I have specified in the connect string?
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      23rd Feb 2005
i tried to build connection string using udl file, and it looks like:

Provider=Microsoft.Jet.OLEDB.4.0;Password=MyPass;User ID=MyUSer;Data
Source=C:\db1.mdb;Persist Security Info=True


--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com



"Robert" <(E-Mail Removed)> wrote in message
news:526068B4-830B-429E-8D35-(E-Mail Removed)...
> When I use a ado connect string it ignors the UID and PWD in the connect
> string and uses the user admin. How can I get the ADO connection to use
> the
> user name and password I have specified in the connect string?



 
Reply With Quote
 
=?Utf-8?B?Um9iZXJ0?=
Guest
Posts: n/a
 
      23rd Feb 2005
When I use this connect string it gives me an error message that the
workgroup file is missing or opened exclusive.

"Alex Dybenko" wrote:

> i tried to build connection string using udl file, and it looks like:
>
> Provider=Microsoft.Jet.OLEDB.4.0;Password=MyPass;User ID=MyUSer;Data
> Source=C:\db1.mdb;Persist Security Info=True
>
>
> --
> Alex Dybenko (MVP)
> http://Alex.Dybenko.com
> http://www.PointLtd.com
>
>
>
> "Robert" <(E-Mail Removed)> wrote in message
> news:526068B4-830B-429E-8D35-(E-Mail Removed)...
> > When I use a ado connect string it ignors the UID and PWD in the connect
> > string and uses the user admin. How can I get the ADO connection to use
> > the
> > user name and password I have specified in the connect string?

>
>
>

 
Reply With Quote
 
Brendan Reynolds
Guest
Posts: n/a
 
      23rd Feb 2005
Here's a link to a recent thread on the same subject in the Google archive
....
http://groups-beta.google.com/group/...403c1597f3b0c7

--
Brendan Reynolds (MVP)


"Robert" <(E-Mail Removed)> wrote in message
news:1731AA2B-5CF5-482F-8385-(E-Mail Removed)...
> When I use this connect string it gives me an error message that the
> workgroup file is missing or opened exclusive.
>
> "Alex Dybenko" wrote:
>
>> i tried to build connection string using udl file, and it looks like:
>>
>> Provider=Microsoft.Jet.OLEDB.4.0;Password=MyPass;User ID=MyUSer;Data
>> Source=C:\db1.mdb;Persist Security Info=True
>>
>>
>> --
>> Alex Dybenko (MVP)
>> http://Alex.Dybenko.com
>> http://www.PointLtd.com
>>
>>
>>
>> "Robert" <(E-Mail Removed)> wrote in message
>> news:526068B4-830B-429E-8D35-(E-Mail Removed)...
>> > When I use a ado connect string it ignors the UID and PWD in the
>> > connect
>> > string and uses the user admin. How can I get the ADO connection to
>> > use
>> > the
>> > user name and password I have specified in the connect string?

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Um9iZXJ0?=
Guest
Posts: n/a
 
      24th Feb 2005
Using the information at this link does indeed open and read the table
information. However I have not given any permissions for the user. This
still ignors the security settings. I need to connect and have the
connection use the security setting set up in the database thats opening.
How can this be accomplished?



"Brendan Reynolds" wrote:

> Here's a link to a recent thread on the same subject in the Google archive
> ....
> http://groups-beta.google.com/group/...403c1597f3b0c7
>
> --
> Brendan Reynolds (MVP)
>
>
> "Robert" <(E-Mail Removed)> wrote in message
> news:1731AA2B-5CF5-482F-8385-(E-Mail Removed)...
> > When I use this connect string it gives me an error message that the
> > workgroup file is missing or opened exclusive.
> >
> > "Alex Dybenko" wrote:
> >
> >> i tried to build connection string using udl file, and it looks like:
> >>
> >> Provider=Microsoft.Jet.OLEDB.4.0;Password=MyPass;User ID=MyUSer;Data
> >> Source=C:\db1.mdb;Persist Security Info=True
> >>
> >>
> >> --
> >> Alex Dybenko (MVP)
> >> http://Alex.Dybenko.com
> >> http://www.PointLtd.com
> >>
> >>
> >>
> >> "Robert" <(E-Mail Removed)> wrote in message
> >> news:526068B4-830B-429E-8D35-(E-Mail Removed)...
> >> > When I use a ado connect string it ignors the UID and PWD in the
> >> > connect
> >> > string and uses the user admin. How can I get the ADO connection to
> >> > use
> >> > the
> >> > user name and password I have specified in the connect string?
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Brendan Reynolds
Guest
Posts: n/a
 
      24th Feb 2005
My guess, for whatever that may be worth, would be that if the user doesn't
have explicit permission on the table, the user probably has implicit
permission through membership of a group that has such permission. But I'm
not the best person to answer security questions. If no one else responds
here, try asking in microsoft.public.access.security

--
Brendan Reynolds (MVP)

"Robert" <(E-Mail Removed)> wrote in message
news:5E4FE6F4-E7D2-4D19-871D-(E-Mail Removed)...
> Using the information at this link does indeed open and read the table
> information. However I have not given any permissions for the user. This
> still ignors the security settings. I need to connect and have the
> connection use the security setting set up in the database thats opening.
> How can this be accomplished?
>
>
>
> "Brendan Reynolds" wrote:
>
>> Here's a link to a recent thread on the same subject in the Google
>> archive
>> ....
>> http://groups-beta.google.com/group/...403c1597f3b0c7
>>
>> --
>> Brendan Reynolds (MVP)
>>
>>
>> "Robert" <(E-Mail Removed)> wrote in message
>> news:1731AA2B-5CF5-482F-8385-(E-Mail Removed)...
>> > When I use this connect string it gives me an error message that the
>> > workgroup file is missing or opened exclusive.
>> >
>> > "Alex Dybenko" wrote:
>> >
>> >> i tried to build connection string using udl file, and it looks like:
>> >>
>> >> Provider=Microsoft.Jet.OLEDB.4.0;Password=MyPass;User ID=MyUSer;Data
>> >> Source=C:\db1.mdb;Persist Security Info=True
>> >>
>> >>
>> >> --
>> >> Alex Dybenko (MVP)
>> >> http://Alex.Dybenko.com
>> >> http://www.PointLtd.com
>> >>
>> >>
>> >>
>> >> "Robert" <(E-Mail Removed)> wrote in message
>> >> news:526068B4-830B-429E-8D35-(E-Mail Removed)...
>> >> > When I use a ado connect string it ignors the UID and PWD in the
>> >> > connect
>> >> > string and uses the user admin. How can I get the ADO connection to
>> >> > use
>> >> > the
>> >> > user name and password I have specified in the connect string?
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
Alex Dybenko
Guest
Posts: n/a
 
      24th Feb 2005
Robert,
if you log into access with same user of connection string - do it have
persmission to this table?
do you use same system.mdw in both cases?

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com


"Robert" <(E-Mail Removed)> wrote in message
news:5E4FE6F4-E7D2-4D19-871D-(E-Mail Removed)...
> Using the information at this link does indeed open and read the table
> information. However I have not given any permissions for the user. This
> still ignors the security settings. I need to connect and have the
> connection use the security setting set up in the database thats opening.
> How can this be accomplished?
>
>
>
> "Brendan Reynolds" wrote:
>
>> Here's a link to a recent thread on the same subject in the Google
>> archive
>> ....
>> http://groups-beta.google.com/group/...403c1597f3b0c7
>>
>> --
>> Brendan Reynolds (MVP)
>>
>>
>> "Robert" <(E-Mail Removed)> wrote in message
>> news:1731AA2B-5CF5-482F-8385-(E-Mail Removed)...
>> > When I use this connect string it gives me an error message that the
>> > workgroup file is missing or opened exclusive.
>> >
>> > "Alex Dybenko" wrote:
>> >
>> >> i tried to build connection string using udl file, and it looks like:
>> >>
>> >> Provider=Microsoft.Jet.OLEDB.4.0;Password=MyPass;User ID=MyUSer;Data
>> >> Source=C:\db1.mdb;Persist Security Info=True
>> >>
>> >>
>> >> --
>> >> Alex Dybenko (MVP)
>> >> http://Alex.Dybenko.com
>> >> http://www.PointLtd.com
>> >>
>> >>
>> >>
>> >> "Robert" <(E-Mail Removed)> wrote in message
>> >> news:526068B4-830B-429E-8D35-(E-Mail Removed)...
>> >> > When I use a ado connect string it ignors the UID and PWD in the
>> >> > connect
>> >> > string and uses the user admin. How can I get the ADO connection to
>> >> > use
>> >> > the
>> >> > user name and password I have specified in the connect string?
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Um9iZXJ0?=
Guest
Posts: n/a
 
      24th Feb 2005
You are correct. When I took the group permissions for this user off it
denied the user access. Thankk you very much.

"Brendan Reynolds" wrote:

> My guess, for whatever that may be worth, would be that if the user doesn't
> have explicit permission on the table, the user probably has implicit
> permission through membership of a group that has such permission. But I'm
> not the best person to answer security questions. If no one else responds
> here, try asking in microsoft.public.access.security
>
> --
> Brendan Reynolds (MVP)
>
> "Robert" <(E-Mail Removed)> wrote in message
> news:5E4FE6F4-E7D2-4D19-871D-(E-Mail Removed)...
> > Using the information at this link does indeed open and read the table
> > information. However I have not given any permissions for the user. This
> > still ignors the security settings. I need to connect and have the
> > connection use the security setting set up in the database thats opening.
> > How can this be accomplished?
> >
> >
> >
> > "Brendan Reynolds" wrote:
> >
> >> Here's a link to a recent thread on the same subject in the Google
> >> archive
> >> ....
> >> http://groups-beta.google.com/group/...403c1597f3b0c7
> >>
> >> --
> >> Brendan Reynolds (MVP)
> >>
> >>
> >> "Robert" <(E-Mail Removed)> wrote in message
> >> news:1731AA2B-5CF5-482F-8385-(E-Mail Removed)...
> >> > When I use this connect string it gives me an error message that the
> >> > workgroup file is missing or opened exclusive.
> >> >
> >> > "Alex Dybenko" wrote:
> >> >
> >> >> i tried to build connection string using udl file, and it looks like:
> >> >>
> >> >> Provider=Microsoft.Jet.OLEDB.4.0;Password=MyPass;User ID=MyUSer;Data
> >> >> Source=C:\db1.mdb;Persist Security Info=True
> >> >>
> >> >>
> >> >> --
> >> >> Alex Dybenko (MVP)
> >> >> http://Alex.Dybenko.com
> >> >> http://www.PointLtd.com
> >> >>
> >> >>
> >> >>
> >> >> "Robert" <(E-Mail Removed)> wrote in message
> >> >> news:526068B4-830B-429E-8D35-(E-Mail Removed)...
> >> >> > When I use a ado connect string it ignors the UID and PWD in the
> >> >> > connect
> >> >> > string and uses the user admin. How can I get the ADO connection to
> >> >> > use
> >> >> > the
> >> >> > user name and password I have specified 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
Ignoring Empty String while serialization =?Utf-8?B?UmFlZCBTYXdhbGhh?= Microsoft C# .NET 1 5th Apr 2005 02:07 PM
Shared Sub Connect(server As [String], message As [String]) ? Emilio Microsoft VB .NET 4 6th Oct 2004 11:36 AM
Namespace Ignoring Empty String Values (URGENT) scorpion53061 Microsoft Dot NET Framework 2 4th Jul 2004 02:53 PM
Re: Namespace Ignoring Empty String Values (URGENT) scorpion53061 Microsoft VB .NET 0 4th Jul 2004 02:53 PM
Compare string contents ignoring order Ted Collins Microsoft Access 24 13th Nov 2003 05:02 PM


Features
 

Advertising
 

Newsgroups
 


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