Reputation: 6415
Is there any way of setting the MS_Description extended property on objects in the SQL Server Database project in Visual Studio 2013?
Alternatively, is there a way to have extended properties created externally to the project persist in a SQL Server database project and thereby in source control?
Upvotes: 3
Views: 3057
Reputation: 177
You can simply add a Script to you Project (right-click Project > Add.. > Script (Include In Build) ) and the DAC will take care of the rest.
Upvotes: 0
Reputation: 1105
The SQL table editor consists of a... table above, where you can put your column definitions and the generated SQL code bellow. If you right click on the column headers of the top table, you will see that there are additional hidden columns that you can show. One of them is actuall the Description that you are looking for!
As you can see, it makes use of sp_addextendedproperty stored procedure to update the MS_Description extended property.
Upvotes: 8