Quantcast
Channel: Michael Bowersox's Blog
Browsing latest articles
Browse All 13 View Live

Converting From WPF Foreground to Windows Forms ForeColor

I recently had the need to read the foreground color of a WPF control to assign to the foreground color of a Windows Forms control that I had hosted in a Windows Forms Host control.  Once I started...

View Article



My Favorite Visual Studio 2010 Theme

I’ve always been a fan of visual studio themes with a darker background as I find that the white background of the default theme tends to hurt my eyes after working for a few hours straight.  When...

View Article

Determining Database Size in Microsoft SQL Server

We’ve all experienced a database administrator coming up to us and questioning why a SQL Server database is consuming so much disk space.  If you’re like me, you would immediately run the sp_helpdb...

View Article

NSMutableDictionary Example

The NSMutableDictionary object is very useful item in the Cocoa toolbox.  It allows you to store values which are indexed by key.  It is similar to the NSDictionary object with the exception that items...

View Article

Recursive Queries Using CTEs

I previously explained the basics of common table expressions (CTEs) as well as how to chain them in sequence when you need multiple temporary result sets to get the results you desire.  One of the...

View Article


Streaming Data Between Databases using SqlBulkCopy and SqlDataReader

One little known fact about SqlBulkCopy is that not only can the WriteToServer method use a DataTable, but it can also use any object that implements IDataReader.  Since the SqlDataReader object...

View Article

Using a Custom IDataReader to Stream Data Into a Database

In a previous post, I discussed how to use the SqlBulkCopy class along with a SqlDataReader to quickly stream data from one database to another.  The reason that you can use a SqlDataReader as a...

View Article

Dynamic PIVOT With Microsoft SQL Server

The PIVOT keyword in Microsoft SQL Server is a godsend when you need to manipulate row values into their own columns. Unfortunately, to use this PIVOT keyword, you need to supply all of the possible...

View Article


Using IDisposable to Create a Simple Code Timer

The IDisposable interface is typically implemented by objects that are using resources that need to be released in a timely manner rather than waiting for the garbage collector to clean them up....

View Article


Asynchronous Computation Expressions in F#

I recently started a new job where all of our core development is done in F#.  It’s definitely been culture shock for me as I’ve come from a C# background.  Moving from an object-oriented language to a...

View Article
Browsing latest articles
Browse All 13 View Live




Latest Images