简体   繁体   中英

How do I view records from a table in a different schema?

Besides using linked server, how do I view records from a table in a different schema?

so if I have table in [eg].[info] and another table in [ie].[info], how do I join them together? That is one schema is [eg] and the other is schema [ie].

You need to alias the tables with AS (which you should always do anyway):

FROM eg.info AS info1
JOIN ie.info AS info2

In SQL server 2018 upwards, it is deprecated. Error I get with three part name is...is not supported in this version of SQL Server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM