Can SSMS QueryBuilder use multiple databases in Design View?

走远了吗. 提交于 2020-02-22 06:28:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!