Jetbrains Datagrip cannot connect sql server without specify database

大憨熊 提交于 2019-12-23 18:10:21

问题


i try to use Datagrip as my primary sql server query tools, bit i meet a problem that i can not move forward.

When i setup the project data source, i have to choose a Database, otherwise it will goto the default tempdb, how i can work like sql server management studio, that i can see all database list.

i have tried both jTds and Microsoft drivers, both not works.

or can i choose multi-database? i do not want to create one data source for one database.

if i connect to mysql, it works like expected.


solution from @Andrey:

It is possible to connect without specifying the database. Just leave this filed blank. After entering other settings (host, port, user, pass) go to Schemas tab in Data Source properties and select all the Databases and schemas you want to work with. Then invoke Synchronize action for this Data Source in Database tool window.


回答1:


It is possible to connect without specifying the database. Just leave this filed blank. After entering other settings (host, port, user, pass) go to Schemas tab in Data Source properties and select all the Databases and schemas you want to work with. Then invoke Synchronize action for this Data Source in Database tool window.




回答2:


DataGrip 2016.2 EAP claims to have support for showing multiple databases. See https://blog.jetbrains.com/datagrip/ and find for "Database View". Unfortunately, as of the date I'm writing this, it doesn't seem to work at all.

Unfortunately, Andrey's suggestion did not work for me.



来源:https://stackoverflow.com/questions/36193995/jetbrains-datagrip-cannot-connect-sql-server-without-specify-database

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