In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Run SQL files via Scheduler

bjschwartz3
8 - Asteroid

I have a ton of old legacy SQL files that I would like to run via Alteryx Scheduler. I rather not remake the file or convert it to Alteryx. I just want Alteryx to run multiple SQL files in succession. Any suggestions on best practices for running multiple SQL files in order via server scheduler? 

2 REPLIES 2
hroderick-thr
11 - Bolide

Most or all databases allow scripts to run from command line.

For example SQL Server has its sqlcmd that's used for it.

 

Get your scripts running from command line bat file.

Use Alteryx Run Command tool to run the bat files.

hroderick-thr
11 - Bolide

p.s. to the reply above:

 

If you can't use the database's command line tool like sqlcmd, you can write a python program that reads and runs the sql command. Then run the python from Alteryx Run Command tool.