Archive for June 2010

Setting Device Information in MCI

Like anything else in MCI, you can set device information using a MCI command (string/numeric), and this time it’s the MCI_SET command.

Converting your Number column to AutoNumber

Unfortunately you can’t convert your normal Numeric column to a AutoNumber column if there’s data existing in the table even if the numbers follow a series and are ordered properly.

However, you can do a little trick.

Why you receive a System.Security.SecurityException exception!

Have you ever received an exception like this: “System.Security.SecurityException: xxx.” ?

Manually performing a garbage collection!

I was asked whether it’s efficient to perform a manual garbage collection using GC.Collect() or not!