Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Professional 2019 version 16.10.0 Can't open .sql files in SSDT project

Upgrade VS 2019 Professional to latest version 16.10.0. Open an existing SSDT project, double-click on any sql script file in the project, the file can't be opened in a tab window.

If the sql script defines a table, I can see the message: The design surface is loading. I can see the separator between design and script surfaces. If I drag the separator to resize the surfaces, the window gets refreshed and the script will open correct.

If the sql script defines a view or stored procedure, I only see blank tab window. i don't see any messages.

If I restart the VS2019, the previous opened scripts are working fine. But still the same problem whenever I want to open a script which is not opened before the restart.

like image 441
user3616544 Avatar asked May 28 '21 20:05

user3616544


2 Answers

Here's a link to the root Microsoft tacked issue:

https://developercommunity.visualstudio.com/t/Visual-Studio-Pro-16100---Tabs-do-not-/1434964

A quick work around to force the editor to re-draw: resize the editor window by dragging the solution explorer re-size bar.

like image 164
Cr1spy Avatar answered Oct 28 '22 07:10

Cr1spy


In VS 2019 Community 16.10, I can open one SQL file at a time. So if you shut all your open SQL files, you should be able to get a single one open. Note: even uninstalling VS and starting with a clean install from the Microsoft site did not help.

like image 44
user3613882 Avatar answered Oct 28 '22 08:10

user3613882