how do i connect to SQL server in SQL Server Mgmt Studio with SSPI Integrated Security

StackOverflow https://stackoverflow.com/questions/2971409

  •  24-10-2019
  •  | 
  •  

문제

i have an asp.net web app that has this in the web.config file in the project

server=[server],15001;Integrated Security=SSPI;Database=DB_NAME

how do i connect to this database from Sql server mgmt studio since there is not use or password in the connection string. i am connecting from a remote machine

도움이 되었습니까?

해결책

When you connect using "Integrated Security", it uses the current Windows credentials of the process - in the case of connecting to SSMS, it will use your current Windows user. If your Windows user has rights to the SQL Server, then you can connect using Intergrated Security.

If you need to connect to the SQL Server using Integrated Security, but as another user, you'll need to do a "Run As..." on SSMS to load it as the different user.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top