![]() |
Learn more about Toad for SQL Server Find solutions and downloads at the |
< To bookmark a page, right-click the Page Title and select Add to Favorites / Bookmark This Page |
Toad for SQL Server 5.7 |
The following script adds a set of prompts so you can quickly specify the number of tables to create and if you want to include data, prompts you for the number of rows to insert. Toad then creates the tables and populates the data.
--: 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
--:
--: