Error While Sending a Class Collection Over a WCF Service

I had spent a great while debugging an operation which returned a collection an entity object. However, I had a bug in my code and I could not find what was causing it. I was given the following message over, and over, and over. The socket connection was aborted. This could be caused by an error processing your message or...

Including Exception Details in WCF (IncludeExceptionDetailInFaults)

Sometimes when you receive an exception when debugging a WCF service, you receive the following message : The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn...

How to Add, Modify, Rename, and Delete a Column in SQL

There has been a few times where I needed to compose a script to update a customer’s database, and I’ve had to use probably the most popular of the SQL ALTER TABLE syntax: Add, Modify, Rename, and Drop. To help save for my own notes and to possibly give some help,  I thought I’d write a quick article on these 4...

Quick Formatting Tips in Visual Studio 2010

Formatting code not only keeps OCD programmers like me sane being organized, it also helps with the readability of your code when ever you or somebody else views it for maintenance. However sometimes formatting the code quickly in Visual Studio 2010 is not exactly straight forward so I thought I’d give a few tips from what I learned so far,...

DevLink Schedule For 2011

Wanted to give my schedule for DevLink for those interested so here it is: Keynote 10 Cool Ways to use the Silverlight Listbox Expression Blend and the Visual State Manager : A Deep Dive Functional C# Architecting a Business Application for Windows Phone Simplicity By Design – The Art of Patterns and Practices with .Net 4.0 Design For Developers Connecting...

Google Plus

Many people have heard of Google’s recent release of Google Plus, but are unsure of what it is. The quick explanation: It’s Google’s version of Facebook. Because of this similarity, people are slamming Google for making yet another social networking site, however Facebook was not the first social networking site online. Some people might remember TheGlobe or GeoCities which helped start...

Google Music

It’s finally here, my invite to Google Music! Google’s answer to Amazon’s Cloud Player, an online storage solution for all your music. After messing with it a few hours, I have to say, I am very impressed. The flow is smooth and contains very few hiccups. For those of you who haven’t recieved your invitations yet, I thought I’d give you a little preview...

Delete or Truncate All Data in a Database

A quick tip for you all, ever need to delete or truncate all the data from a database? There has been a few times during testing after my database grew, that I needed a quick solution to clear a database. The solution is using the MSForEachTable stored procedure. Simply do the following : DatabaseName – The name of the database you...

Specify Your Own Select And Edit Top(n) in SQL Server Management Studio

When right clicking a table in SQL Server Management Studio, you have an array of options. Probably the two that I use most however is the “Select Top 1000 Rows” and the “Edit Top 200 Rows”. However, sometimes you want to look at a little more than that. I know most of the time I want to select all from...

%d bloggers like this: