IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_add_targetfieldinfo_field]') AND type = 'P')
DROP PROCEDURE [dbo].[mps_add_targetfieldinfo_field]
GO
-- =============================================
-- Author:  flobit
-- Create date: May 17 2018  3:33PM
-- Description: <Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[mps_add_targetfieldinfo_field]
 
AS
BEGIN
SET NOCOUNT ON;
IF OBJECT_ID('tempdb.dbo.#target_fieldinfo') IS  NULL
RETURN 
ALTER TABLE #target_fieldinfo add [fldi_tbname]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_fieldname]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_fieldcaption]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_datatype]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_ident]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_size]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_decimal]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_default]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_key]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_index]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_oldname]varchar(128)
ALTER TABLE #target_fieldinfo add [fldi_nlzdatatype]varchar(128)

END