adoquery1.sql.clear;
    adoquery1.sql.add('select top 500 ''boss'' a,identity(int,1,1) b,null c into #temp from sysobjects a,sysobjects ; ');
    adoquery1.sql.add('insert table_name select * from #temp ; drop table #temp');
    adoquery1.execsql;