简体   繁体   中英

Connecting to SQL Server database from another computer

I'm new to SQL Server, and have been following this tutorial

I carefully followed all the steps, but when I try to connect to the database from the other computer, I get the error

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication . Microsoft SQL Server, Error: 18452

What steps do I need to take to fix this?

Thanks

(I'm using SQL Server 2008 R2 on both the machines)

Explanation

The user attempted to login with credentials that cannot be validated. Possible causes are:

The login may be a SQL Server login but the server only accepts Windows Authentication.

You are trying to connect using SQL Server Authentication but the login used does not exist on SQL Server.

The login may use Windows Authentication but the login is an unrecognized Windows principal. An unrecognized Windows principal means that the login cannot be verified by Windows. This could be because the Windows login is from an untrusted domain.

For more detail please see this article .

Right click your database >> Properties >> Select Files (on left top). >> click owner (right top) popup window display >> click browser check Guest, NT Authority\\System

Open sql expand click Security >> right click Login >> New Login >> Click search (right top ) >> Advanced >> Find Now >> Select Guest/Network
This will add guest login

may this help you out

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