Results 1 to 2 of 2
- 11-23-2010, 11:21 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
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
- 11-23-2010, 01:58 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Connect to SQL server 2005
By comp in forum JDBCReplies: 1Last Post: 03-25-2009, 11:25 PM -
java error encountered while entering data in the database.security.accessControlexce
By shallz in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 03-19-2009, 07:38 AM -
Having problem in connecting with SQL Server 2005
By rmaadil in forum JDBCReplies: 4Last Post: 05-21-2008, 06:55 AM -
difference between code based security and role based security
By boy22 in forum New To JavaReplies: 1Last Post: 07-23-2007, 11:59 PM -
Tomcat with SQLSERVER 2005
By bbq in forum JDBCReplies: 1Last Post: 07-05-2007, 04:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks