ALTER PROCEDURE [dbo].[insert_column]
-- Add the parameters for the stored procedure here
@columnname as VARCHAR(max),
@datatype as VARCHAR (max)
AS
DECLARE @SQL nvarchar(500)
DECLARE @Colm nvarchar(50)
DECLARE @type nvarchar(50)
SET @Colm = @columnname
SET @type = @datatype
SET @SQL = 'ALTER TABLE ParsedResumeData ADD '+@colm+' '+@type+'
DEFAULT 0'
EXEC sp_executesql @SQL,N'@columnname as VARCHAR(max),
@datatype as VARCHAR (max)',@columnname,@datatype
-- Add the parameters for the stored procedure here
@columnname as VARCHAR(max),
@datatype as VARCHAR (max)
AS
DECLARE @SQL nvarchar(500)
DECLARE @Colm nvarchar(50)
DECLARE @type nvarchar(50)
SET @Colm = @columnname
SET @type = @datatype
SET @SQL = 'ALTER TABLE ParsedResumeData ADD '+@colm+' '+@type+'
DEFAULT 0'
EXEC sp_executesql @SQL,N'@columnname as VARCHAR(max),
@datatype as VARCHAR (max)',@columnname,@datatype
No comments:
Post a Comment