Hi,
I have a problem saving a stored procedure which contains 4 sql-statements. The procedure contains, an alter table to a table, which adds a column.This is followed by an Insert statement, and then an update satement relying on the added column, and concluded by an alter table which removes the added (temporary) column.
The problem is when I try to save the procedure it dissallows it, since the column is not contained in the table.
How can I get around that?
I have tried adding the column manually, just in order to be able to save the stored procedure, but when I try to execute the statement, I get the same error messaging, alerting me that I don't have the extra column in my table.
Thanks for your help in advance!
Kingsley
I have a problem saving a stored procedure which contains 4 sql-statements. The procedure contains, an alter table to a table, which adds a column.This is followed by an Insert statement, and then an update satement relying on the added column, and concluded by an alter table which removes the added (temporary) column.
The problem is when I try to save the procedure it dissallows it, since the column is not contained in the table.
How can I get around that?
I have tried adding the column manually, just in order to be able to save the stored procedure, but when I try to execute the statement, I get the same error messaging, alerting me that I don't have the extra column in my table.
Thanks for your help in advance!
Kingsley