May 2019
Intermediate to advanced
484 pages
11h 23m
English
An ad hoc query is a T-SQL query that is sent to the server as a block of text with no parameter markers or other constructs. They are typically built on the fly, such as a query that is typed into a query window in SQL Server Management Studio (SSMS) and executed, or one that is sent to the server using the EXECUTE command as in the following code example which can be executed in the AdventureWorks sample database:
EXECUTE (N'SELECT LastName, FirstName, MiddleName FROM Person.Person WHERE PersonType = N''EM'';')
Read now
Unlock full access