简体   繁体   中英

Microsoft SQL Server Native Client 11.0 : Cannot open database

c:\windows\system32\cmd.exe /c sqlcmd -S (localdb)\v11.0 -d Adv
entureWorksDW2008R2

I am getting the following error :

Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Cannot open database "A dventureWorksDW2008R2" requested by the login. The login failed.

I am using active directory credentials... not using any special credentials; How to make the above command work for AD user?

SQL Server is in no way connected to Active Directory. Only users configured in SQL Server can log into SQL Server. You will have to add the user to SQL Server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM