Solved

Join sql data different servers

Posted on 2011-09-09
3
338 Views
Last Modified: 2012-05-12
I need to report on sales data coming from two point of sale systems. Both systems dump all their sales data into sql server but into two separate instances/ servers. One goes to sql 2008 and 1 to sql 2005. I have created views on both systems to see what sales info I am interested in. Is it possible to join this data and report it on one report??

Thanks

Noreen
0
Comment
Question by:jmauel
3 Comments
 
LVL 17

Accepted Solution

by:
dbaSQL earned 250 total points
ID: 36510387
Yes.  As long as your servers are linked, and the two datasets are joinable, you can pull from both of them, into a single report.  

If you want to provide more specific detail on the two datasets, I can give a better example.
0
 
LVL 21

Assisted Solution

by:JestersGrind
JestersGrind earned 250 total points
ID: 36510430
Hi Noreen,

You need to create a linked server on the SQL 2008 server that points to the SQL 2005 server.  Here are some instructions.

http://msdn.microsoft.com/en-us/library/ff772782.aspx

Then you should be able to query across servers through OPENQUERY..  

http://msdn.microsoft.com/en-us/library/ms188427.aspx

Greg

0
 

Author Comment

by:jmauel
ID: 36521697
Thanks for both the comments. I have created the linked server and now I will see if I can query across it.

Thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Getting the 3 middle digits 4 36
Set the max value for a column 7 37
How to query LOCK_ESCALATION 4 40
Table create permissions on SQL Server 2005 9 41
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now