MongoDB – Calculating Document Size
We can get the size of a document is to by using the shell’s Object.bsonsize() function.We pass the object_id of the document to get the sizeFor example in the foo collection, we can find the size of...
View ArticleWeekly Roundup–SQL Server and Related News
Welcome to this weeks weekly round up of links, SQL Server and other news. Its been a busy week on the work front but still made time for some reading. The #Build2016 announcements were very...
View ArticleSQL Server Service Broker – Conversation Architecture
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 ArticleMongoDB -Calculating Collection Size
Calculating Collection SizeWe can get the size of a collections by using the shell’s functionsdb.collection.dataSize() : Returns data size in bytes for the collection.db.collection.storageSize() :...
View ArticleScaling Azure VM’s
There are so many benefits to the cloud, but one of the major features is the ease of use in scaling a virtual machine (VM). A common scenario is when you are building an application that needs SQL...
View ArticleAdvanced Accidental Database Design
Next week (12th April, 2016) we will be doing a webinar for SolarWinds, Advanced Accidental Database Design, taking place at 9AM ET (13:00 UTC).The post Advanced Accidental Database Design appeared...
View ArticleTSQL– Search for Strings in Object Definitions
I have been working nn an environment that had multiple copies of a database on the same SQL server instance. In this case the SQL Server was acting as both a UAT and Training environment.The...
View ArticleName the schema when you create an object (or else)
This is one of those frequently ignored best practices. When you create an object, specify the schema where it will be created.I should also point outWhen you reference an object (in a query for...
View ArticleMongoDB – Local and Remote Connections in Mongo Shell
To Install and Getting started with MongoDB refer the below linksGetting Started with MongoDBInstall MongoDB 3.2 on WindowsInstallation GuideHow to access Mongo instanceOpen a terminal session or...
View ArticleMicrosoft BI Integration for the Four Primary Report Types
We are currently experiencing a major evolution of the MSBI reporting toolset in accordance with the Microsoft BI Roadmap announced in October 2015. This diagram depicts current state the way I...
View ArticleAnnouncement: Backup(n.) vs Back Up(v.)
Let it be known that the word “backup” is a noun (it refers to a thing), and “back up” is a verb (it refers to an action. I’m going to back up the database. It will produce a backup. I’ll save that...
View ArticleFixing Hotkeys in SQL 2012
A colleague was working in SQL Management Studio as usual today when he tried to hide the results pane using Ctrl + R. It didn’t work though. He hit it a few more times. Nothing. Finally, in...
View ArticleMongoDB -Get Size, RowCount, CollectionSize
There are two different ways of getting the desired resultThe first method is iterating through each collection using for loop and displaying the resultcols = db.getCollectionNames();for (index = 0;...
View ArticleMongoDB – Drop database
The dropDatabase command drops the current database, deleting the associated data files.Different methods to drop databaseMethod 1:1. select the database which you want to delete>use < database...
View ArticleXP_CmdShell isn’t Evil
This is a reprint of Sean McCown’s original post on DBARant. You know, reprinted with permission and all that. I’ve been hearing it more and more the past year. “XP_cmdshell should always be turned...
View Article5 Factors to Consider before Pouring Data in your Data Lake
As organizations move into a Big Data world, many projects will include a Data Lake component. What is a data lake, and how do we get our data into the Data Lake? There are many different...
View ArticleSQL Saturday #511 (Redmond)
One of the things I really look forward to recently is SQL Saturday as it is a day where I can both learn and talk with others about my passion with Microsoft SQL Server. The latest SQL Saturday #511...
View ArticleWhat is code coverage for?
Code coverage gives you an indication of how well tested a particular area is. It is not a measure of code quality and having a statement covered by a test does not mean that the code is accurate.Using...
View ArticleMonitoring SSAS Multidimensional Non Empty Filtering Using Profiler, Part 3
In Part 1 of this series I introduced the different types of non empty filtering that occur in Analysis Services Multidimensional and in Part 2 I showed how you can use monitor this activity using...
View ArticleMongoDB -Get Total datasize of all DB’s
var sum = 0; db.getMongo().getDBs()[“databases”].forEach(function(x) { sum += db.getMongo().getDB(x.name).stats().dataSize }); print(sum );ORdb = db.getSiblingDB(“admin”);dbs = db.runCommand({...
View Article