Create Link Server SQL 2005

Does anyone have a good reference for creating link servers in SQL 2005?  I'm getting the following error and don't understand why.

TITLE: Microsoft SQL Server Management Studio

"The linked server has been created but failed a connection test. Do you want to keep the linked server?"


An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


The OLE DB provider "SQLNCLI" for linked server "MYServer" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "MyServer".
OLE DB provider "SQLNCLI" for linked server "MyServer" returned message "Invalid authorization specification". (Microsoft SQL Server, Error: 7399)

For help, click:

Annette Wilson, MSISSr. Programmer AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This is a security issue.  When you create the linked server, on the security tab, you define how you are going to connect to the remote server.  You can either setup mappings in the top portion of the screen or define how all connection will behave at the bottom.  I usually select the latter because it's less to maintain.  If you are using Windows accounts that have access to both servers, use "Be made using the login's current security context".  If you are using SQL accounts or using a Windows account that doesn't have access to the remote server, use "Be made using this security context" and define a SQL user name and password on the remote server.  


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Annette Wilson, MSISSr. Programmer AnalystAuthor Commented:
Thank you GestersGrind!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.