Importing IIS Logs into a SQL Database / Table
1. Download the Log Parser tool from Microsoft here. I know, it’s old but works great. 2. Dump your IIS log files somewhere (ie: c:\temp\logs). 3. Run this in cmd: C:\Program Files (x86)\Log Parser...
View ArticleMVC 4: Code First Migrations with SQL Server – Creating & Updating the DB Schema
Creating and keeping a database schema up to date using asp.Net & MVC 4 in Visual Studio (2010 in the below process) is quite easy and efficient. Below are some basic steps to get you going. Step...
View Articlec# DataTable Copy / Filter / Sort & Clone
If you’re like me (I hope not too much like me) you probably find yourself using DataTables to hold lots of data for fast, flexible in memory usage. I get asked often, “how can I copy a DataTable?” or...
View ArticleRavenDB Document Database – Super Quickstart Guide
RavenDB is among the many available document databases on the market today (mongo, redis, etc.). If you’re looking to try this db and see if it’s right for your project, below is a super quick guide to...
View ArticleSQL Server / Renaming Databases With Active Connections
I believe there are many methods and opinions that exist on the best practice to rename a SQL Server DB. Below I’ll quickly give you the method I use to rename a database. In the below example, I...
View ArticleRemoving WordPress Spam Comments In Bulk
I’ve encountered a few WordPress blogs that had been bombarded with spam comments (some over 200k comments – taking several gigs of db space). Usually these comments accumulated over a few months or...
View ArticleMongoDB – Linking Records / Documents Using MongoDBRef
If you’re using MongoDB, you know as a document database it doesn’t provide the “join” feature you’ve come to rely on in standard relation databases (sql server, mySql, postgres). In many instances,...
View ArticleIncrease IIS Logs to SQL Log Parser Import Performance w/ transactionRowCount
A few years ago I showed how to use Microsoft’s Log Parser tool to take IIS log files and import into a SQL database. From Microsoft: Log parser is a powerful, versatile tool that provides universal...
View ArticleUsing SQL Server for Latitude & Longitude Calculations
If you’re like me, you’ve probably stored latitude and longitude data in decimal columns for a long time. I know SQL Server has a geography type as of a few years ago, but I never really played with...
View ArticleAWS RDS SQL Server – Using Memory Optimized Objects in your DB
If you’re using Amazon Web Services RDS for SQL Server (btw, it works great) and want to use Memory-Optimized Objects, it’s easy to alter your DB to allow this. Below is a little T-SQL. The key to...
View Article
More Pages to Explore .....