Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
同じサーバーにある 2 つの異なるデータベースのフィールドを結合したいのですが、構文に問題があります。
誰でも洞察を提供できますか?
ユーザーが両方のデータベースで権限を持っていると仮定すると、次の 3 つの部分からなる名前を使用して「リモート」オブジェクトを参照するだけです。
SELECT columns FROM database2.dbo.table