icon Issue Manager ®

  • Creating the Database table

    icon Step 1 - Creating the database table. This is the first script that needs to run. Open open SQL Server Management Studio and run the following script
    • icon
      Management Studio
    • image
    • icon
      SQL Scripts
    • image
    • icon
      Database Table
    image
    • icon
      for CREATE
    • image
    • icon
      for READ
    • image
    • icon
      for UPDATE
    • image
    • icon
      for DELETE
    image

    Stored Procedures (SPROCS)

    icon Step 2 - Creating all the stored procedures (SPROCS). Open open SQL Server Management Studio and run the following script. Make sure the correct users are established with the database prior to running these scripts.
    C.R.U.D.

CREATE

CREATE TABLE with the PRIMARY KEY being established in the ISSUE ID, Create ISSUE ID as an integer value starting at 1 and incrementing by one.

Given this example, we used the CREATE SCRIPT feature in MANAGEMENT STUDIO to create this script after it was manually created using the WYSIWYG Editor

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[IssueManager](
	[IssueID] [int] IDENTITY(1,1) NOT NULL,
	[UserAccountIDCreator] [int] NULL,
	[UserAccountIDAssigned] [int] NULL,
	[IssueTitle] [varchar](255) NULL,
	[IssueDescription] [varchar](max) NULL,
	[IssueComment] [varchar](max) NULL,
	[IPAddress] [varchar](50) NULL,
	[DateCreated] [datetime] NULL,
	[DateUpdated] [datetime] NULL,
	[DateClosed] [datetime] NULL,
 CONSTRAINT [PK_IssueManager] PRIMARY KEY CLUSTERED 
(
	[IssueID] 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]

GO

SET ANSI_PADDING OFF
GO

ALTER

ALTER TABLE setting the default for DATE CREATED to today's date using the function getDate()

Given this example, we used the CREATE SCRIPT feature in MANAGEMENT STUDIO to create this script after it was manually created using the WYSIWYG Editor

ALTER TABLE [dbo].[IssueManager] ADD  CONSTRAINT [DF_IssueManager_DateCreated]  DEFAULT (getdate()) FOR [DateCreated]
GO

icon Issue Manager

This is the MAIN table that hold most of the information about the issue. All other tables are related to this MAIN table. The PRIMARY KEY (PK) is called IssueID.

  • Title
  • Description
  • Comment
  • Date Created
  • Date Updated
  • Date Closed
Learn more »
  • slide
  • slide