Hi,
I have a schema with 10 tables. I want to run the same query on all 10 of these tables and output the results from the SQL query to a .txt file but am unsure how to do this. I know this will probably involve a loop and cursor etc. Any help apreciated. A simple starter would be good so I can go away and work it out, will need to know the sys table the schema tables are held in as well if possible.
Many Thanks
I have a schema with 10 tables. I want to run the same query on all 10 of these tables and output the results from the SQL query to a .txt file but am unsure how to do this. I know this will probably involve a loop and cursor etc. Any help apreciated. A simple starter would be good so I can go away and work it out, will need to know the sys table the schema tables are held in as well if possible.
Many Thanks
Comment