T
trialproduct2004
Hi all
i am new to sql server.
i want to write stored procedure in sql server to insert values into
two table whose structure is same.
i have one condition depending on which i am inserting values into
either of this table
e.g insert into table1 values()...
instead of table1 i want to user variable name.
how can i use variable in insert query instead of exact table name.
can someone help me.
thanks in advance.
i am new to sql server.
i want to write stored procedure in sql server to insert values into
two table whose structure is same.
i have one condition depending on which i am inserting values into
either of this table
e.g insert into table1 values()...
instead of table1 i want to user variable name.
how can i use variable in insert query instead of exact table name.
can someone help me.
thanks in advance.