Click here to Skip to main content
13,894,318 members

T-SQL

Great Reads

by dale.newman
Google your SQL.
by Vadim Loboda
How to combine the Id-ParentId and HierarchyId approaches to keep and fetch the data in hierarchical and alphabetical order.
by DaveDavidson
In this article, I show LINQ to Entities syntax that will produce queries with CROSS APPLY and LEFT OUTER JOIN clauses.
by Ed Wiebe
Can't we obtain the benefit of using bitwise operators for SQL many-to-many relationships AND maintain referential integrity?

Latest Articles

by essentialSQL
In this lesson, we’re going to learn about the While Loop. So, what is a While Loop? Well, While Loop is set up using a While statement. While statements are used to repeatedly execute a block of SQL statements.
by essentialSQL
In this SQL minute we’ll look at how you can use hierarchyid to query hierarchy data.  This is a two-part article.  In this article we look at how to do one query to get portion of the hierarchy.
by digimanus
In this article, the creation of dynamic pivots are explained. This works on SQL Server from version 2005 and above!
by tranthanhtu.vn
How to build the SPA for enterprise application using Angular2 and WebApi (RESTful)

All Articles

Sort by Score

T-SQL 

16 May 2013
dale.newman
Google your SQL.
17 Jul 2017
Vadim Loboda
How to combine the Id-ParentId and HierarchyId approaches to keep and fetch the data in hierarchical and alphabetical order.
12 May 2017
DaveDavidson
In this article, I show LINQ to Entities syntax that will produce queries with CROSS APPLY and LEFT OUTER JOIN clauses.
26 Jul 2017
Ed Wiebe
Can't we obtain the benefit of using bitwise operators for SQL many-to-many relationships AND maintain referential integrity?
30 May 2017
tranthanhtu.vn
In this article, We will learn why do we need to manage the stages of our application.
19 Aug 2017
Afzaal Ahmad Zeeshan
.NET Core 2.0 brings a lot of improvements to the system, and it brings a lot of pain to the developers as well. I had a lot of problems upgrading .NET Core 1.x apps to .NET Core 2.0; I yet have to feel the promise it makes about performance and so, but let us see how to upgrade our existing applica
2 Jun 2017
AhsanAhmed
A brief introduction on how to use FOR XML clause in AUTO mode in Microsoft SQL Server to return data in XML format
18 Feb 2016
Kuv Patel
Debug stored procedures in Visual Studio and SQL Server Management Studio.
7 May 2017
Michael Lockwood
This article illustrates how to call a web service using SQL Server Integration Services (SSIS), store the XML results in a SQL Server database table then query the XML using XQuery.
29 Nov 2012
RovenetBill
ASP.NET c# component for editing SQL tables with plug-in column format adapter architecture.
11 Jul 2016
Jesus Carroll
Despite the references of several sources of unattended installation of Microsoft SQL Server Database Engine, in this article describes a script tested in real production environments and it can be used with minimal or - perhaps - no modifications.
4 Oct 2016
Martin Lachman
How to create a system on MS SQL Server for detection of actual changed records in a database table.
2 Jun 2017
AhsanAhmed
A brief introduction on how to use FOR XML clause in EXPLICIT mode in Microsoft SQL Server to return data in XML format
8 Dec 2016
Kuv Patel
Decrypt Stored Procedures, Views, Functions, and Triggers in SQL Server
22 Apr 2016
Emmanouil Gimissis MSc ICSD
Calculating progressive sums in
16 Apr 2017
Vadim Loboda
A way to deliver more details about an error or exception from an SQL Server database through an ASP.NET web application to a web client.
26 Jul 2018
Dathuraj Pasarge
Mirroring setup without any DBA effort - on every new DB creation on the SQL Server !!!
30 Apr 2018
Ryan G Conrad
Using Powershell and Windows Task Scheduler API to detect malicious login attempts on a remotely accessible SQL Server database
7 Jun 2018
Gunnar S
Third article in a series of three regarding NServiceBus, WebAPI and Azure Service Fabric
8 Dec 2015
Jovan Popovic(MSFT)
Overview of built-in support for JSON text processing in new SQL Server
21 Mar 2016
Sergey Syrovatchenko
Starting from SQL Server 2005, the default trace is enabled by default on every SQL server. Default trace is a lightweight system trace, which stores a lot of useful information about the changes in the system...
25 Mar 2018
Ryan G Conrad
Prevent brute-force login attacks on a remotely accessible SQL Server database using T-SQL
19 Apr 2016
VijayRana
Mongo DB Tutorial and Mapping of SQL and Mongo DB Query
3 Oct 2016
Mark W Solomon
In this article, I developed a way to determine all the SQL Servers in our environment at will and filter this information into Microsoft's Sunset report for Microsoft SQL Server and present all this information in an SSRS report.
11 Mar 2014
Moises Barba
Implementing the Repository and Unit of Work Patterns dynamically using Kerosene ORM
2 Jun 2017
AhsanAhmed
A brief introduction on how to use FOR XML clause in RAW mode in MS SQL Server to return data in XML format
8 Jul 2016
Jovan Popovic(MSFT)
In this article you can see how easily you can easily expose your database data via REST services developed using ASP.NET Core Web API and new JSON support in Azure SQL database and SQL Server 2016
25 Jun 2018
Dirk Bahle
A quick guide to managing 100000'ish records efficiently with SQLite and C#/.Net.
2 Dec 2011
Huisheng Chen
Monitor SQL Server processes and jobs, view executing SQL query, kill process / job, object explorer, database shrink/log truncate/backup/detach/attach, object version control & compare
19 Dec 2018
digimanus
In this article, the creation of dynamic pivots are explained. This works on SQL Server from version 2005 and above!
8 Nov 2018
Srinivasa Dinesh Parupalli
Importing Documents from SQL Server to Azure Cosmos DB
12 Jul 2016
Mahsa Hassankashi
This article illustrates how to use Node.js by WCF which is written in C# and using node.js as real time communication technology with the aid of C# code to connect MS Sql Server.
7 Aug 2016
Rahul S Chavhan
Validate an XML document in SQL Server using XSD by Rahul Chavhan
24 Mar 2014
jurhas
Supervisory Control and Data Acquisition for ARDUINO
24 Aug 2016
Suvendu Shekhar Giri
Introduction of new useful features in SSMS 2016
3 Mar 2016
Gene R. Browning
Get a quick look at your data characteristics using this tool.
23 May 2016
Miljan Radovic
Simple, open-source, fully customizable, lightweight SQL Server scheduler
1 Nov 2016
Bob Crowley
In this article, I will explain the sometimes surprising behavior of  the ADO.NET SqlParameter and particularly the effects of ParameterDirection, null value and DBNull.Value on how the parameter is sent to the database.
6 Feb 2017
Anuja Pawar Indore
Multi-Tenancy means same instance shared amongst all customers.
17 Sep 2016
Snorri Kristjansson
A SQL server CLR Stored Procedure that can query the Active Directory directly in T-SQL code
30 Dec 2015
Daniel Miller
This article describes standard naming conventions for tables and columns, and it provides code that leverages the conventions to visualize dependencies and automatically validate and generate foreign key constraints.
11 Dec 2017
Steven L. Wentworth (12896862)
Straightforward generation of and ensuring accuracy for DimDate values.
11 Jun 2013
Tom Glick Philadelphia, US
Using WCF REST Service to call Stored Procedures and run queries on SQL Server.
22 Sep 2016
Alexandros Pappas
This project provides utilities for SQL server, such as executing a list of SQL scripts, exporting data to an SQL script, and displaying relationships between records.
16 Aug 2016
Alexandros Pappas
An SQL script to see the table hierarchy in a database.
24 May 2017
Zahid Nawaz Ch.
SqlDependency ,can be used to pick changes without executing query to see there is any update from database , WHERE CLAUSE can also be applied for narrowing scope, Its way to push changes from SQL Server to SQLDependency , .NET library , SQL Server Broker service sends updates to SQLDependency.
9 Oct 2016
Md._Mehedi_Hasan
CRUD operation in .net MVC using Stored Procedure for Single and List Object Data along with SQL Transaction.
21 Nov 2018
tranthanhtu.vn
How to build the SPA for enterprise application using Angular2 and WebApi (RESTful)
21 Nov 2016
sunettew
In this article we will show how you can use SSIS with geometry and intersect.
23 Mar 2018
Robert Vandenberg Huang
An Entity Framework log printer that converts SQL commands to executable T-SQL statement
1 Jul 2015
Frank J. Yang
This article provides code for decoding strings that have been encoded for URL transmission in pure T-SQL that works properly for all URL encoded strings.
13 Dec 2015
Miljan Radovic
Script to generate DimDate for specified date range
3 Jan 2018
Member 11127135
The ETL Process and Range Lookups
26 May 2012
meduff
Avoid Entity Framework lazy-loading relationship navigation when iterating large record sets.
24 Aug 2016
Roman Ivantsov
The article provides a comparative analysis and gives patterns of using explicit locks to manage concurrent access to database documents (data split over multiple tables) in MS SQL Server, MySql, PostgreSql and Oracle. As it turned out, the solution is not always obvious or simple.
29 May 2017
Tomáš Bauer
Capture of a Typical SQL Server Database Workload
25 Mar 2018
Ryan G Conrad
Additional logging and data collection
14 Feb 2017
saddam_msp
Download files using T-SQL server which is very much faster then any other option.
26 Mar 2018
Ryan G Conrad
More configurations and auditing tools
26 Jul 2016
Dahal Mahesh
Migrate cold data from your table to Microsoft Azure for cost effective and efficient storage of data, without any code level changes.
17 Mar 2016
Daniel JXHV
No more ORM, EF, A Stored Procedure direct Access framework for JavaScript.
19 Nov 2012
Code Effects
This article discusses the use of one such new feature, namely, rule-based filtering of LINQ queries using Web Rule, the XML-based super-fast rules engine, implementable as an ASP.NET or MVC component.
1 Aug 2014
Chris_Yates
When managing a large amount of servers and databases, having an efficient way to search for objects in a particular database, SQL Server instance or the object metadata is crucial. DBA Chris Yates tells us why SQL Search from Red Gate helps him achieve this with ease, and at no cost.
18 Apr 2016
Alex_2979
A lot of modern Business Intelligence solutions offer to transfer work of analysts to developers or rise technical level of business analysts, make them closer to developers. Instead of it, I advise to consider a solution, which takes information from Database and gives it to business analysts.
10 Mar 2017
Redgate Software
SQL Clone exploits the existing virtualization technology within Windows to take much of the sting out of the traditional problems surrounding database provisioning.
22 Sep 2017
Redgate Software
If you could gain an extra hour in your working day, what would you spend it on? One way to save time and work efficiently, is to use tools available at your fingertips. Learn how SQL Prompt Core, included free in Visual Studio Enterprise, helps you speed up working with SQL and be more productive.
11 Sep 2018
Steven L. Wentworth (12896862)
Using combination arithmetic to improve quality of SQL table design and execution
26 Oct 2016
Rahul_Biswas
A simple explanation of the recursive CTE concept of T-SQL
12 Apr 2016
Aqeeel
Having not ONE but TWO Identities in a single SQL Server Table


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190306.1 | Last Updated 18 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid