INSERT INTO pbxdata (FLAG1, CALL_TIME, DURATION, DURATION_S, CALLER_PHONE, FLAG2, FLAG3, DIALED_PHONE, CALL_TYPE, FLAG4, FLAG5, FLAG6, EXT, ACC)values (:FLAG1, :CALL_TIME, :CALL_DURATION, :CALL_DURATION_S, :CALLER_PHONE, :FLAG2, :FLAG3, :DIALED_PHONE, :CALL_TYPE, :FLAG4, :FLAG5, :FLAG6, :EXT, :ACC)
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[PBXDATA]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[PBXDATA]GOCREATE TABLE [dbo].[PBXDATA] ( [ID] [decimal](10, 0) IDENTITY (1, 1) NOT NULL , [CALL_TIME] [datetime] NULL , [DURATION] [datetime] NULL , [DURATION_S] [int] NULL , [DIRECTION] [nvarchar] (4) NULL , [CALL_TYPE] [nvarchar] (8) NULL , [FLAG1] [nvarchar] (32) NULL , [FLAG2] [nvarchar] (32) NULL , [FLAG3] [nvarchar] (32) NULL , [FLAG4] [nvarchar] (16) NULL , [FLAG5] [nvarchar] (16) NULL , [FLAG6] [nvarchar] (16) NULL , [FLAG7] [nvarchar] (16) NULL , [CALLER_PHONE] [nvarchar] (40) NULL , [DIALED_PHONE] [nvarchar] (40) NULL , [TRUNK] [nvarchar] (16) NULL , [CO] [nvarchar] (10) NULL , [ACC] [nvarchar] (16) NULL , [EXT] [nvarchar] (10) NULL , [RING] [datetime] NULL , [COST] [float] NULL ) ON [PRIMARY]GO
03/04 11:57 00:00:52 X900 899 ASX999 03/04 11:57 00:01:12 310 7062000570 A X900 03/04 11:58 00:00:44 X999 7707000706 X900 03/04 11:58 00:00:44 X999 001 97700001706 X900 03/04 11:57 00:01:21 X902 004 0059 370 370 X 373 7060009104 0059