SQL - 2071B 02
SQL - 2071B 02
Using Transact-SQL
Querying Tools
Overview
Templates
Are starting points for creating objects in
a database
Contain parameters to help you
customize scripts
Format for Template Parameter
Definitions
<parameter_name, data_type, value>
Using the osql Utility
EXECUTE
('USE ' + @dbname + ' SELECT * FROM ' + @tblname)
GO
Using Batches
Use the osql Command-line Utility for Batch Files and Sche