By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,266 Members | 1,312 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,266 IT Pros & Developers. It's quick & easy.

To retrive a table from one database to and another database(same table)

P: n/a
hi
i have emp table in one database , how to retrieve same table another
database
through query analizer
give code ,,,

Mar 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

use the three part notation:

SELECT * FROM database.owner.Objectname

(replace owner by schema for SQL2k5)

HTH, Jens Suessmeyer.

---
http://www.sqlserver2005.de
---

Mar 17 '06 #2

P: n/a
Hi surya

While the first database is "Current" as would result from:

Use FirstDatabaseName

select * from OtherDatabaseName..Emp
--
-Dick Christoph
"surya" <su*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
hi
i have emp table in one database , how to retrieve same table another
database
through query analizer
give code ,,,

Mar 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.