The default installation of Visual Studio 2012 cannot open SQL documents when you double click on them in Source Control Explorer. To be able to do that you have to install the
SQL Server Data Tools for Visual Studio 2012
For more information visit http://msdn.microsoft.com/en-US/data/tools.aspx
If you receive a portable drive and want to see the list of folders, you can output it to a text file.
To save the list of folders in a text file execute the following command in the command window:
dir P: /AD /B >> "C:\folderlist.txt"
where P: is the drive letter of the portable drive
The file will be created in the root directory of the C: drive.
If you need to make breaking changes in your source code that will be deployed later to production, but first have to be tested in the development environment you can include conditional compilation symbols to specify which lines will be included in the application for certain environments. This way you can maintain environment specific versions of the source code, the current version for production and the new version for development and testing.
In this example we will make a change in our source code that we want to deploy to the Development environment for testing, but not to QA, UAT and Production.
Create the conditional compilation symbol in the project
- Right click the project
- Select Properties
- On the left side select the Build tab
- Select Dev in the Configuration dropdown
- Enter new_version into the Conditional compilation symbols field
Add the conditional compilation symbol to the source code
- Surround the old and new code with a #if, #else, #endif structure
// New code
int a = 1;
// Old code
int a = 0;
int b = a;
If the Dev configuration is selected the new code will be compiled into the application
If another configuration (QA) is selected the old code will be compiled into the application
Welcome to Pinter.org!
This is a knowledge base for software developers to share ideas on Microsoft .NET, and Web development. My goal is to share my accumulated knowledge with anyone who is interested in information technology and software development.