CREATE PROCEDURE [dbo].[maintain_DataCsvTable]
AS
BEGIN
declare @tablename nvarchar(50)
set @tablename='DataCsv'
--set @tablename=@tablename+cast(datepart(year,GETDATE()) as nvarchar(50))+cast(DATEPART(MONTH,GETDATE()) as nvarchar(50))
SET @tablename = @tablename+LEFT(CONVERT(CHAR(8), GETDATE(),112),6)
--select @tablename
execute ('CREATE TABLE '+@tablename+'(
[DataCsvId] [char](12) NOT NULL,
[HostNumber] [varchar](100) NULL,
[DetectionTime] [datetime] NULL,
[ProductQRCode] [varchar](500) NULL,
[ProductCode] [varchar](500) NULL,
[TestTtems] [varchar](500) NULL,
[RelativeVUnit] [varchar](50) NULL,
[AbsoluteVUnit] [varchar](50) NULL,
[UpperLimit] [decimal](18, 4) NULL,