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

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 select data

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-03-06 : 09:01:44
hemant writes "hi
I have to database sds_bms/sds_bms@design_dev2
And sds_bms1/sds_bms2@design_dev1
I want to select data from both because my report base on to tables one is in first database(sds_bms/sds_bms@design_dev2)
and second in second database(sds_bms1/sds_bms2@design_dev1)
how do I select the data using sql.
rgd,
Hemant"

Nazim
A custom title

1408 Posts

Posted - 2002-03-06 : 09:08:20
you can create a stored procedure which will select the data from your two table's and call that sp to create your report.

you can select data from different databases. by following the four part naming conventiosn.

servername.databasename.ownername.tablename

eg:

select * from east01.fa.dbo.testtable
select * from east01.faprev.dbo.testtable

HTH

--------------------------------------------------------------
Go to Top of Page
   

- Advertisement -