SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

eugz
Posting Yak Master

195 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?

Thanks.

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

James K
Flowing Fount of Yak Knowledge

3661 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. http://technet.microsoft.com/en-us/library/ff772782.aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000