See how BXBquery can generate a SQL script and also export data to a text file