Systems Management Question

Export the result set of an SQL query to a file on the network

11/11/2019 224 views


I want to save a generated report (format .txt) daily in a directory on a Windows network drive. How can I do this in a script?

In general, how can I export the result set of an SQL query to a file on the network?

thanks in advance

0 Comments   [ + ] Show comments


All Answers


This functionality is not available on the SMA, but there are ways you can accomplish it using third party tools. You can enable external access to the database and then use any tool that supports MySQL to interact with the database. You could use PowerShell or Python, for instance, to query the database and save the output to a text file.

Answered 11/12/2019 by: chucksteel
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ