temp tables - sql multi-part identifier #TempTable.ColumnName could not be bound -
So I have some floating tables that I have created and trying to move the column contents from one table to another I am
I am getting In this way I did it: second Any help would be greatly appreciated. Nothing from an invalid update statement - SQL can not tell how to drag data. See this as the second #TempTable from another table using a specific table argument. Once I am done with the current section, I want to move the contents of another template table (
# Table1 ) to
# TempTable.ColumnName which The accumulated results of housing are logic sets.
SET @ExecStatement = 'Eltar table # Add 1 table' + column name '' varchar (250) '; EXEC (@ExecStatement) set @ExecStatement = 'Update # Table 1 set #Table1.'+@ColumnName+' = # TempTable.ColumnName '; The error message appears on the exec (@execStatement)
SET statement.
set statement:
set @ExecStatement = 'Update # Table1 set' + @ColumnName + '= tt.TempConv #Inner from Table1 ta #TempTable tt (replace "id" with the appropriate column name) on Inron Tt.Id = ta.Id
Comments
Post a Comment