aquafold - Aqua Data Studio Macro possible? -



aquafold - Aqua Data Studio Macro possible? -

is possible define kind of macro/scripts in aqua info studio?

basically, want do: have folder containing several sql-queries named xyz.sql, want run of them , save them xyz.csv

is somehow possible?

thanks much!

aqua info studio has feature called fluidshell integrated shell, can utilize fluidshell commands execute select query , write file.

fluidshell introduction fluidshell commands

a few of command useful accomplish task executing sql [source][4]

[4]: http://www.aquaclusters.com/app/home/project/public/aquadatastudio/wikibook/documentation15/page/289/source

to test created 2 tables named foo , bar under sql server database named northwind under schema named dbo , inserted few records. next, created file named xyz.sql , set below 2 lines , saved file.

sqlexport -f csv -d northwind -s dbo foo -o /users/tariq/desktop/stack1.csv sqlexport -f csv -d northwind -s dbo bar -o /users/tariq/desktop/stack2.csv

then opened fluidshell , used source command source xyz.sql. files exported 2 files. 2 things can think of : a.) contents in query.sql select * dbo.orders shipvia > 2 @ utilize source combined tee results source query.sql | \tee result.txt b.) contents in query2.sql below select * dbo.orders shipvia > 2 \go > mydata.txt @ fluidshell prompt utilize source query2.sql

aquafold

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -