Export the result set of an SQL query to a file on the network
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
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.