April 2002
Intermediate to advanced
416 pages
11h 50m
English
Example program ExploreServer, shown in Figure 13.4, uses SQL Server’s stored procedures to study a server. It uses the sp_databases stored procedure to list the server’s databases. For each database in the server, it uses sp_tables to list the database’s tables. For each table in the databases, it uses sp_columns to list the table’s columns.

Program ExploreServer uses the code shown in Listing 13.4 to display the server’s structure. When the user selects the File menu’s Server command, the ...
Read now
Unlock full access