Learn more about Toad for SQL Server Find solutions and downloads at the |
Toad for SQL Server 6.6 |
The following script demonstrates how to use Toad Script functions. This script creates the number of tables you specify. The script prompts you for the number of tables to create and the number of rows to create.
For more information about Toad Script functions and how to use them, see About Toad Script.
--: PROMPT tableCount = 'Enter the number of test tables to create'
--: SET i = 0
--: WHILE i <
--: SET i = i + 1
CREATE TABLE
--:
--: NOTIFY 'Done creating tables.'
--: ASK
--: IF
--: PROMPT
--: SET i = 0
--: WHILE i <
--: SET i = i + 1
--: SET
--: WHILE
INSERT INTO
--: SET
--:
--: PRINT 'Completed filling table ' || i
--:
--: