USE [OMSS]
GO
/****** Object: Table [dbo].[Sys_Truck] Script Date: 11/07/2011 09:55:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
drop table [Sys_Truck]
CREATE TABLE [dbo].[Sys_Truck](
[Id] [int] IDENTITY(1,1) NOT NULL,
[TruckNumber] [varchar](10) NULL,
[TruckName] [varchar](20) NULL,
[Oil] [float] NULL,
[Loading] [float] NULL,
[IpAddress] [nvarchar](50) NULL,
[PortHeart] [int] NULL,
[PortAction] [int] NULL,
[Status] [int] NULL,
CONSTRAINT [PK_Truck_1] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
USE [OMSS]
GO
/****** Object: Table [dbo].[Sys_SpoiBank] Script Date: 11/07/2011 10:44:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Sys_SpoiBank](
[Id] [int] IDENTITY(1,1) NOT NULL,
[UnloadingPointNumber] [nvarchar](10) NULL,
[UnloadingPointName] [nvarchar](20) NULL,
[UnloadTypeId] [int] NULL,
[IpAddress] [nvarchar](50) NULL,
[PortHeart] [int] NULL,
[PortAction] [int] NULL,
CONSTRAINT [PK_Sys_SpoiBank_1] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sp_configure 'show advanced options', 1
RECONFIGURE
EXEC sp_configure 'xp_cmdshell', 1
RECONFIGURE
EXEC sp_configure 'show advanced options', 0
RECONFIGURE
exec master.dbo.xp_cmdshell 'md D:\OMSS_DATA_BACK'