TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server
FOLLOW
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.
Articles
(1687)
Blogs
(1306)
Resources
(63)
Videos
(59)
News
(31)
Articles
How To Delete Duplicate Rows From A Table In SQL Server
This guide explains how to delete duplicate rows from a table in SQL Server. Using common techniques like ROW_NUMBER() with PARTITION BY, you can identify and remove duplicate rows while keeping th...
Onkar Sharma
Oct 12, 2024
DATETRUNC New T-SQL Enhancements in SQL Server
This new feature simplifies date truncation by allowing developers to truncate dates to specific intervals, such as year, month, or day. It improves query performance and data manipulation in SQL.
Naveen Kumar
Oct 09, 2024
Backup And Restore Your Database Using SQL Server Management Studio (Step by Step)
In this article you will learn how to upload your App to Windows Store (Step by Step), backup and restore your database using SQL Server Management Studio (Step by Step).
Anish Ansari
Nov 07, 2015
DATE_BUCKET Function New T-SQL Enhancements in SQL Server
This article will delve into the DATE_BUCKET function, its syntax, and its practical use cases using the AdventureWorks2022 sample database. We’ll also compare DATE_BUCKET with other similar T-SQL ...
Naveen Kumar
Oct 05, 2024
IS [NOT] DISTINCT FROM New T-SQL Enhancements in SQL Server
The "IS [NOT] DISTINCT FROM" operator is one of the key new T-SQL enhancements in SQL Server 2023. It simplifies SQL queries by handling NULL comparisons more efficiently, improving data ...
Naveen Kumar
Oct 04, 2024
A Fix To PolyBase Issue In SQL Server 2019 Developer Edition
This article will introduce the problem, the reason and the fix related to a PolyBase issue when installing the SQL Server Developer Edition 2019.
George
Dec 20, 2021
How To Send Mail Using SQL Server: Part 2
This tutorial demonstrates how to send emails using SQL Server 2008. It covers configuring an email profile, selecting data from a student table (tblStudents), and binding that data to an HTML-form...
Manish Kumar Choudhary
Nov 21, 2014
NTile Function in SQL Server
The NTile function in SQL Server divides a result set into a specified number of groups, assigning ranks to records within each group. Unlike Dense_Rank, NTile focuses on groups rather than individ...
Jasminder Singh
Jun 25, 2014
Creating Stored Procedures with Managed Code
This article demonstrates how to create a stored procedure in Microsoft SQL Server 2005 using managed code in C#. It details the process of setting up a SQL Server project in Visual Studio, writing...
John Charles Olamendy
Apr 08, 2010
Types of Keys in SQL
In SQL, keys play a crucial role in maintaining data integrity and defining relationships between tables. Common types include the Primary Key, which uniquely identifies records; the Foreign Key, l...
Harminder Singh
Oct 01, 2024
A Detailed Explanation of COUNT in SQL Server
This article explores the differences between SQL counting methods: COUNT(*), COUNT(1), COUNT(column_name), and COUNT(DISTINCT column_name). It highlights their purposes, performance considerations...
Naveen Kumar
Oct 01, 2024
Rank and Dense_Rank Function in SQL Server
RANK and DENSE_RANK functions in SQL Server assign sequential numbers to rows based on ordering. RANK skips numbers for ties, while DENSE_RANK does not. Both can partition results using the PARTITI...
Satish B
Sep 30, 2024
How to Send Mail Using SQL Server: Part 3
In this third installment of our series, "How to Send Mail Using SQL Server," we delve into the configuration and implementation of Database Mail. Learn how to set up SMTP settings, creat...
Manish Kumar Choudhary
Nov 21, 2014
How To Get Unique Records Without Using Distinct In SQL Server
In this guide, you'll learn how to retrieve unique records in SQL Server without using the DISTINCT keyword. We'll explore alternative methods like GROUP BY, ROW_NUMBER(), and Common Table ...
Onkar Sharma
Sep 26, 2024
Create Dynamic Pivot Table Using Store Procedure
Learn how to create a dynamic pivot table using a stored procedure in SQL. This guide covers transforming rows into columns dynamically, automating pivot table creation, and efficiently querying la...
Yogeshkumar Hadiya
Jan 18, 2021
Check Disk Space Utilization by Tables in SQL Server Database
In this guide, learn how to effectively check disk space utilization by tables in a SQL Server database. We’ll cover essential SQL queries and techniques to analyze table sizes, identify storage us...
Jignesh Kumar
Sep 23, 2024
Concurrency in SQL Server
This article will discuss Concurrency in SQL Server
George
Jul 14, 2024
Database Backup With Compression in SQL Server
This article explains how to perform database backup compression in SQL Server 2012 using SQL Server Management Studio or a Transact-SQL statement. It provides a step-by-step guide to visually crea...
Rohatash Kumar
Jan 10, 2013
How to Keep SQL Server Table Columns in Sync
how to keep columns in sync across SQL Server tables using efficient methods like triggers, SQL scripts, and the MERGE statement.
Ishika Tiwari
Sep 19, 2024
Create Backup and Restore Database in SQL Server
This tutorial covers essential techniques for backing up your databases, restoring them when needed, and ensuring data safety. Master these skills to safeguard your SQL Server environment effective...
Satya Prakash
Mar 15, 2013
No Records Available.
21
-
40
of
1687
<<
1
2
3
4
5
>>
Learn SSRS In 11 Hours
Challenge yourself
SQL Server
E-Book Download
Get Certified
Alchemy