SQL command in files

I want to store SQL command in files with encrypted and it should load on request.

This help me like store procedure I can able modify at run time

I am not sure if i get your requirements but its sound to me something like MyBatis , so please check mybatis – MyBatis 3 | Introduction to get some ideas and tips…

I have used dotsql but I need better than this

As dotsql uses text files, you can encript it using any method you prefer, And then in your init or request method get the encripted data as bytes, convert to string and us ethe encription method you use before to decrypt the sql statements and then use LoadFromString to load sql statement