Export the result set of an SQL query to a file on the network
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
Answers (1)
Please log in to answer
Posted by:
chucksteel
5 years ago
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.