-
Unconditional and scheduled execution
Unconditional execution (the GoTo Statement) in T-SQL forces the server to continue the execution from a label within a stored procedure or batch. Scheduled execution (the WaitFor Statement) allows the developer to schedule a time for the remaining s... Tutorial
-
Character string data types
There are four different character data types that store character strings: char, varchar, varchar(max), and text. There are also four character data types for storing unicode data: nchar, nvarchar, nvarchar(max) and ntext. This book excerpt on T-SQL... Tutorial
-
Blocks, looping and conditional flow control statements
Statements blocks (Begin…End) can be used to group several statements to be executed together. Conditional execution (If statements) are used to change the flow of code based on the value of a condition. T-SQL contains only one statement that allows ... Tutorial
-
Flow control statements
T-SQL flow-control statements require skill and lack user friendliness, yet they allow for complex procedures. This book excerpt covers the use of comments. Comments can be included inside the source code of a batch or stored procedure. Comments are ... Tutorial
-
Database object qualifiers
The name of a database object has four identifiers. These identifiers must comply with the rules for T-SQL identifiers. This is referred to as the object's fully qualified name. The following excerpt outlines the different schemas that can be created... Tutorial
-
Global variables
Your SQL Server maintains values in global variables. They carry information specific to the server or user session and can be examined from anywhere and return one value. Get more on this and how global variables begin with the @@ prefix and do not ... Tutorial
-
T-SQL identifiers
T-SQL Identifiers are used in all databases, servers and database objects in SQL Server. Identifiers are assigned to identify and object when it is created, but can be changed after. Rules and tips for creating identifiers are outlined in the followi... Tutorial
-
Table variables
Table variables are similar to temporary tables and are declared using the table data type. This following book excerpt contains further explanations and examples for declaring table variables when working T-SQL programming constructs. Tutorial
-
Local variables
SQL Server 2005 recognizes only local and table variables. This book except outlines operations such as declaring variables, assigning values with the select, set, or update statement; and displaying values. Also find some workarounds for potential p... Tutorial
-
Basic Transact-SQL programming constructs: 15 tips, 15 minutes
The programming language used in Microsoft SQL Server is called Transact-SQL (T-SQL). It complies with the ANSI SQL-92 standard, and you can use this ANSI SQL-compliant language to select, update, insert and delete records from tables. Book Excerpt
- See More: Essential Knowledge on SQL-Transact SQL (T-SQL)
-
SQL Server freebie: PromptSQL for word completion
This add-on application, available for a 30-day free trial, provides auto-complete functionality as you type for programs used to create SQL statements. News | 23 Nov 2005
-
Step 3: Consider using implicit transactions
Get up to speed on server-level options to add another layer of integrity protection. Article | 13 May 2005
-
Exploring T-SQL metadata functions in SQL Server 2008
Metadata functions in T-SQL can help uncover information about database names, objects and more. Learn the basics of metadata functions and how to apply them here. Tip
-
Uncovering database file information with T-SQL metadata functions
Admins can use metadata functions to reveal detailed information about SQL Server files and filegroups, including file names, IDs and file properties. Tip
-
Inspecting property settings with T-SQL metadata functions
There are plenty of other uses for SQL Server 2008 metadata functions beyond just the basics. This includes the ability to view object properties, such as columns and data types. Tip
-
An introductory look at T-SQL system functions
Get the basics on working with various system functions in T-SQL to help assess the finer details of your data. Tip
-
Digging deeper with T-SQL system functions and language tools
Learn how system functions can be used in T-SQL to view general session and system information along with other types of data in Microsoft SQL Server. Tip
-
The basics of SMO scripting for database objects
The use of SQL Server Management Objects streamlines the process of scripting database objects, allowing DBAs and developers to customize code using basic SMO scripting know-how. Tip
-
Dissecting the SELECT query syntax in T-SQL
With so many possible options and extensions, translating complex SELECT statements can be a challenge. DBAs can clear the air by breaking them down piece by piece. The Reluctant DBA
-
T-SQL subquery basics: When and how to apply them in SQL Server
Subqueries in T-SQL give admins flexibility when it comes to analyzing the inner details of subsets of data. Learn how to apply subqueries with this comprehensive rundown. Tip
-
Combining T-SQL subqueries with operators in SQL Server
Using subqueries with different operators allows admins to collect even more information from T-SQL statement. Learn the basics of each and how to implement them here. Tip
-
Programming SMO applications for improved management, automation
SQL Server Management Objects can be very helpful when used with (or even instead of) T-SQL, particularly when it comes to monitoring database backups and space utilization. Tip
- See More: Tips on SQL-Transact SQL (T-SQL)
-
Manipulate column names in a SQL Server table
Learn SQL Server commands to manipulate column names in a table and turn column names into variables or rename SQL columns. Ask the Expert
-
SQL Server trigger vs. stored procedure to receive data notification
Learn why using a SQL Server stored procedures vs. a trigger can be a preferred method to retrieve data notification from a database field. Ask the Expert
-
INSTEAD OF trigger to update a SQL Server table
Find how to use INSTEAD OF trigger to update a SQL Server table for myDate and myTime. Ask the Expert
-
Command to seed identity column in a SQL Server table
Take a look at this command using a variable to seed an identify column in a SQL Server table. Ask the Expert
-
Executing a trigger before SQL Server table is updated
Triggers in SQL Server can be executed before a table is updated. Get triggers to read and extract table values before and after the table is updated. Ask the Expert
-
VARCHAR and NVARCHAR data types in SQL Server 2005
Having trouble with using VARCHAR and NVARCHAR data types in SQL Server 2005 Express or Enterprise Edition? Learn which properties could be the problem. Ask the Expert
-
SQL vs. T-SQL
SQL Server 2005 and T-SQL do have differences. The advantages and disadvantages would depend user environment as described by SQL Server 2005 expert Adam Machanic. Ask the Expert
-
SQL Server 2005 T-SQL debugging alternatives
With no T-SQL debugger in SQL Server Management Studio you can use Visual Studio 2005's T-SQL debugger, but if you're not a fan of step-debugging, SQL Server 2005 expert Adam Machanic has detailed some alternatives. Ask the Expert
-
How to find and delete file names
SQL Server Development expert Joe Toscano suggests working with the FileSystemObject and ActiveX Script Tasks when listing file names in .bak and .trn extensions. View his helpful sample codes. Ask the Expert
-
Personalized time column
SQL Server Development expert Greg Low explains how to display time in the date column. Ask the Expert
- See More: Expert Advice on SQL-Transact SQL (T-SQL)
-
T-SQL (Transact-SQL)
Word
-
OLE DB (OLEDB or Object Linking and Embedding Database)
Word
-
query
A database query can be either a select query or an action query. A select query is simply a data retrieval query. An action query can ask for additional operations on the data, such as insertion, updating or deletion. Word
-
SQL (Structured Query Language)
SQL (Structured Query Language) is a standard interactive and programming language for getting information from and updating a database. Word
-
Collaboration Data Objects (CDO)
Word
-
fetch
Word
-
DAO (Data Access Objects)
Word
-
ACID (atomicity, consistency, isolation, and durability)
Word
-
commit
Word
-
container
Word
-
The most dangerous game: Hunting down bad SQL query performance
SQL Server is faster when the queries behind your applications are faster. Learn how to spot bad SQL query performance, and then work with developers so you can improve throughput. Feature
-
Exploring T-SQL metadata functions in SQL Server 2008
Metadata functions in T-SQL can help uncover information about database names, objects and more. Learn the basics of metadata functions and how to apply them here. Tip
-
Uncovering database file information with T-SQL metadata functions
Admins can use metadata functions to reveal detailed information about SQL Server files and filegroups, including file names, IDs and file properties. Tip
-
Inspecting property settings with T-SQL metadata functions
There are plenty of other uses for SQL Server 2008 metadata functions beyond just the basics. This includes the ability to view object properties, such as columns and data types. Tip
-
An introductory look at T-SQL system functions
Get the basics on working with various system functions in T-SQL to help assess the finer details of your data. Tip
-
Digging deeper with T-SQL system functions and language tools
Learn how system functions can be used in T-SQL to view general session and system information along with other types of data in Microsoft SQL Server. Tip
-
The basics of SMO scripting for database objects
The use of SQL Server Management Objects streamlines the process of scripting database objects, allowing DBAs and developers to customize code using basic SMO scripting know-how. Tip
-
Dissecting the SELECT query syntax in T-SQL
With so many possible options and extensions, translating complex SELECT statements can be a challenge. DBAs can clear the air by breaking them down piece by piece. The Reluctant DBA
-
T-SQL subquery basics: When and how to apply them in SQL Server
Subqueries in T-SQL give admins flexibility when it comes to analyzing the inner details of subsets of data. Learn how to apply subqueries with this comprehensive rundown. Tip
-
Combining T-SQL subqueries with operators in SQL Server
Using subqueries with different operators allows admins to collect even more information from T-SQL statement. Learn the basics of each and how to implement them here. Tip
- See More: All on SQL-Transact SQL (T-SQL)
About SQL-Transact SQL (T-SQL)
Transact SQL, often called T-SQL, is Microsoft's implementation of the SQL language. Developers for SQL Server database management systems are using T-SQL statements for any application communicating with an instance of SQL Server does so by sending Transact SQL statements to the server. Improve your T-SQL skills with these T-SQL overviews, best practices and stored procedures. In this reference, find out how to script SQL Server backups, why T-SQL in SSIS has pros and cons and what to do about poorly written T-SQL code that's causing SQL Server performance problems.