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)
 Access of data from other Database

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-10-10 : 07:34:00
Nisar writes "I want to access data from another database in SQL. But database name will not be same always. I'll pick it from some table.
How can i do it?"

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-10-10 : 07:43:26
Either use LINKED servers or use dynamic SQL.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-10-10 : 09:37:48
Why do you want to pass database name as parameter?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -