How To Compare Table Data And Detect Changes In SQL Server

Recently, I was working on a problem scenario where i need to maintain the histories of the table row data if any updates occurs to a row in the table. And histories maintenance should be maintained only if any data change is there while updating a table row. This post is demonstrate how the same Read more about How To Compare Table Data And Detect Changes In SQL Server[…]

How to get IDENTITY values on Multi-Rows insertion in SQL Server

In general problem scenario, we need to capture the IDENTITY value after insertion operation in a table. This is achieved by using SCOPE_IDENTITY(), @@IDENTITY and IDENT_CURRENT() function. The above functions doesn’t works in case of multi-rows insertion. SQL Server 2005 introduced the OUTPUT clause as part of INSERT statement which we can use to capture IDENTITY  values on multi-rows insertion. Problem Scenario Read more about How to get IDENTITY values on Multi-Rows insertion in SQL Server[…]

How to kill the process running on any specific port in windows?

In this post, we will look at how can we kill a process running on any specific port in windows. If you are a developer, then often, you would have found this error message: Port 80 in use by “Unable to open process”! Follow the below steps to kill the process. Step 1 : Start command Read more about How to kill the process running on any specific port in windows?[…]

How To Drop Multiple Databases In SQL Server

During development, Developer generally create a bunch of temporary databases that you probably do not want to keep in the database for long term. Most DBAs drop at a time using either a single DROP statement or SSMS. This post explains how we can drop multiple databases in a single query. To drop multiple database we Read more about How To Drop Multiple Databases In SQL Server[…]

How To Alter User-Defined Table Types in SQL Server

I cannot use ALTER to modify the type nor can I drop and recreate it since it is being referenced by existing Stored Procedures. That means, reference must be removed first. In this post, We will learn how to alter User-Defined Table types in SQL Server. Example Case: Let’s say we have multiple stored procedure Read more about How To Alter User-Defined Table Types in SQL Server[…]

How To Get Row Count For All Tables In SQL Server Database

Recently, I was working in analyzing a healthcare database where one simple task was to identify the big tables in terms of “Number of records”. So. I needed to get the row count for each tables in a SQL Server Database. There are many way to get this data. See the below T-SQL scripts: 1. Read more about How To Get Row Count For All Tables In SQL Server Database[…]

Elasticsearch For .NET Developer : How to work with Elasticsearch using c#

In this post, we are going to take a look at how to integrate Elasticsearch with .NET so that it can be useful in your .NET based projects. This post is part 3 of the series “elasticsearch for .net developer”. Before proceeding, I strongly recommend to check out previous parts listed below: Part 1 : Elasticsearch for .NET Read more about Elasticsearch For .NET Developer : How to work with Elasticsearch using c#[…]

Elasticsearch For .NET Developer : Installing and Configuration

In this post, we will guide you how to quickly set up and running single instance elasticsearch in windows operating system. This post is part 2 of the series “elasticsearch for .net developer”. Before proceeding, I strongly recommend to check out previous post Part 1 : Elasticsearch for .NET Developer – What and Why Elasticsearch You Read more about Elasticsearch For .NET Developer : Installing and Configuration[…]

Elasticsearch For .NET Developer : What and Why Elasticsearch ?

What is ElasticSearch ? Elasticsearch is an open source, NoSQL, distributed, and highly scalable full text search database that is built on top of Lucene, a search engine library written in Java. It provides extremely fast searches and makes data discovery easy. It’s a NoSQL database because it’s a document based storage system instead of using tables and Read more about Elasticsearch For .NET Developer : What and Why Elasticsearch ?[…]

How to Track Stored Procedure, Function, View changes in SQL Server

Do you want to track the changes made on database objects like Stored Procedures, Views, Functions? SQL Server supports DDL Triggers that can be used to accomplish this task. SQL Server DDL Triggers is a special kind of trigger that fire in response to Data Definition Language (DDL) statements – CREATE, ALTER, DROP (Table, Function, Read more about How to Track Stored Procedure, Function, View changes in SQL Server[…]