Results 1 to 2 of 2
  1. #1
    knagap is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default Security Error while using SQL 2005

    Hello,
    I'm using SQL server 2005 through the java code to connect to my database.
    When i try to connect I see the following error:
    com.microsoft.sqlserver.jdbc.SQLServerException: The server principal "XXXX" is
    not able to access the database "YYYY" under the current security context.
    at com.microsoft.sqlserver.jdbc.SQLServerException.ma keFromDatabaseErro
    (Unknown Source)
    at com.microsoft.sqlserver.jdbc.IOBuffer.processPacke ts(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.se ndExecute(Unknown
    ource)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.do ExecuteQuery(Unkno
    n Source)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStat ement.executeQuery
    Unknown Source)

    Help me solving this.

    Thank you,
    Regards,
    Prakash

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Have you looked that error up?
    I'm sure the Microsoft site will have something on it.

Similar Threads

  1. Connect to SQL server 2005
    By comp in forum JDBC
    Replies: 1
    Last Post: 03-26-2009, 12:25 AM
  2. Replies: 1
    Last Post: 03-19-2009, 08:38 AM
  3. Replies: 4
    Last Post: 05-21-2008, 07:55 AM
  4. Replies: 1
    Last Post: 07-24-2007, 12:59 AM
  5. Tomcat with SQLSERVER 2005
    By bbq in forum JDBC
    Replies: 1
    Last Post: 07-05-2007, 05:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •