If your query's syntax is compatible with sqlite (I see few reasons why it's not), then you can just begin a transaction (as Erel previously suggested) and then execute a nonQuery containing the file.readString(your query's txt file). If for some reason your query is not exactly suitable for such action, you can always split your txt file into many rows and pass them to sqlite using a loop.