aspose file tools*
The moose likes JDBC and the fly likes [Microsoft] [ODBC SQL Server Driver][SQL Server] cannot open database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "[Microsoft] [ODBC SQL Server Driver][SQL Server] cannot open database "bms" requested by the login. " Watch "[Microsoft] [ODBC SQL Server Driver][SQL Server] cannot open database "bms" requested by the login. " New topic
Author

[Microsoft] [ODBC SQL Server Driver][SQL Server] cannot open database "bms" requested by the login.

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

when I was deploying my app in one of the laptop my code throws an SQL Exception saying
this is the first time i m getting this exception can any one provide me help regarding the same?
thanks
when I tried to connect to a tempdb under system database it connected successfully but not connecting to any other database which I am creating
what is the problem ? do i need to install MSSQL 2005 again ?


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

so can you see the database using any other means?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19723
    
  20

Are you providing the right username and password? Because the message clearly says "login failed".


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Koen Aerts
Ranch Hand

Joined: Feb 07, 2012
Posts: 344

Are you using ODBC; did you set up a Data Source that the app can use to connect to the DB?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Microsoft] [ODBC SQL Server Driver][SQL Server] cannot open database "bms" requested by the login.