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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…