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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

How can we run a query that has Transact-SQL syntax

ascanlan
7 - Meteor

I am trying to find a way to run a MS SQL server query that has Transact-SQL syntax (Use, Go). Can Alteryx handle this type of query?

 

Example:

Use NCI Go
SELECT
[customer] as customer
,[address] as address
FROM [NCI].[database].[table]

 

1 REPLY 1
danilang
19 - Altair
19 - Altair

Hi @ascanlan 

 

You should be able to remove the GO statements if you end each line with a semi colon. 

 

Use NCI;
SELECT
[customer] as customer
,[address] as address
FROM [NCI].[database].[table];

 

In your case though, you don't need the Use NCI directive, since you have [NCI] in the fully qualified table name; [NCI].[database].[table]

 

Dan

 

  

Labels
Top Solution Authors