pubs Sample Database (T-SQL)

The pubs sample database is modeled after a book publishing company and is used to demonstrate many of the options available for a Microsoft® SQL Server™ database. The database and its tables are commonly used in the examples presented in the documentation content.

If you have made changes to the pubs database, you can reinstall it using files located in the Install directory of your SQL Server installation. The installation process requires two steps:

  1. From the command prompt, use the osql utility to run the Instpubs.sql script. This drops the existing pubs database, creates a new one, and defines all the objects in the database.
  2. From the command prompt, run Pubimage.bat. This inserts image values into the pub_info table.

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.