Default value for column Visual Studio Management Studio - visual-studio-2012

Hee Guys,
I have not worked with this database tool but is it possible to set a default value for a column?
I want the default value to be 1 how can I achieve this. It think you have to change something in the properties.
Can you tell me how?

You can do that in two ways, by Management Studio GUI and by using t-sql. It described in following article, please check it out: https://technet.microsoft.com/en-us/library/ms187872(v=sql.110).aspx

Related

How to enable grouping in the File Structure Window in VS2017

I recently installed Resharper 2017.1.3 on Visual Studio 2010 and 2017.
On 2010, the File Structure window has a nice grouping based on categories (private method, public methods, override, etc - see image below). However, in 2017 there is no grouping at all.
I'd like to know if anyone can show me how to enable that in 2017. I tried researching it but couldn't find any solution.
thanks,
ReSharper's structure window doesn't have any grouping functionality as such - it always shows files in the order in which everything is defined. However, it does show regions as groups, as in your first screenshot. Those EqualsCore methods are both defined inside a region, and so get grouped by that.
(You'll also notice the little 'x' in the top right of the region grouping box. Click that and ReSharper will remove the region.)

TFS 2010 - Annotate Class Files

Within TFS 2010 there is the functionality to Annotate a class / page so that it shows where different pieces of code have been changed, along with who changed them, the date and the change set.
So my question, which is hopefully a relatively straight forward one, is: Can this be filtered to a date range, work item ID or user? Or would a separate report be needed to provide this functionality? I am mainly interested in the ability to do this within Visual Studio 2012 and not so much a report, as it would help with our release proceedure in development.
Annotate shows who wrote (or last changed) each line of code. So restricting it to a date range would fundamentally change the way it worked. VS/TFS don't provide any ability to customize how Annotate works.
You could always create your own Visual Studio add-in that provided this functionality.

Syntax highlight fail on Classes in Visual Studio 2012

I recently installed Visual Studio on a laptop and the syntax highlight fails to change Classes colors.
I tried exporting and importing the full, complete set of settings and it is still looking like that.
EDIT
I tried those websites with schemes and decided to try one, the Humane scheme, and this is how the sample code looks in my laptop after installing those settings:
However, this is how it is supposed to look:
Note the lack of highlight in class names.
What could it be causing this?
I'm starting to think that's another setting at another place which causes this.
Finally, it worked by resetting user data, running this from the Visual Studio Command Prompt
devenv /Resetuserdata
Found the hint here:
https://stackoverflow.com/a/11988265/1213246
Changin syntax highlight could be done through the menu Tools - Options - Environment - Font & Colors. It's a try and test approach that is not much improved from earlier versions of Visual Studio.
Fortunately, today there are entire sites with themes that simply need to be choosen and installed
I suggest you to visit http://studiostyl.es/ where you can find thousands themes or, for more generic go to http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspx

Visual Studio Express - console window as a tab

I wonder, if there is a way to make VS C++ Express console window appear as tab, like 'Output' or 'Code Definition Window', rather than new window (the same way like Eclipse does). Any IDE settings or plugin?
Thanks in advance,
Regards, Pawel (PL)
You'd need to create a visual studio plugin to do this, and from the accepted answer to this question you can see that the top listed item that's missing is:
No Add-in/macros
so while you might be able to create one, you won't be able to run it from the Express edition.

Set text to bold in InstallScript

I have a dialog in an InstallScript Msi project (2008) and I'm trying to set some text in a label to bold, but can't seem to figure it out. I tried prefixing with {&STYLE_BOLD} (which is a predefined style), but it didn't help. Does anyone know how to do this?
Thanks!
InstallScript MSI dialogs use InstallScript's support instead of MSI's. Thus you will need to use CtrlSetFont. See the example in the help, or in the online help online help for InstallShield 2015 (CtrlSetFont hasn't changed in years).

Resources