• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Microsoft Developer Network
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
Microsoft Developer Network > Forums Home > Microsoft Visual Studio 2010 Beta 1 Forums > Visual Basic Language > sql 2005 error 18456 severity 14 state 16
Ask a questionAsk a question
Search Forums:
  • Search Visual Basic Language Forum Search Visual Basic Language Forum
  • Search All Microsoft Visual Studio 2010 Beta 1 Forums Search All Microsoft Visual Studio 2010 Beta 1 Forums
  • Search All MSDN Forums Search All MSDN Forums
 

Answersql 2005 error 18456 severity 14 state 16

  • Tuesday, June 12, 2007 2:12 AMdaimaku Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    hello i'm making a solution with visual basic.net 2005 using the sql server express 2005 that came in the visual studio 2005, i'm trying to use a sql database from the network, i have configured the server to receive remote conection using the tcp/ip protocol, i have granted all the acces to the user "copejunko" in the database and in the server configuration, but when i try to access the database from the client machi i have received this error message:

     

    cannot open database 'copejunko_data' requested by the login. the login failed. login failed for user 'copejunko'

     

    i have saw in the sql error log file and there is this error in all of the connections attempts

     

    2007-06-11 15:17:46.40 Logon       Error: 18456, Severity: 14, State: 16.
    2007-06-11 15:17:46.40 Logon       Login failed for user 'copejunko'. [CLIENT: 192.168.10.4]

     

    somebody can help me with this ? thank you in advance.

    • ReplyReply
    • QuoteQuote
     

Answers

  • Friday, June 15, 2007 7:56 AMBruno YuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    daimaku,

     

    1. This is a common question. "Error: 18456, Severity: 14, State: 16" indicates that the session database could not be determined which may mean that the database is offline or the user does not have permissions to access the database.  You can verify the name and location of the mdf file and make sure that the user has permissions to read and write the the file (C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\MusuemInventory.mdf). It is better to provide the connection strings in this kind of problem.

     

    2. SQL Server supports using multiple data and log files for a database and these files can be distributed in multiple file groups. This is not supported in the AttachDBFileName syntax. Also the network share, HTTP paths, or Universal Naming Conventional (UNC) remote databases are not supported.

     

    3. Enabling SQL Authentication. SQL Express supports Windows Authentication as well as SQL Server authentication. Maybe you mix up both in the connectionstring.

    • ReplyReply
    • QuoteQuote
     

All Replies

    Need Help with Forums? (FAQ)
     
    © 2009 Microsoft Corporation. All rights reserved.
    Terms of Use
    |
    Trademarks
    |
    Privacy Statement