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
Database Recovery (1-2-1): Use Transaction Log to Recover the Deleted or Modified Data
This article is to use of Transaction Log to Recover the Deleted or Modified Data. The SQL Server Transaction Log plays an important role in recovering deleted or modified data if you mistakenly pe...
George
Oct 31, 2023
Error handling in Transact-SQL (T-SQL)
Effective error handling in T-SQL (Transact-SQL) is vital for managing unexpected issues in database operations. Using TRY-CATCH blocks, RAISEERROR, and error functions like ERROR_MESSAGE and ERROR...
Sreenath Kappoor
Jul 13, 2024
How to Convert varbinary to Base64 String in SQL Server
Learn how to convert varbinary data to Base64 strings in SQL Server using XML functions and the CAST method. This tutorial provides clear steps and SQL examples for encoding binary data, crucial fo...
Vijay Yadav
Jul 03, 2024
SQL: Writing Efficient Queries
Learn how to optimize SQL queries for better performance with our guide on "SQL: Writing Efficient Queries." Discover techniques for improving query speed, such as indexing strategies, qu...
Vijay Yadav
Jul 10, 2024
UNION ALL SQL Server: Syntax, Usage, and Example
UNION ALL in SQL Server is a powerful command used to combine the result sets of two or more SELECT statements, including all duplicate rows. This guide covers the syntax, usage, and practical exam...
Jaimin Shethiya
Jul 08, 2024
Understanding Synonyms in SQL Server
Understanding Synonyms in SQL Server" delves into the concept and implementation of synonyms within SQL Server. This guide covers how to create, use, and manage synonyms to simplify SQL querie...
Naveen Kumar
Jul 08, 2024
Ranking Functions in SQL: RANK, DENSE_RANK, and ROW_NUMBER
Learn how these powerful functions operate within SQL queries to assign ranking values based on specified criteria, enhancing your ability to analyze and manipulate data efficiently in relational d...
Ashutosh Singh
Jul 03, 2024
How to Seed Identity in SQL Server
Discover SQL Server's IDENTITY columns for automatic unique number generation. Learn to create tables with IDENTITY, insert data without specifying IDs, seed values with DBCC CHECKIDENT, manage...
Vijay Yadav
Jul 03, 2024
Query to Find SQL Server Version
To identify the version of SQL Server running, use the query SELECT @@VERSION AS 'SQL Server Version';. This returns detailed information including version number, edition (like Developer E...
Sreenath Kappoor
Jul 02, 2024
Query to find Table Name, Row Count, Column Count and Data Size
This guide covers techniques to query and display table names, row counts, column counts, and data sizes efficiently. Ideal for database administrators and developers seeking to optimize data manag...
Sreenath Kappoor
Jul 02, 2024
Database Objects Related to Table in Database - Transact SQL Query
The SQL query retrieves distinct object names and their types from SYSCOMMENTS and SYSOBJECTS system tables, categorizing objects by their XTYPE values ('P' for procedure, 'V' for v...
Sreenath Kappoor
Jun 29, 2024
Primary Key and Unique Key Constraints
Primary Key and Unique Key Constraints in database management ensure data integrity and uniqueness. A Primary Key ensures each row is unique and not null, with only one per table. Unique Keys also ...
Sreenath Kappoor
Jun 29, 2024
New Features In SQL Server 2016
SQL Server 2016 introduces numerous features for enhanced database management, including Always Encryption for secure data storage, JSON support for data interchange, Row Level Security for access ...
Jignesh Trivedi
Apr 15, 2016
SQL Server 2016 - How To Detect The Current Cumulative Update/Service Pack That Was Installed
Learn how to detect the current Cumulative Update or Service Pack installed on SQL Server using various methods like ServerProperty in T-SQL, SQL Server Management Studio, Configuration Manager, an...
Mohamed El-Qassas (Mvp)
Nov 05, 2017
UNION SQL Server: Syntax, Usage, and Example
This article delves into the UNION operator in SQL Server, explaining its syntax and practical usage. You'll learn how to combine results from multiple SELECT statements into a single result se...
Jaimin Shethiya
Jun 28, 2024
IIF in Microsoft SQL Server
IIF function in SQL, also known as "Immediate If," provides a concise way to perform conditional evaluations within queries. It allows SQL developers to return different values based on w...
Sreenath Kappoor
Jun 21, 2024
SQL Merge Statement: Syntax, Usage, and Example
The SQL MERGE statement combines INSERT, DELETE, and UPDATE operations into a single query, synchronizing data between source and target tables based on key fields. This powerful command efficientl...
Jaimin Shethiya
Jun 25, 2024
Learn CRUD Operations in SQL Server with Real-World Examples
CRUD represents the four basic operations: Create, Read, Update, and Delete, essential for managing persistent data in SQL Server. The Create operation involves adding new records to a table using ...
Naveen Kumar
Jun 21, 2024
Memory Management in SQL Server
Memory management in SQL Server is crucial for optimizing database performance. This involves configuring memory allocation, managing the buffer pool, and tuning queries to ensure efficient use of ...
Ajay Kumar
Jun 21, 2024
Backing Up and Restoring a SQL Database
In database management, ensuring data integrity and availability is paramount. Regularly backing up your database is crucial to mitigate risks such as hardware failures, software issues, or acciden...
Jitendra Mesavaniya
Jun 19, 2024
No Records Available.
81
-
100
of
1687
<<
3
4
5
6
7
>>
Learn SSRS In 11 Hours
Challenge yourself
SQL Server
E-Book Download
Get Certified
Cognitive Service