Click here to Skip to main content
15,884,473 members
Everything / Database Development / SQL Server

SQL Server

SQL-Server

Great Reads

by Wonde Tadesse
This tip/trick helps to set a default value for blob data type such as Image, VarBinary.
by Jovan Popovic(MSFT)
Mapping properties in EF model to database columns that contain JSON
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Mubin M. Shaikh
Create time dimension with 24 hour plus values and time buckets in your data warehouse

Latest Articles

by GabrieleTronchin
A simple stored procedure to add at your database to keep it reactive
by GabrieleTronchin
Automatic creation of non clustered indexes using system SQL entities
by yuvalsol
POCO generating application for SQL Server
by scastelli
SQL resolves special character challenges, streamlining NULL parameter handling

All Articles

Sort by Updated

SQL Server 

12 Sep 2012 by aasim abdullah
A simple way to swap column values.
12 Sep 2012 by aasim abdullah
Why we should avoid the NOLOCK table Hint in DELETE/UPDATE queries.
12 Sep 2012 by aasim abdullah
To find out whose birthday is coming in a given number of days is very simple.
16 Sep 2012 by aasim abdullah
How to apply filter on sp_MSforeachDB
15 Sep 2012 by aasim abdullah
How to control SQL Server Log Information
17 Sep 2012 by aasim abdullah
SQL Server: Script to generate HTML Report/mail for Databases Current Size, Growth Rate and Available Disk Space
15 Sep 2012 by aasim abdullah
How local variables can reduce query performance in SQL Server
17 Sep 2012 by aasim abdullah
Using logon trigger, users from valid IP addresses can be restricted, but what if you forgot to add in safe list. You will be unable to login though you have sysadmin rights. Use DAC to disable logon trigger.
17 Sep 2012 by aasim abdullah
Smarter Way of Query Load Testing at Testing Server
22 Oct 2012 by aasim abdullah
In SQL Server 2005, there is no way to find out WHO AND WHEN someone changed the compatibility level of a database. Here is a trick for this functionality.
30 Dec 2012 by aasim abdullah
Three common DDL change log methods for SQL Server.
9 Jan 2013 by aasim abdullah
SQL Server: A Query Slow in SSMS, Fast in Application, WHY?
28 Nov 2014 by Afzaal Ahmad Zeeshan
Uploading the files - HTML5 and jQuery way
10 Jan 2015 by Afzaal Ahmad Zeeshan
An overview for connecting an ASP.NET website or a web application to a remote SQL Server database
18 Dec 2016 by Afzaal Ahmad Zeeshan
Overview of SQL Server on Linux
21 Apr 2012 by AlexTatiyants
JSON-oriented document stores like Mongo and Couch have really become the darlings of the web application crowd. Of course, JSON (or BSON) isn't the only game in town. When it comes to document store formats, the other white meat if you will is XML.
2 May 2013 by Amogh Natu
This post shows how to insert a comma-separated string into multiple rows in a table in SQL Server.
20 Aug 2012 by Andrei Ion Rînea
Simpler paging, sequences and FileTables in SQL Server 2012
20 Aug 2012 by Andrei Ion Rînea
Some performance tips
6 Jun 2011 by Andrew Zwicker
A discussion about nightly populated tables and how they have reduced SQL Server load
8 Jun 2011 by Andrew Zwicker
A discussion why having a staging environment with data that mirrors production is vital to tracking down issues.
10 Jun 2011 by Andrew Zwicker
Why table and column documentation is useful and some SQL for setting up the data dictionary tables
13 Jun 2011 by Andrew Zwicker
A continuation of the data dictionary discussion with information about how the documentation is done
24 Jun 2011 by Andrew Zwicker
A discussion of how a separate database is used for storing table backups.
26 Apr 2015 by Anton Angelov
Tutorial how to create test cases statistics for the automation status and their distribution by priority. Steps how to setup SSRS and TFS Data Warehose.
22 Sep 2017 by Anton Burtsev
A few months ago, I had to optimize web portal (classified ad). The portal was built on ASP.NET 1.1. It seemed that portal had two main problems. Here is how I solved them.
26 Jan 2014 by Arun Ramachandran India
What exactly are UNION and UNION ALL in SQL Server
22 Aug 2010 by atverma
In this article I’ll discuss about unit testing SQL Server 2008 Database project using Visual Studio 2010.
23 Aug 2010 by atverma
This is the last article of the series “How to unit test SQL Server 2008 database using Visual Studio 2010”.
23 Aug 2010 by atverma
In this article I will explore the important features that can be configured to build comprehensive database unit tests.
21 May 2013 by Basavaraj P Biradar
The new Merge statement in SQL Server 2008.
19 May 2011 by Ben Liebert
Comparing the performance of AppFabric against SQL Server
4 Sep 2013 by Betclic Tech
How we improved database code quality
21 Sep 2014 by Bob McGowan
Processing SQL Server FILESTREAM Data - Part 1
22 Sep 2014 by Bob McGowan
Utilizing SQL Server FILESTREAM capabilities from .NET
24 Sep 2014 by Bob McGowan
Utilizing SQL Server FILESTREAM capabilities from .NET
14 Oct 2014 by Bob McGowan
In this final installment, we'll finally see some C# code that I used to read and write the FILESTREAM data.
17 Aug 2012 by Bryan O'Connell
Review of the ebook: Brad's Sure Guide to SQL Server Maintenance Plans.
23 Dec 2009 by Bryan Thomas Weikel
CodeProject"LEK" is a three-tier .NET WinForms accounting application that can be configured at run time to use either LINQ to SQL, Entity Framework or NHibernate to access data in either a "main" or "testing" SQL Server database.
31 Dec 2011 by Dave C Andrews
Use ROW_NUMBER() to enumerate and partition records in SQL Server
15 May 2011 by David Truxall
How to fic this error, in Windows Phone 7.
15 May 2011 by David Truxall
Configuring CRM 4.0 for SSRS Without the Data Connector
16 Nov 2013 by Debopam Pal
Using Microsoft.Office.Interop.Excel library, you can bring your data from your database against LINQ query and store them into an Excel Sheet.
14 Sep 2014 by derekman9707
Different types of database backups
9 Jul 2011 by Dinesh K Mandal
Some Hidden Facts about Stored Procedure and Its Optimization
1 Dec 2022 by DotNetLead.com
Deploy existing ASP.NET Core UI, API, and SQL Server to Docker containers
28 Apr 2010 by Duy H. Thai
Some frequently-used methods for image handling in .NET
22 Oct 2014 by essentialSQL
Introduction to Outer Joins in SQL Server
22 Oct 2014 by essentialSQL
Introduction to Inner Joins in SQL Server
23 Oct 2014 by essentialSQL
Simplified Data Modeling in SQL
29 Oct 2014 by essentialSQL
Grouping results returned from your queries using the GROUP BY clause
6 Feb 2015 by essentialSQL
This is the second in a series of articles about subqueries. In this article, we discuss subqueries in the SELECT statement’s column list. Other articles discuss their uses in other clauses.
2 Jan 2016 by essentialSQL
Introduction to SQL Server’s Common String Functions
2 Jan 2016 by essentialSQL
Introduction to SQL Server's built-in conversion functions
4 Jan 2016 by essentialSQL
Introduction to SQL Server's built-in logical functions
5 Jan 2016 by essentialSQL
Commonly used SQL Server data types
11 Jan 2016 by essentialSQL
Basic concepts of built-In functions in SQL Server
14 Jul 2016 by essentialSQL
In this article, we explore non recursive CTEs (Common Table Expressions). This is a broad class, and basically covers every form of CTEs except those that call themselves. This other class is called the recursive CTEs; they are covered in the next article.
4 Nov 2016 by essentialSQL
Introduction to SQL Server Data Modification statements
29 Dec 2016 by essentialSQL
Introduction to cross join - create row combinations
29 Dec 2016 by essentialSQL
Uncommon SQL server data types
30 Dec 2017 by essentialSQL
Benefits of stored procedures and how to create and execute them
30 Dec 2017 by essentialSQL
SQL set operations
30 Dec 2017 by essentialSQL
In this puzzle, we’re going to learn how to find the person whose birthday, among others, is in the middle.
30 Dec 2017 by essentialSQL
In this puzzle, we’re going to learn how to query the data dictionary using SQL Server.
30 Dec 2017 by essentialSQL
In this puzzle, we’re going to learn how to create a dynamic pivot table using SQL Server.
30 Dec 2017 by essentialSQL
In this puzzle, we’re going to learn how to create a cross tab query using SQL Server.
30 Dec 2017 by essentialSQL
How to join dirty data using SQL Server
30 Dec 2017 by essentialSQL
In this video, we'll walk you through how to use the LIKE clause.
3 Mar 2019 by essentialSQL
In this puzzle, we’re going to learn how to work with the AdventureWorks Bill of Materials table.  Companies use a BOM (Bill of Materials) to itemize the products that are used or contained in another product. Solving puzzles is a great way to learn SQL.
25 Apr 2019 by essentialSQL
SQL DISTINCT Clause For SQL Server
26 Apr 2019 by essentialSQL
SQL COALESCE Function and NULL
26 Apr 2019 by essentialSQL
SQL Server Hierarchical Query using the hierarchyid type
14 Aug 2019 by essentialSQL
How to use SQL Server Date functions
14 Aug 2019 by essentialSQL
What is a Data Dictionary in SQL Server?
14 Aug 2019 by essentialSQL
Query plans in SQL
14 Aug 2019 by essentialSQL
What is a Database Trigger?
14 Aug 2019 by essentialSQL
In this blog post, you will learn about stored procedures
14 Aug 2019 by essentialSQL
Truncate and Delete in SQL
14 Aug 2019 by essentialSQL
Difference between WHERE and HAVING clauses
14 Aug 2019 by essentialSQL
How to combine results from more than one table
14 Aug 2019 by essentialSQL
This post discusses the major parts of a SQL database
23 Feb 2020 by essentialSQL
SQL COALESCE function and how you can test for null, and when present, substitute it for another value
13 Mar 2019 by essentialSQL
Examples of common data types in SQL Server and how to define them
29 Dec 2019 by essentialSQL
How to calculate the median value using SQL
29 Dec 2020 by essentialSQL
Understanding SQL full outer join and its reconstruction through other join clauses
10 Apr 2018 by Gaston Verelst
Why you would use Common Table Expressions
28 Aug 2010 by Gediminas Geigalas
This article reviews how my opinion on Stored Procedures changed over time and what disadvantages they bring into your application.
28 Aug 2010 by Gediminas Geigalas
Learn how to serialize System.DateTime for use in SQL Server stored procedures
2 Nov 2019 by Ghanshyam N Patel
How to shrink SQL Server database log file
6 Jan 2011 by Gil Fink
Revisiting XML Configurations In Unity In the past I wrote a few tutorials about Unity application block. One of the things I wrote about was how to configure a Unity container using design time configuration.
13 Aug 2010 by Ivan Krivyakov
Attribute order should not matter in XAML, but sometimes it does...
30 Dec 2015 by Ivan Krivyakov
Christmas Carol: XML Signatures
3 Mar 2016 by Jameson Triplett
Log4j2.xml Tweaks
22 Jun 2010 by JasonShort
Plugins are used in data applications to support more than one provider from a single codebase. The Provider Factories in ADO.NET is one such example, but you cannot work with the provider specific features when you use these factories since they only implement generic ADO.NET functions.
8 Jan 2019 by Jeremy Hutchinson
Update table rows with varying random values in SQL
5 Feb 2016 by jgauffin
Griffin DAL Generator – Take 2
7 Dec 2020 by Jin Vincent Necesario
This article shows you the basics of SQL Schema using the DDL statements.
15 Nov 2013 by Johan Ohlin
Group concatenation in T-SQL using CTE.
15 Nov 2013 by Johan Ohlin
How to use recursive CTE calls in T-SQL.