SQL Server
Welcome to SQL Server section of C# Corner. In this section, you will find various SQL Server related source code samples, articles, tutorials, and tips.


  • Jignesh Trivedi

    Working With JSON In SQL Server 2016

    JSON (JavaScript Object Notation) is a lightweight data interchange format. It is language independent, easy to understand and self-describing. It is used as an alternative to XML. JSON is a very p...
    Jignesh Trivedi Aug 28, 2017
  • Jignesh Trivedi

    New Features In SQL Server 2017

    There are many new features introduced with SQL server 2017 and also there is some performance improvement in existing features. Using the following links, we can learn more details about the new f...
    Jignesh Trivedi Aug 28, 2017
  • Nisarg Upadhyay

    Parameter Sniffing In SQL Server

    SQL Server uses a process called parameter sniffing when it executes a stored procedure that has parameters. When the procedure is compile or recompiled, the value passed in the parameter is evalua...
    Nisarg Upadhyay Aug 23, 2017
  • Junaid Syed

    Merging Table Data Using Merging Statement In MSSQL 2012

    In this blog, we will learn how we can merge the table data using merging statement.
    Junaid Syed Aug 23, 2017
  • Nitesh Jha

    How To Consume Web Service Through SSIS Package

    This article illustrates the purpose of SSIS with Web Service.
    Nitesh Jha Aug 19, 2017
  • Madhan Raghu

    Load Twitter Data Into SQL Database

    The requirement is to extract the data from Twitter and load extracted data into SQL Database. For this demonstration I am going to read the Indian Film actor Kamal Haasan's tweets and load th...
    Madhan Raghu Aug 15, 2017
  • Anil Jha

    Select All Columns From A Table Except One Column

    Usually, we use * to select all the columns but if we have to select all the columns except one column, then we have to write all the required columns one by one. Here I am going to show how we can...
    Anil Jha Aug 09, 2017
  • Srashti Jain

    Create SQL Server Database Project With Visual Studio

    In this article, we’re going to learn about how to we can manage our database scripts using Visual Studio’s SQL server database project.
    Srashti Jain Aug 08, 2017
  • Anoop Kumar Sharma

    Setup AdventureWorks Database In Microsoft SQL Server 2014

    In this blog, we will learn how to setup AdventureWorks Database in Microsoft SQL Server 2014.
    Anoop Kumar Sharma Aug 08, 2017
  • Jothish Kumar

    Password Encryption And Decryption In SQL SP

    In this blog, I have explained the process involved in the password security using Encryption and Decryption in SQL Stored Procedure.
    Jothish Kumar Aug 08, 2017
  • Vishal Pawar

    How To Determine The Version And Edition Of SQL Server And Its Components

    For Business Intelligence features such as Integration Services, Reporting Services, and Analysis Services, you may have to install the latest service packs, cumulative updates, and hotfixes on the...
    Vishal Pawar Aug 06, 2017
  • Jaipal Reddy


    In this blog we will learn a basic description about DDL, DML, DQL, DCL, TCL in Sql Server.
    Jaipal Reddy Aug 04, 2017
  • Prakash kumar Jha

    Online Shopping Website In ASP.NET- Open Source Project

    This is an open source project I named online shopping site.This is an online shopping cart application written in ASP.NET (4.0) and C# where a user can browse, add items to the shopping cart and p...
    Prakash kumar Jha Aug 02, 2017
  • suhas Dingankar

    What Is Normalization?

    Normaliztion is the process of arranging and managing data
    suhas Dingankar Aug 01, 2017
  • Rahul Bansal

    Find The 3rd Or Nth Highest Salary In A Table Via SubQuery

    This article describes how to find the 3rd or Nth highest salary in a table. To find the Nth highest salary, we need to create a table in the database containing some data and to do this use the fo...
    Rahul Bansal Aug 01, 2017
  • Nisarg Upadhyay

    SQL Script To Insert Images, Document In Table

    This script will perform bulk insert of images, documents in table.
    Nisarg Upadhyay Jul 30, 2017
  • Vikrant More

    Statistics And Cost Estimation Internals - Part One

    Incorrect cardinality and Cost Estimation may lead query optimizer to choose inefficient plans which can have a negative impact on the database performance. In this article we are going to look dee...
    Vikrant More Jul 30, 2017
  • Ravi Kiran Chanduri

    Bitwise Operators In SQL

    Bitwise operators in SQL server. Bitwise AND (&) and Bitwise Exclusive OR(^)(Caret symbol use in MS SQL server)
  • Vishal Nayan

    Creating And Managing Stored Procedure In SQL Server 2008

    In this article you will learn how to Create and Manage Stored Procedure in SQL Server 2008.
    Vishal Nayan Jul 27, 2017
  • Vadim Loboda

    Combination Of Id-ParentId And HierarchyId Approaches To Hierarchical Data

    How to combine the Id-ParentId and HierarchyId approaches to keep and fetch the data in hierarchical and alphabetical order.
    Vadim Loboda Jul 26, 2017
  • Ajeet  Malviya

    Delete Duplicate Rows In SQL

    The delete query should delete all duplicate rows except one. The output should be as shown below, after the delete query is executed.
    Ajeet Malviya Jul 25, 2017
  • Vignesh Mani

    Taking Script From Database In SQL Server In Different Mode

    This article explains how to take the script from database in SQL server in a different mode. Normally we take back up our entire database as “.bak, .mdf, .ldf” file but sometimes we need to alter,...
    Vignesh Mani Jul 17, 2017
  • Jayesh  Agrawal

    Create SSRS Drilldown Report

    Create SSRS drill down report, add link enable/disable based on specific condition, adding download links in reports.
    Jayesh Agrawal Jul 17, 2017
  • Anil Jha

    Rename Table And Column Name In SQL Server 2014

    Most of the time, if we have to rename a table or rename a column, we usually drop table and create table again, but with this approach we lose data. This approach may work in a development environ...
    Anil Jha Jul 14, 2017
  • Pankaj Sapkal

    Mirroring Database In SQL Server

    When there is any automatic failure we need another server that will monitor the principal server.
    Pankaj Sapkal Jul 12, 2017