Unix Technical Forum

Access to different databases in different domains

This is a discussion on Access to different databases in different domains within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi everybody, there are several SQL-Server 2000 databases within a company located on different servers in different domains. On ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 02:52 PM
Josef Meierhofer
 
Posts: n/a
Default Access to different databases in different domains

Hi everybody,

there are several SQL-Server 2000 databases within a company located
on different servers in different domains. On every database you can
find the same table X.

I want to merge these tables X (UNION query) and print the result with
a Crystal Report.

Unfortunately I only have little knowledge on security, domains,
distributed applications.

Thanks for help.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 02:52 PM
Jack Vamvas
 
Posts: n/a
Default Re: Access to different databases in different domains

Have you checked Linked Servers?

--

Jack Vamvas
___________________________________
Need an IT job? http://www.itjobfeed.com



"Josef Meierhofer" <jmeierhofer@gmx.com> wrote in message
news:hga623l6c1v4fbghk7rbmp7omuaplp6tn0@4ax.com...
> Hi everybody,
>
> there are several SQL-Server 2000 databases within a company located
> on different servers in different domains. On every database you can
> find the same table X.
>
> I want to merge these tables X (UNION query) and print the result with
> a Crystal Report.
>
> Unfortunately I only have little knowledge on security, domains,
> distributed applications.
>
> Thanks for help.
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 02:53 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Access to different databases in different domains

Josef Meierhofer (jmeierhofer@gmx.com) writes:
> there are several SQL-Server 2000 databases within a company located
> on different servers in different domains. On every database you can
> find the same table X.
>
> I want to merge these tables X (UNION query) and print the result with
> a Crystal Report.
>
> Unfortunately I only have little knowledge on security, domains,
> distributed applications.


The query as such is not tricky:

SELECT ....
FROM SERVER1.db.dbo.tbl
WHERE ....
UNION ALL
SELECT ....
FROM SERVER2.db.dbo.tbl
WHERE ....
UNION ALL
...

The problem may be with setting up the linked servers. You use
sp_addlinkedserver and sp_addlinkedsrvlogin. Supposedly there is a DBA
around with whom you can discuss how to do this.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com