APPENDIX E

image

HelpDesk Tables

Throughout this book, you’ve seen examples from the HelpDesk sample application. Chapter 2 describes the main tables and relationships that the application uses. This appendix summarizes the remaining tables that belong in this application.

HelpDesk Tables

This section shows you the tables in the Intrinsic database, organized in alphabetical order.

9781430250715_AppE-01.jpg

9781430250715_AppE-02.jpg

9781430250715_AppE-03.jpg

9781430250715_AppE-04.jpg

9781430250715_AppE-05.jpg

9781430250715_AppE-09.jpg

9781430250715_AppE-06.jpg

9781430250715_AppE-07.jpg

9781430250715_AppE-08.jpg

9781430250715_AppE-11.jpg

9781430250715_AppE-10.jpg

9781430250715_AppE-12.jpg

9781430250715_AppE-13.jpg

9781430250715_AppE-16.jpg

9781430250715_AppE-14.jpg

9781430250715_AppE-15.jpg

External Tables

Chapter 4 showed you how to insert records into an external SQL Server database. Here’s the schema and create script (Listing E-1) for the AuditDetail table.

9781430250715_AppE-17.jpg

Listing E-1.  SQL Create Script for AuditDetail Table

CREATE TABLE [dbo].[AuditDetail](
      [AuditID] [int] IDENTITY(1,1) NOT NULL,
      [AuditDesc] [nvarchar](max) NULL,
      [LoginName] [nvarchar](255) NULL,
      [AuditDate] [datetime] NULL,
 CONSTRAINT [PK_AuditDetail] PRIMARY KEY CLUSTERED
(
      [AuditID] ASC
)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
      IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
      ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

Database Diagram

The following two diagrams show the relationships between tables in SQL Server after the Intrinsic database has been deployed.

9781430250715_AppE-18.jpg

9781430250715_AppE-19.jpg

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.48.204