Site Search:
Sign in | Join | Help

Cannot open database "[db name]" requested by the login. The login failed.

Last post 05-28-2009 9:14 PM by sendow. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-28-2009 2:16 PM

    Cannot open database "[db name]" requested by the login. The login failed.

    So here is my issue, I have to use integrated security in the connection string for eConnect. Even though when doing so it uses the network login to try and log in to the db. Is there a way to work around this so that I can use the login that the user is using for GP? By saying "I have to use", I mean that eConnect does not let me use a username and password.
    Stanley

    I'm a programmer, not a DBA.

    Currently Using:      Currently Mastered:
    Microsoft GP 10       Wasting Time
    eConnect 10
    MS SQL 2k8
    Visual Studio 2k5
    VB.NET

    Twitter: @StanleyGlass
    • Post Points: 0
  • 05-28-2009 2:49 PM In reply to

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,315

    Re: Cannot open database "[db name]" requested by the login. The login failed.

    No, sorry. eConnect requires SSPI. There is now way to run eConnect trans as a Dynamics user that I know of.

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
  • 05-28-2009 3:37 PM In reply to

    Re: Cannot open database "[db name]" requested by the login. The login failed.

    So basically MS makes you go through all the user security in GP and then ignores it when you use eConnect. How does that actually make sense? So for every user that uses my applications I have to have our DBA set their domain account to have access to the db?
    Stanley

    I'm a programmer, not a DBA.

    Currently Using:      Currently Mastered:
    Microsoft GP 10       Wasting Time
    eConnect 10
    MS SQL 2k8
    Visual Studio 2k5
    VB.NET

    Twitter: @StanleyGlass
    • Post Points: 0
  • 05-28-2009 3:48 PM In reply to

    • Steve Gray
    • Top 10 Contributor
      Male
    • Joined on 01-10-2007
    • Bradenton, Florida
    • Guru
    • Points 2,315

    Re: Cannot open database "[db name]" requested by the login. The login failed.

    Personally, I almost always have the desktop application call a web service so that I don't have to be bothered with DCOM on every desktop. The web service connects as NETWORK SERVICE.

    If you want to use the desktop, you can create an Active Directory group and put all Dyn users in that group. Grant the group access to Dynamics.

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • Post Points: 0
  • 05-28-2009 3:51 PM In reply to

    Re: Cannot open database "[db name]" requested by the login. The login failed.

    Thanks Steve. I appreciate the responses. I will look into the web service route as I do not even want to think about having to see about a new group in AD right now.
    Stanley

    I'm a programmer, not a DBA.

    Currently Using:      Currently Mastered:
    Microsoft GP 10       Wasting Time
    eConnect 10
    MS SQL 2k8
    Visual Studio 2k5
    VB.NET

    Twitter: @StanleyGlass
    • Post Points: 0
  • 05-28-2009 9:14 PM In reply to

    • sendow
    • Top 10 Contributor
    • Joined on 03-04-2008
    • Los Angeles, CA
    • Guru
    • Points 245

    Re: Cannot open database "[db name]" requested by the login. The login failed.

     Hi Stanley,

    You do not need to give AD users access to the GP SQL Server, and it is very simple and easy to use a domain user and SSPI with eConnect with very little configuration.

    I would recommend reading the eConnect Install & Admin guide and following the installation and configuration steps carefully--it will walk you through the entire process of configuring DTC and COM+ and should only take a few minutes.

    eConnect uses MSDTC for its calls to the server, and you will configure the eConnect COM+ object to operate using a specific identity (a dedicated AD domain user that you create).  The end user's identity is ignored in during the eConnect call, and only the eConnect AD user is used.

     The only minor caveat is that MSDTC will need to be able to have bi-directional communication between the client and the server.  I've only had two clients where that has been an issue, and it was due to basic network configuration issues, so you will probably not have any issues.

    In case you do have issues, I have two blog posts about DTC troubleshooting:

    http://dynamicsgpland.blogspot.com/2009/04/more-than-i-ever-wanted-to-know-about.html

    http://dynamicsgpland.blogspot.com/2009/05/econnect-error-fail-to-invoke-remote.html

     

    Let me know if you have any questions.

    Steve Endow

     


    Steve Endow
    Microsoft Certified Trainer
    Filed under: , , ,
    • Post Points: 0
Page 1 of 1 (6 items)