Yes I went with TSQLQuery but problem is how to get insert query automatically. So for example for Table1 without writing insert code I get insert SQL code. In lazarus database desktop tool,app do that but I can find out how to to do like that. Regards, Ara -- http://www.fastmail.com - Send your email first class