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
 Transact-SQL (2000)
 'Update' using data from another database

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-12-12 : 08:29:46
Erni writes "E.g.
update NEW_TABLE set NEW_COLUMN = (select COLUMN1 from TABLE_IN_OTHER_DATABASE)

of course the above query does not work. Is there anyway I can get data from a table residing in a different database (on the same server)?"

nr
SQLTeam MVY

12543 Posts

Posted - 2003-12-12 : 08:42:03
from dbname.dbo.tablename

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -