Design, manage and edit stored procedures! Required reading for professional SQL Server, Visual Basic, Visual InterDev and other enterpise developers. CLICK TO BUY!

Required reading for professional  SQL Server  developers!

© 2000 - Trigon Blue Inc. 
All rights reserved.



Sample Code, Databases, and Updates


Sample database

  • Asset sample database (500KB - recommended). Prepared for users of SQL Server 2000 (all editions except SQL Server CE). See diagram.
  • Script of Asset database (just code - no data) for SQL Server 2000.
  • Asset database prepared for users of all editions of  SQL Server 7.0 including MSDE 1.0 (253KB). This database contains a subset of procedures which demonstrates features that work with SQL Server 7.0.
  • Script of Asset database (just code - no data) for SQL Server 7.


Published Updates

 


Sample Database Installation on SQL Server 2000

Installation is described in Chapter 1 of the book. Unfortunately, there is a formatting error on page 11. The sp_attach_db statement requires database files to be delimited by single quotes and naturally, parameters should be delimited with a comma:

EXECUTE sp_attach_db 'Asset', 
'c:\program files\sql server\mssql\data\Asset_data.mdf',
'c:\program files\sql server\mssql\data\Asset_log.ldf'

(Again, if the location of the sample database is different on your machine, change it.)

 

Sample Database Installation on SQL Server 7.0

Use sp_attach_single_file_db procedure instead of sp_attach_db:

EXECUTE sp_attach_single_file_db 'Asset', 
'c:\program files\sql server\mssql\data\Asset_data.mdf'

(Again, if the location of the sample database is different on your machine, change it.)

 

Sample Chapter

Chapter 12 - XML Support in SQL Server 2000

 

Sample Database Diagram 

   

ERD of Asset sample database of SQL Server 2000 Stored Procedure Programming

Home | Products | Services | Book of Knowledge | e-Business News | SQL Server News
About Us | Contact Us | Join Us | Links | Search