Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Table Designer in Visual Studio

I have recently upgraded my database projects to VS2012 and am now faced with the abomination of the table designer (I'm sure there are people that love it, but I am a Sql developer and find coding table definitions by hand much faster). Is there any way of turning the damned thing off? I have tried (well believe I have) all the options under Tools -> Options -> Database Tools with no effect.

Things attempted

  1. I've attempted to remove the Designer from the "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\SQLDB\Designers" directory, but that just caused errors when attempting to open a table script.
  2. I've attempted to rename the registry key pointing to the designer (HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\Packages{74bc53b2-d9b7-4579-abe5-43d11a7ecd03}) but the registry key magically renames itself and comes back.
like image 463
John O Avatar asked May 25 '13 10:05

John O


People also ask

What is Table Designer in SQL?

The Table Designer is a visual tool where you design and visualizes database tables. Use the SQL Server Management Studio (SSMS) Table Designer to create, edit, or delete tables, columns, keys, indexes, relationships, and constraints.

How do I edit a table in Visual Studio?

To modify an existing table, double-click the node of the table to modify, or right-click this node and choose the Design item from the context menu. Either of the commands opens the Table Designer. Table Designer consists of the following parts: Columns Editor - a data grid on top of the Table Designer.

How do you create a table in Visual Studio?

Right-click on Tables and select Add New Table. The Table Designer opens and shows a grid with one default row, which represents a single column in the table that you're creating. By adding rows to the grid, you'll add columns in the table.


1 Answers

In the Solution Explorer:

  • right click on yourTable.sql table definition
  • click on Open with...
  • choose Microsoft SQL Server Data Tools, T-SQL Editor
  • click on Set as Default
  • click Ok

The steps above will insure that you always will open the table definitions with the T-SQL editor. You can revert back to the default setting by choosing the Microsoft SQL Server Data Tools, Editor Selector.

like image 115
Alex Filipovici Avatar answered Oct 10 '22 03:10

Alex Filipovici