Tackle WRITELOG Waits Using the Transaction Log and Extended Events
Takeaway: WRITELOG waits are associated with a busy or slow transaction log. To tackle these waits, we need to measure transaction log activity. I describe a lightweight way to examine transaction log...
View ArticleSQL DB Details Using over Multiple Servers using PowerShell
One of my blog reader requested me to get the DB details(Server,DBName,Size,SpaceAvailable,LogSize,PercentUsed Log Space,compatiblilty mode, recovery model etc:-) using PowerShell hence this post is...
View ArticleSQL Server 2005 is Now Out of Support (12 April 2016)
SQL Server 2005 is now out of support. I remember going to a SQL Server 2005 launch event at the premises of Microsoft partner is South Wales back in the day. It feels like the end of an era.If you...
View ArticleFavorite SQL Server Feature – #TSQL2SDAY #77
Today is the 77th T-SQL2SDAY! If you’re not familiar, T-SQL Tuesday is a blogging party hosted by a different person each month. It’s a creation of Adam Machanic (b|l|t), and it’s been going on for...
View ArticleSQL Server Service Broker – Sending and Receiving
This post is part of a series on this blog that will explore SQL Server Service Broker, a native messaging and queueing technology built into the SQL Server Database Engine.Previous posts:SQL Server...
View ArticleAnd with that, SQL 2005 is out of support
As of today (April 12, 2016) Microsoft no longer supports SQL Server 2005. If something goes wrong with your SQL 2005 database server at this point, there’s not going to be anyone at Microsoft who can...
View ArticleSQL 2016 – Dynamic Data Masking
One of the new features that’s coming with SQL Server 2016 is Dynamic Data Masking. DDM is designed to allow DBAs to limit exposure of sensitive data within a database with minimal (if any) changes...
View ArticleHeap tables in SQL Server
In the last post of this blog series, I discussed what a B-Tree index was and briefly explained its history. Before we dive into the indexes which SQL Server uses, it is important to set the foundation...
View ArticleMongoDB – List All the databases
The function getDBs() function returns all the database listdb.getMongo().getDBs()The runCommand is a special type of query called a database command and its is used database administration. The...
View ArticleModulo!
I love this somewhat obscure mathematical operator. All it does is return the remainder of a division statement but even though it’s pretty basic most people I talk to have never heard of it. The...
View ArticleAnalytics Platform System (APS) AU5 released
The Analytics Platform System (APS), which is a renaming of the Parallel Data Warehouse (PDW), has just released an appliance update (AU5), which is sort of like a service pack, except that it includes...
View ArticleThe Next Chapter ~ A SQL Journey
The past five years have been nothing short of an amazing ride on this thing we call “The SQL Journey”. I never cease to be amazed by the many outstanding data professionals we have in the PASS...
View ArticleMongoDB – How to Copy Database
Using copydbRun the copydb under admin database with from,to, host parameters>use adminswitched to db admin> db.runCommand({ copydb: 1, fromdb: “test”, todb: “new_test”, fromhost: “localhost”...
View ArticlePowerShell: Get SQL Servers From AD
Today I’d like to share a quick script that is useful when working with a new domain of SQL servers. It’s also good for anyone who doesn’t know their environment very well or suspects there might be...
View ArticleSQL Saturday #493 (Silicon Valley)
I have been really lucky the past two weeks as I was able to attend two separate SQL Saturday events back to back. For me, it is a day where I can both learn and talk with others about my passion with...
View ArticleCan’t RDP to Azure VM?
I ran into an interesting problem early this month. I was spinning up an Azure VM with SQL Server 2016 RC0 on it. For testing purposes. Looking at Stretch databases a new feature in SQL Server 2016 I...
View ArticleHow do I rename a column?
Everyone makes mistakes right? And sometimes you create an object and decide later that you messed up and need to rename it.EXEC sp_rename 'OldName','NewName'This works for tables, stored procedures,...
View ArticleEasy SQL mistakes: Accidental Correlated Subquery
Just a fun note, because it was a moment of pure puzzlement for me. I’m writing a new SP for Minion Backup (you knew it had to be Minion related, didn’t you?) and I just got the oddest error. Here’s...
View ArticleMy First PASS Board Meeting
Let me start off with a disclaimer that these thoughts on the January PASS board meeting are my own as I do not speak on behalf of PASS. I have been on the PASS Board of Directors for about 4 months...
View ArticleSQL Server Service Broker – Error Handling
This post is part of a series on this blog that will explore SQL Server Service Broker, a native messaging and queueing technology built into the SQL Server Database Engine.Previous posts:SQL Server...
View Article