问题
Can SSMS QueryBuilder somehow support multiple databases in Design View? How could they not let you select the database for the Add tables dialog?
These are even on the same server and same SQL Instance.
Is there something I'm missing with the Query Builder?
Is there another inexpensive UI friendly tool that allows building cross database queries? I want something easier for myself (C# developer not DBA) as well as the other not quite so techy folks around here to use.
回答1:
You can't choose another database in the Add Table dialog, but the query designer has no problem with tables from multiple databases. Just go to the FROM clause in the SQL pane and add ", database.schema.table" manually. When you click in the Diagram pane the new table should pop up (as a CROSS JOIN). You can then wire it to another table in the diagram pane to fill in the join clause.
来源:https://stackoverflow.com/questions/21079525/can-ssms-querybuilder-use-multiple-databases-in-design-view