简体   繁体   中英

SQL Management Studio can't drag table / object from Explorer to Query Editor

Ok guys, SQL Management Studio can't drag table / object from Explorer to Query Editor

I tried , and I don't know where to enable this future again :( Tried options menu... Aaaaa... Some one please save my day!

通过在我的情况下按几次ESC键来修复。

In SSMS 2012 (maybe other versions too), go to "Tools|Options|Text Editor|General" and click "Drag & Drop text editing". That should do the trick.

First... does drag drop still work on other programs that aren't SSMS? I doubt that this is a feature you can turn on/off within SSMS. It probably is something deeper in the OS.

If so - is the shift key or ctrl key on your keyboard stuck down? I would also check options in the start menu. Disabling drag/drop and right/click can be done at the system level or by group policy - but again it would affect more than just SSMS.

I've also heard of various viruses disabling drag/drop but again, it seems strange it would only affect SSMS.

I was copying a large file in the background which seems to mess this up. When the file was finished copying, drag and drop worked again.

Interestingly enough, I went to download ShellExview as a previous post displayed. http://www.nirsoft.net/utils/shexview.html#DownloadLinks I found that different versions of the Office libraries were loaded in memory, for me it happened as I am loading Visio 2010 and 2016 at different times. A reboot fixed the issue.

(Exported the list before reboot when the issue was present and after reboot) 导出的ShellExportApplication视图

If you open SSMS in 'Run as Administrator' mode then Drag Drop file won't work.

Close SSMS and open SSMS normally. Drag-drop file feature will work.

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