Subject | alter in stored procedure |
---|---|
Author | Mangara Hasibuan |
Post date | 2003-10-03T07:11:52Z |
Hi List,
can i do this?
CREATE PROCEDURE sp_test
(tabname VARCHAR(24), colname VARCHAR(24), datatype VARCHAR(24))
AS
BEGIN
ALTER TABLE :tabname ADD :colname :datatype;
END
how can i alter table (add new columns) in stored procedure?
thanks
can i do this?
CREATE PROCEDURE sp_test
(tabname VARCHAR(24), colname VARCHAR(24), datatype VARCHAR(24))
AS
BEGIN
ALTER TABLE :tabname ADD :colname :datatype;
END
how can i alter table (add new columns) in stored procedure?
thanks