Archives for Language features, Development Methodologies - Page 17
Nasty Joins, Cartesian Joins
A Cartesian join is an (incorrect) join between two tables. Incorrect because the tables have not been joined in any relational street_address from authors a, location b where like ‘%varma%’…
Sql Server Enterprise versus Standard Editions
High Availability SQL Server Standard includes some features to enable high availability, but the Enterprise edition brings more. Features like database snapshots, mirrored backups and fast restore mean that when…
Visual Studio – VS find matching brace
1. Place your cursor either before or after the OPENING brace. 2. Type CTRL ] (CTRL and CLOSE BRACKET) – it should jump to the closing brace
WCF – The maximum string content length quota (8192) has been exceeded while reading XML data
Introduction The DataContractSerializer in WCF serializes objects to XML Streams. There is a size (length) limitation on these streams. They are restricted by default to 8k (8192 bytes). While this…
Visual Studio Using Too Much Memory
When running by itself (no project opened and no extensions), Visual Studio 2012 takes less than 100 MB. When you open up your projects, those add to the total memory…
Using Database Tuning Advisor for individual queries
Often times, instead of tuning an entire database, we are interested in performance tuning a single offending query. This can be accomplished by applying the tuning wizard to a specific…
Visual Studio Replace multiple lines of code
I had to insert a few lines of code in about 700 different files. However, the insertion had to be in a specific place (just before the start of a…
Finding out your full domain and username on windows
Username From a DOS prompt, type echo %USERNAME% /domain . This should return your username as registered in the current domain. Full Domain Name I can never remember the full…
Visual studio does not display .NET 4.0 (or 4.5) framework option for target framework
Introduction Even if you have .NET framework (or above) installed correctly, Visual Studio sometimes does not pick it up. This means that you will be unable to convert any of…
Moving large tables to a different Filegroup
Introduction If you have some tables that are taking over 10% of the table space in SQL Server (see this post for finding large tables), they are candidates for being…