SQL Server 2008 R2: Failed to open the explicitly specified database

Answered SQL Server 2008 R2: Failed to open the explicitly specified database

  • Monday, April 30, 2012 9:44 PM
     
     

    I am trying to install WS_FTP Server using a remote Microsoft SQL database. We have a server at Rackspace setup to be a secure FTP server, and another server at Rackspace provisioned as a Microsoft SQL server running Windows 2008 R2 running the latest and the greatest.

    During installation of WS_FTP Server, I am prompted to enter in a Server\Instance, Port (1433), Database username, and Password. For Server\Instance, I just enter in the hostname of the server (i.e. SRV-SFTP). Port is already automatically filled. I created a user 'wsftp1' under SRV-SQL1 (SQL Server 10.50.2500 - COMPANY\AdminAccount)\Security\Logins in Microsoft SQL Server Management Studio. I also created a database under SRV-SQL1 (SQL Server 10.50.2500 - COMPANY\Databases called 'wsftp1'. When I created this database, I made user 'wsftp1' the Owner.

    When I run through the WS_FTP Server installation (when it actually copies files, configures, writes registry keys, creates services, starts up, etcetera) I encounter a bunch of errors, identical to the ones at http://forums.ipswitch.com/Topic46458-8-1.aspx (year 2008, version 6). I am using the latest version 7.5 for WS_FTP Server.

    I look in the SRV-SQL1 (SQL Server 10.50.2500 - COMPANY\Management\SQL Server Logs\Current - 4/30/2012 3:05:00 PM log file, and it has a half a dozen pairs of errors.

    The first error is:
    Date  4/30/2012 3:59:35 PM
    Log  SQL Server (Current - 4/30/2012 3:33:00 PM)

    Source  Logon

    Message
    Error: 18456, Severity: 14, State: 38.

    The second error is:
    Date  4/30/2012 3:59:35 PM
    Log  SQL Server (Current - 4/30/2012 3:33:00 PM)

    Source  Logon

    Message
    Login failed for user 'wsftp1'. Reason: Failed to open the explicitly specified database. [CLIENT: xxx.xxx.xxx.xxx]

    I don't know what to do. :( I have spent an hour or so just doing hard Googling without finding a distinct solution (mostly because I lack Microsoft SQL experience and knowledge). Would this be PostgreSQL or MySQL, I would know what to do (because I have almost a decade of deep experience in the webhosting industry and running my own company).

    EDIT: Unmentioned detail -- I also set the default database to 'wsftp1' for the user 'wsftp1'

    • Edited by hlrse Monday, April 30, 2012 9:45 PM
    •  

All Replies