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 Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

list top 20 * rows from all tables microsoft SQL database (high number of tables)

davidoc
7 - Meteor

Hi,

 

Is it possible to query sysobjects in alteryx e.g.

SELECT SCHEMA_NAME(schema_id)+'.'+name

AS SchemaTable

FROM sys.tables

 

save the results to a text file then

loop a select top 20 * from tablename (where tablename is on each row of the textfile)  ?

 

Thanks

Dave

 

 

2 REPLIES 2
Claje
14 - Magnetar

Hi,

 

You can run your first step via an Input Data tool.


To do the second, you will probably need a batch macro, and you will probably want to write this data out to files, to avoid having a large number of columns specific to each dataset.

 

Take a look at this article and see if it helps: https://community.alteryx.com/t5/Alteryx-Knowledge-Base/CS-Macro-Dev-Reading-in-Multiple-Files-with-...

davidoc
7 - Meteor

Thanks 🙂

Labels
Top Solution Authors