Firedac Query Field list not updated after Schema change
I am creating a temp table in SQL and then adding a new field to it. It seems Firedac is caching the field list for this temp table. The following code gives me "FDQuery5: Field 'Available' not found." FDQuery5.Connection := FDConnection1; FDConnection1.ExecSQL('Select StockNo into #Temp from Stock'); FDQuery5.SQL.Text := 'Select * From #Temp'; FDQuery5.open; FDConnection1.ExecSQL('Alter Table #Temp add Available Char(1)'); FDQuery5.Close; FDQuery5.open; ShowMessage(FDQuery5.FieldByName('Available').AsString); using XE5 with Firedac. I have tried Connection.RefreshMetadataCache and I have