• SQL Server LTRIM and RTRIM problem

    by  • January 16, 2012

    Sometimes in SQL Server you may have columns that starts or ends with white spaces such as CR LF, TAB or other characters. In these cases, a normal LTRIM or TRIM does not work. Consider this issue. We have a table called FAQ with columns : Question, Answer and URL. There will be cases...

    Read more →

    Creating fixed length random string in C#

    by  • November 29, 2011

    Sometimes in your code, you need to create a ramdon number and string, of a fixed length. This can be particularly helpful for creating tag names on dynamic HTML elements. So let’s get to it. Here is the code in C#. I’m using a console app for an example, but feel free to use...

    Read more →

    MVC 3 Scaffolding issue with Entity Framework

    by  • July 3, 2011

    I was working on a project with ASP.NET NVC project. I already had a SQL server database ready to be used, and I wanted to use the Entity Framework 4.1. After my model was created and ready, I wanted to use the MVC 3 Repository pattern. There are lot of tutorial and demos on...

    Read more →

    Learning Windows Azure and preparing for Exam 70-583

    by  • July 3, 2011

    I’m very excited to say, that Microsoft has released a step-by-step guide to learn Microsoft Windows Azure. By going through the learning steps thoroughly, and following the training material, it will be easy to get certified. So,  I’m happy to share this information with my readers. For getting started with Cloud computing get the...

    Read more →