Re: Report from multiple databases

Tech-Archive recommends: Fix windows errors by optimizing your registry



Option 1:
Link the tables from the different databases to your access mdb. Access the
data in the tables as you would any other linked table.

Option 2:
Create a view or stored procedure in one of the databases that uses fully
qualified table names to summarize/gather/whatever information from the
tables in the other three databases. e.g. SELECT blah, blah, blah FROM
MyServer.Northwind.dbo.Customers as NWCust INNER JOIN
MyServer.Pubs.dbo.Client as PC on NwCust.CustomerKey = PC.CustomerKey
INNER JOIN MyServer.Library.dbo.Patrons AS P ON NwCust.CustomerKey =
P.CustomerKey


"Deki" <Deki@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3857FF4C-1DF0-49A3-B981-47EC1F4318B8@xxxxxxxxxxxxxxxx
Hello,
I'm trying to create 2 reports. I have SQL Server 2000 and Access 2003.
Report should be done in Access. There are 4 different databases on same
SQL
Server.
I need report showing:

CustomerID
AgencyName
State
TotalDVI
TotalDRI
TotalVI
......

Totals are counts of all files in corresponding tables for all 4
databases.
To add to this problem, one database has different names of tables and
fields in them then other 3 databases.
Databases are definitely a mess and I can't do anything about it at this
time.
Is there a way to accomplish this?

Deki


.



Relevant Pages

  • Re: Crystal report and VFP
    ... There are properties of the runtime report that allow you to change the data ... These databases may be used by several users and will be ... SQL Server, they will need to have a unique name. ... I start to create a new report in Crystal report, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Strange issue importing text file
    ... Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP ... > I'll report those results when completed. ... >>>I am a SQL Server DBA that has a client using FoxPro v8. ... >>> databases without any issues. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: How do they search ?
    ... whats that giant master index and blah ... everthinhg is going out of my head. ... There is one search engine who publishes its code called Lucene. ... It works by spawning requests to other databases. ...
    (comp.lang.java.programmer)
  • Re: Change database in Excel
    ... Dim qt as Querytable ... qt.connection = blah ... I have two databases that are similar, and i have created an Excel ...
    (microsoft.public.excel.misc)
  • Re: Change database in Excel
    ... dim qt=Activesheet.querytables ... qt.connection = blah ... I have two databases that are similar, and i have created an Excel ...
    (microsoft.public.excel.misc)