Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 declare @username and @passworrd
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

210 Posts

Posted - 09/30/2013 :  10:32:32  Show Profile  Reply with Quote
Hi All.
I would like to join table from different servers. One server has windows authentication, the other has SQL Server Athentication. How create query to join tables from two servers and declare username and password?


Edited by - eugz on 09/30/2013 10:36:55

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 09/30/2013 :  10:40:41  Show Profile  Reply with Quote
You need to set up a linked server from one to the other. When you set up the linked server it will let you specify the authenication types and credentials. If you have not done this before, the easiest perhaps is to use the graphical user interface. Right-click on Linked Servers node under Servername -> Server Ojbects in SSMS object explorer.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000