Chapter 2 doesn't contain any source code. It does show several scripts for creating and populating databases. You can find example scripts in the code for the RunScript program in Chapter 6.