/build/static/layout/Breadcrumb_cap_w.png

Systems Management Question


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

11/11/2019 129 views

Hi,

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

Comments


All Answers

1

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

Share