Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot open database "<dbname>" requested by the login. The login failed.

 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am struggling to find the reason for ClassNotFoundException at the line :





The class path already has sqljdbc.jar which includes the class "com.microsoft.sqlserver.jdbc.SQLServerDriver"

Can any body tell me how to fix this.

Thanks

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"seenuFour cnu", please check your private messages for an important administrative matter.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read your private messages again.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I didn't realise you had warned him so recently, Bear. Sorry.
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anybody out there who can help me resolve this....
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srinivas mc wrote:Can any body tell me how to fix this.


Can you post the stack trace here?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your classpath? Can you verify that it doesn't contain a typo?
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies guys ,

I am getting a different SQL Exception now.



The userID/pwd work fine, as am able to login using SQL Express interface.


Is this a database admin issue ?

Thanks

Srinivas
 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How comes you get a different error now? Did you change something?

The userID/pwd work fine, as am able to login using SQL Express interface.


Is this a database admin issue ?
Probably.

Do you try to use NT security to connect to the database?
Ff yes, first try if you can connect to the database using SqlServer security.
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was using a wrong database name.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic