Hi all,
I am struggling with a dynamic statement.
I have a insert into table command using two variables which have been declared eariler and a select statement. This all works find however once I put this into a dynamic statement it wants me to declare the variable again and lose everything that I have just fetched into that variable. Is there anyway around this so when I call my variables it will use the ones that I have already called.
I am struggling with a dynamic statement.
I have a insert into table command using two variables which have been declared eariler and a select statement. This all works find however once I put this into a dynamic statement it wants me to declare the variable again and lose everything that I have just fetched into that variable. Is there anyway around this so when I call my variables it will use the ones that I have already called.