About 83,000 results
Open links in new tab
  1. Variables (Transact-SQL) - SQL Server | Microsoft Learn

    Jan 28, 2026 · Although earlier versions of SQL Server refer to the @@ functions as global variables, @@ functions aren't variables, and they don't have the same behaviors as variables.

  2. How to Declare a Variable in SQL Server? - GeeksforGeeks

    Jul 23, 2025 · Variable declaration in SQL Server is an essential requirement to handle and process data efficiently in SQL scripts, stored procedures, and functions. Variables can be …

  3. SQL Variables: Basics and usage

    Nov 18, 2019 · In this article, we have explored the concept of SQL variables from different perspectives, and we also learned how to define a variable and how to assign a value (s) to it.

  4. SQL Declare Variable Code Examples - SQL Server Tips

    Oct 30, 2025 · Learn how to define and use variables in SQL Server code with these many different SQL Declare Variable code examples.

  5. SQL Variables: SQL Server Declare, Set and Select Variable

    Jun 28, 2024 · SQL variables are the object which acts as a placeholder to a memory location. Various types of SQL Server variables, such as SQL Declare, Set, Select, Global, Local, etc.

  6. T-SQL Variables - Declare and Set variable

    Understanding how to declare, initialize, and manipulate variables is fundamental for anyone looking to master SQL Server programming. In SQL Server, variables are used to store and …

  7. How to Declare and Assign Value to a Variable in SQL Server

    May 2, 2025 · Understanding how to declare and assign values to variables is essential for writing efficient and maintainable SQL scripts. In this guide, we will explore different ways to declare …

  8. Variables in SQL Server Stored Procedures

    This tutorial introduces you to variables including declaring variables, setting their values, and assigning value fields of a record to variables.

  9. SQL Server: Declare Variables - TechOnTheNet

    Learn how to declare variables in SQL Server (Transact-SQL) with syntax and examples. In SQL Server (Transact-SQL), a variable allows a programmer to store data temporarily during the …

  10. Working with Variables and Constants in SQL Server

    Oct 7, 2023 · When working with SQL Server, it’s important to understand how to use variables and constants in your scripts. In this article, we will explore the basics of working with variables …

    • Reviews: 1