• English
  • Français
  • Español
  • Português
  • Deutsch
  • Italiano
SQL and IT Tutorials
  • T-SQL
  • SSIS
  • Python
  • MS-DOS
  • Power BI
  • Powershell
  • Windows
  • T-SQL errors
  • SSMS
  • Excel
HomeT-SQL

T-SQL

The Microsoft T-SQL or Transact-SQL language is the SQL Server database programming language.

Indeed, T-SQL allows developers to cerate SQL Server queries and programs. It is specific to Microsoft databases.

It allows, for example, to declare variables, to create tables and temporary tables, views, functions and procedures. More generally, to run all the SQL commands offered by SQL Server.

T-SQL

How to Pivot Rows To Columns in SQL Server ? Simple Query

26 February 2024

How to transform data from rows into columns using a SQL Server query? Follow this SQL tutorial and query examples on how to use the SQL Server PIVOT operator to convert rows of data into columns. But the syntax …

T-SQL

How To Get the List of All Tables in SQL Server ?

12 February 2024

To audit a MSSQL database and its tables, it is common to want the list of tables in the form of a table or an Excel spreadsheet. This SQL query allows you to list all the tables in a …

T-SQL

How To Use IF THEN ELSE in SQL Server?

25 December 2023

What is the syntax of the IF THEN ELSE in SQL Server code and how to use it ? Transact-SQL comes with rich features allowing dynamic and also robust data manipulation, and among these, the IF THEN ELSE statement …

T-SQL

How To Display Month Name In SQL Server ?

18 December 2023

To display the full month name in all letters from a date using a SQL Server query? The SQL Server database offers T-SQL methods to display the month name in diverse formats, including name in all letters, abbreviations, and …

T-SQL

How To Manage Line Breaks in SQL Server ?

11 December 2023

How to insert or remove SQL Server line breaks, also called carriage returns in strings, columns and variables? Transact-SQL scripts to manage line breaks in SQL Server strings stored in columns or variables. In other words how to remove …

T-SQL

How to Calculate Difference Between Two Dates in T-SQL ?

4 December 2023

Learn 4 different methods to get the difference between two dates using SQL Server time functions. With the SQL Server time functions, it is possible to calculate the difference between two dates in hours, minutes, and seconds. But this …

T-SQL

How to modify a table in SQL Server using ALTER TABLE ?

23 November 2023

T-SQL script examples to modify SQL Server tables using ALTER TABLE statements. How to modify a SQL Server table with a simple script, using the ALTER statement? Simply connect to the server hosting the instance using SSMS for example. …

T-SQL

How to convert a string to a date format in SQL Server ?

20 November 2023

Different solutions to convert a date stored in a text to a date format using T-SQL functions. When working with data in SQL Server, you may encounter situations where you must convert dates that are stored as strings to …

T-SQL

How to create a SQL Server stored procedure ?

17 November 2023

T-SQL tutorial on how to create and run basic SQL Server stored procedures. To create a simple SQL Server stored procedure, use the CREATE statement. A SQL Procedure is nothing more than T-SQL code stored in a way that …

T-SQL

How to create a SQL Server stored procedure with parameters ?

16 November 2023

T-SQL tutorial to create a SQL Server stored procedure with input parameters and T-SQL variables. Create a SQL Server stored procedure with parameters and default values. The goal of SQL procedures is to group and schedule a set of …

Posts pagination

« 1 2 3 … 10 »

Latests

  • Create SQL Server user with SSMS and set up access rights
    25 March 2024
  • Full-Text Search is not installed or a full-text component cannot be loaded
    18 March 2024
  • Enable SSIS package logging in SQL Server
    18 March 2024
  • How to Find Duplicate Records in SQL Server: A Comprehensive Guide
    15 March 2024
  • Import CSV file into SQL Server using SSIS
    14 March 2024
  • SQL Server UNPIVOT Example
    13 March 2024
  • How to Split a String after a Character with SQL Server ?
    12 March 2024
  • Display Month Name in SQL Server in Different Languages
    11 March 2024
  • How to Connect to a SQL Server Database using SSIS ?
    8 March 2024
  • How to Get the Size of all Tables in SQL Server ?
    7 March 2024
MS BI & Scripting
  • SSIS Training
  • SSAS
  • Power BI
  • SSRS
  • MS-DOS
  • Powershell
  • Python
  • Azure
Windows & Office
  • Windows
  • Excel Tips
  • Word tips
T-SQL Programming
  • T-SQL Tutorial
  • Tables
  • Views
  • Stored Procedures
  • Functions
  • SQL Server Errors
  • SQL Server DBA
  • SSMS
More IT Topics
  • Blog
  • IT Concepts
  • Linux
  • MySQL
  • WordPress
Social
  • Youtube
  • Twitter
  • Facebook
Privacy & Contact
  • Privacy Policy
  • Contact Us
About Us
  • Who are we? Data engineers.

    I am an expert on Microsoft Business Intelligence and I have been working in the field of data integration and analysis since 2009, and I have been working in the IT field since ...

2011 - 2024 | Expert-Only.com

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}
  • English
  • Français
  • Español
  • Português
  • Deutsch
  • Italiano