Skip to content
Michael Bowersox's Blog
  • Photography
  • Resume
  • Contact
  • SQL Server

    1. Home>
    2. SQL Server

    Dynamic PIVOT With Microsoft SQL Server

    • Post author:Michael Bowersox
    • Post published:March 18, 2013
    • Post category:SQL Server
    • Post comments:0 Comments

    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…

    Continue ReadingDynamic PIVOT With Microsoft SQL Server

    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

    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

    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

    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