Hi,
I'm working with servers connected on Sybase Central (SQL Anywhere 11). I'm connected to a few DBs, and there's a query I want to get from each one. I have the SQL code so that I can output the query, but is there a way I can loop through the DBs so that I output the query from each DB into one file? My main concern is connecting/looping through each DB, not how can I get the output. I know you can use CONNECT USING '[connection_string]'. Any steps from there, or is there another way to approach this?
Thanks!
I'm working with servers connected on Sybase Central (SQL Anywhere 11). I'm connected to a few DBs, and there's a query I want to get from each one. I have the SQL code so that I can output the query, but is there a way I can loop through the DBs so that I output the query from each DB into one file? My main concern is connecting/looping through each DB, not how can I get the output. I know you can use CONNECT USING '[connection_string]'. Any steps from there, or is there another way to approach this?
Thanks!