Answered by:
ODBC connection failed (SQL Server Native Client)

Question
-
Dear ..
I tried to connect to ODBC with SQL Server Native Client 11.0.
It successfully connected in SQL mgmt studio : (LocalDB)\AAA
but when I tried to connect to ODBC, it's failed like below..
[Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'KKIKKI\Jinsu'.
[Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot open database "MAPDB" requested by the login. The login failed.test failed.
How to initialize all of my SQL Native Client and ODBC configuration?
I tried to remove all SQL application, but it's same situation.. Please help..
jinsu
Monday, October 20, 2014 9:15 AM
Answers
-
The error seems to point out that you have a database parameter set in your connection string (MAPDB) which is probably not existent on the server. Please login to the server with the login mentioned using SSMS and verify whether the DB (MAPDB) exists or not and that the specified login has access.
- Marked as answer by kkikkiKim Monday, October 20, 2014 10:41 AM
Monday, October 20, 2014 9:53 AM -
I created MAPDB database manually, then successfully connected betwenn ODBC and Native Client.
Thank you
jinsu
- Proposed as answer by Wendy Fu Monday, November 10, 2014 11:56 AM
- Marked as answer by Simon_HouMicrosoft contingent staff Monday, November 10, 2014 1:20 PM
Monday, October 20, 2014 10:42 AM
All replies
-
https://www.connectionstrings.com/sql-server-native-client-11-0-odbc-driver/
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blogMonday, October 20, 2014 9:52 AM -
The error seems to point out that you have a database parameter set in your connection string (MAPDB) which is probably not existent on the server. Please login to the server with the login mentioned using SSMS and verify whether the DB (MAPDB) exists or not and that the specified login has access.
- Marked as answer by kkikkiKim Monday, October 20, 2014 10:41 AM
Monday, October 20, 2014 9:53 AM -
I created MAPDB database manually, then successfully connected betwenn ODBC and Native Client.
Thank you
jinsu
- Proposed as answer by Wendy Fu Monday, November 10, 2014 11:56 AM
- Marked as answer by Simon_HouMicrosoft contingent staff Monday, November 10, 2014 1:20 PM
Monday, October 20, 2014 10:42 AM