问题
I have added a localdb to my project and trying to add tables to it. But I could not see 'Add Table' item on the menu, there are only 'Refresh' and 'Properties' items. According to the Microsoft SSDT is coming preloaded with VS2015, but there is no option to add a new table. Am I missing something?
回答1:
I have added a localdb to my project and trying to add tables to it. But I could not see 'Add Table' item on the menu, there are only 'Refresh' and 'Properties' items.
To resolve the issue :
Go to Control Panel and try repair the software.
Do not forget to reboot the machine .
回答2:
Instead of using "Server Explorer", use "View-->SQL Server Object Explorer".
Alternatively you could create an SSDT project, add your tables to the project and then deploy, that would be the correct way to do it! Ed
回答3:
Even tough I did the repair and rebooted, still I would not get "Add New Table" I verified that the installation (change, modify) had "Microsoft SQL Server Data Tools" selected.
I solved the issue by installing the latest version of "Microsoft SQL Server Data Tools" separately. https://msdn.microsoft.com/en-us/library/mt204009.aspx • Download SSDT Product Release for Visual Studio 2012 (link) I installed the package and rebooted the computer. I opened the project, and I was able to select "Add New Table" :-)
来源:https://stackoverflow.com/questions/31241617/visual-studio-2015-sql-server-data-tools-missing-add-table-option