Fix: "Cannot connect to remote server" - login failed for user ''. the user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error 18452)
How to access to the local SQL Server through either SQL or Windows Authentication | Cannot connect to remote server" - login failed for user ''. the user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error 18452).
In this post, let's learn how to connect the SQL Server available in different domain through Windows Authentication from Microsoft SQL Server Management Studio and that way we will learn how to fix the error "cannot connect to remote server", "login failed for user ''. the user is not associated with a trusted sql server connection. (Microsoft SQL Server, Error 18452).
We could connect to the local SQL Server through either SQL or Windows Authentication. Some times we may need to access the SQL Server that is hosted in the different domain, then a common approach could be using SQL login only, because local credentials would get fail with Windows authentication across the domains and there is no option to input the required credentials to access the external domain.
You may get this error when you try to connect,
=========================================================
Advertisement: Choosing .NET Core Worker Services OR Windows Services?
=========================================================
Advertisement: Choosing .NET Core Worker Services OR Windows Services?
=========================================================
I was not able to find an appropriate solution form simple Googling, however, I found a solution from my research in MSDN documentation.
Connectivity can be achieved by using RUNAS command with below steps,
Connectivity can be achieved by using RUNAS command with below steps,
Step 1: Run the Command Prompt
Step 2: Execute below command with OTHERDOMAIN\USERID details
RUNAS /user:OTHERDOMAIN\USERID /netonly "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"
That’s it. Now you can connect the SQL Server that hosted in the different domain through Windows Authentication.
Happy Learning!
Comments
I have read this publish and if I may I desire to recommend
you some attention-grabbing things or tips.
Perhaps you could write subsequent articles regarding this article.
I desire to learn even more things about it!
My webpage > easy diets that work
appearing forward to hearing more.
Take a look at my web page ... network and computer security ()
place.
Also visit my blog :: magento themes