-- Licensed Materials - Property of IBM
-- IBM Cognos Products: ccllogging
-- (C) Copyright IBM Corp. 2005, 2010
-- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 

CREATE TABLE COGIPF_AGENTRUN (
	COGIPF_HOST_IPADDR 	varchar (15) NULL ,
	COGIPF_HOST_PORT 	int NULL ,
	COGIPF_PROC_ID 		int NULL ,
	COGIPF_LOCALTIMESTAMP 	datetime NULL ,
	COGIPF_TIMEZONE_OFFSET 	int NULL ,
	COGIPF_SESSIONID 	varchar (255) NULL ,
	COGIPF_REQUESTID 	varchar (255) NOT NULL ,
	COGIPF_STEPID 		varchar (255) NULL ,
	COGIPF_SUBREQUESTID 	varchar (255) NULL ,
	COGIPF_THREADID 	varchar (255) NULL ,
	COGIPF_COMPONENTID 	varchar (64) NULL ,
	COGIPF_BUILDNUMBER 	int NULL ,
	COGIPF_LOG_LEVEL 	int NULL ,
	COGIPF_OPERATION	varchar (64) NULL,
	COGIPF_TARGET_TYPE    	varchar (255) NULL,
	COGIPF_TARGET_PATH     	nvarchar (512) NULL,
	COGIPF_TARGET_NAME     	nvarchar (255) NULL,
	COGIPF_STATUS 		varchar (255) NULL ,
	COGIPF_ERRORDETAILS 	varchar (2000) NULL ,
	COGIPF_AGENT_PATH     	nvarchar (512) NULL,
	COGIPF_SCHEDULETIME	int NULL,
	COGIPF_USER		nvarchar (255) NULL,
	COGIPF_EMAIL		nvarchar (255) NULL
)

CREATE TABLE COGIPF_AGENTBUILD (
	COGIPF_HOST_IPADDR 	varchar (15) NULL ,
	COGIPF_HOST_PORT 	int NULL ,
	COGIPF_PROC_ID 		int NULL ,
	COGIPF_LOCALTIMESTAMP 	datetime NULL ,
	COGIPF_TIMEZONE_OFFSET 	int NULL ,
	COGIPF_SESSIONID 	varchar (255) NULL ,
	COGIPF_REQUESTID 	varchar (255) NOT NULL ,
	COGIPF_STEPID 		varchar (255) NULL ,
	COGIPF_SUBREQUESTID 	varchar (255) NULL ,
	COGIPF_THREADID 	varchar (255) NULL ,
	COGIPF_COMPONENTID 	varchar (64) NULL ,
	COGIPF_BUILDNUMBER 	int NULL ,
	COGIPF_LOG_LEVEL 	int NULL ,
	COGIPF_OPERATION	varchar (64) NULL,
	COGIPF_TARGET_TYPE    	varchar (255) NULL,
	COGIPF_TARGET_PATH     	nvarchar (512) NULL,
	COGIPF_TARGET_NAME     	nvarchar (255) NULL,
	COGIPF_STATUS 		varchar (255) NULL ,
	COGIPF_ERRORDETAILS 	varchar (2000) NULL ,
	COGIPF_AGENT_PATH     	nvarchar (512) NULL,
	COGIPF_SCHEDULETIME	int NULL,
	COGIPF_USER		nvarchar (255) NULL,
	COGIPF_EMAIL		nvarchar (255) NULL
)

