Re: can not open user default database?!

From: Brian Henry (brianiupmsdn_at_newsgroups.nospam)
Date: 08/16/04


Date: Mon, 16 Aug 2004 09:48:20 -0400

that fixed it, thanks

"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message
news:%23NbY9V5gEHA.2812@tk2msftngp13.phx.gbl...
> You'll get this error if the default database associated with the login is
> unavailable. Try specifying the desired default database for the login
> using sp_defaultdb:
>
> EXEC sp_defaultdb 'MyUser', 'MyDatabase'
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Brian Henry" <brianiupmsdn@newsgroups.nospam> wrote in message
> news:%23RzGsR5gEHA.216@tk2msftngp13.phx.gbl...
>> I'm lost now... I have a user set up as a db_owner for one of our
> databases,
>> the permissions all look correct and his machine keeps saying "can not
> open
>> user default database. login failed" in enterprise manager... what could
>> cause this and how do you fix it? thanks
>>
>>
>
>



Relevant Pages

  • Re: PDO: Switch database user without reopening connection
    ... At the bare minimum there will be a login user who only has ... modifications to the database as well (editors get update permission, ... As database connections are expensive to ... a certain visitor in the Session, and use that value to start the right ...
    (comp.lang.php)
  • Re: PDO: Switch database user without reopening connection
    ... At the bare minimum there will be a login user who only has ... the postgres user they are logged in as to one that can make ... modifications to the database as well (editors get update permission, ... As database connections are expensive to ...
    (comp.lang.php)
  • RE: How to allow users to change their password?
    ... be set up to provide the Security dialog window for password changes. ... I'll have to login using their login ... > name/password first. ... See http://www.QBuilt.com for all your database needs. ...
    (microsoft.public.access.security)
  • Re: Please! Doesnt anyone know a better way to do this?
    ... account, they need to automatically be directed to the page to enter data ... session variable on the Account page. ... I assume here that you're checking a database when the user attempts to ... When a new user attempts to login or clicks to register, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Enter user name, enter password, then press enter...
    ... What do you do when the customer asks that the database login in be the same ... username and password to use all of the stuff that she is permitted to use. ... I have implemented this type of security for Access, VB, and Web Based ASP ...
    (microsoft.public.access.forms)