Skip to content
Michael Bowersox's Blog
  • Photography
  • Resume
  • Contact
  • Yearly Archives: 2011

    1. Home>
    2. 2011

    Using a Custom IDataReader to Stream Data Into a Database

    • Post author:Michael Bowersox
    • Post published:December 22, 2011
    • Post category:.NET/C#/SQL Server
    • Post comments:0 Comments

    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…

    Continue ReadingUsing a Custom IDataReader to Stream Data Into a Database

    Streaming Data Between Databases using SqlBulkCopy and SqlDataReader

    • Post author:Michael Bowersox
    • Post published:December 1, 2011
    • Post category:.NET/C#/SQL Server
    • Post comments:0 Comments

    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…

    Continue ReadingStreaming Data Between Databases using SqlBulkCopy and SqlDataReader

    Recursive Queries Using CTEs

    • Post author:Michael Bowersox
    • Post published:November 9, 2011
    • Post category:SQL Server
    • Post comments:0 Comments

    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…

    Continue ReadingRecursive Queries Using CTEs

    NSMutableDictionary Example

    • Post author:Michael Bowersox
    • Post published:September 21, 2011
    • Post category:Cocoa/Objective-C
    • Post comments:0 Comments

    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…

    Continue ReadingNSMutableDictionary Example

    Determining Database Size in Microsoft SQL Server

    • Post author:Michael Bowersox
    • Post published:September 2, 2011
    • Post category:SQL Server
    • Post comments:0 Comments

    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…

    Continue ReadingDetermining Database Size in Microsoft SQL Server

    My Favorite Visual Studio 2010 Theme

    • Post author:Michael Bowersox
    • Post published:May 8, 2011
    • Post category:Development
    • Post comments:0 Comments

    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…

    Continue ReadingMy Favorite Visual Studio 2010 Theme

    Converting From WPF Foreground to Windows Forms ForeColor

    • Post author:Michael Bowersox
    • Post published:February 18, 2011
    • Post category:.NET/C#/WPF
    • Post comments:0 Comments

    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…

    Continue ReadingConverting From WPF Foreground to Windows Forms ForeColor

    Multiple CTEs in Sequence

    • Post author:Michael Bowersox
    • Post published:February 13, 2011
    • Post category:SQL Server
    • Post comments:0 Comments

    In a previous post, I discussed how to use common table expressions to generate temporary result sets that can read from and written to.  In this post, I’ll show how…

    Continue ReadingMultiple CTEs in Sequence

    Intro to Common Table Expressions

    • Post author:Michael Bowersox
    • Post published:January 28, 2011
    • Post category:SQL Server
    • Post comments:1 Comment

    Common table expressions (CTEs) are a powerful feature that was added to Microsoft SQL Server 2005.  Common table expressions can be thought of as a temporary result set that can…

    Continue ReadingIntro to Common Table Expressions

    Semaphores in C#

    • Post author:Michael Bowersox
    • Post published:January 16, 2011
    • Post category:.NET/C#
    • Post comments:1 Comment

    A short while ago I had a need to limit simultaneous requests to a web service from a multi-threaded application to prevent timeouts.  I learned about semaphores in school and…

    Continue ReadingSemaphores in C#

    RSS

       

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Tags

    .NET Apple ASP.NET ASP.NET AJAX Asynchronous Computation Expressions C# Charting Cocoa Common Table Expressions F# Feature Receivers Objective-C Page Methods SharePoint SharePoint CustomActions SharePoint User Profiles SharePoint Web Parts SharePoint Web Services SQL Server Themes Threading Visual Studio WPF WSPBuilder XCode

    Web Comics

    • Cyanide & Happiness
    • xkcd
    Copyright - WordPress Theme by OceanWP