This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hello everyone,
I'm currently having issues trying to acess a Table when i connect to a Source using the Connect In-DB tool.
I Have the connection (Read/Write Driver: SQL Server OLE DB) estabilished and i can use the Query Builder to view all the Tables through the Visual Query Builder, but when i try to run the flow using anything, even a browse tool directly after the Connect In-DB tool, i get the following error message:
Browse In-DB (2) Error: Microsoft OLE DB Provider for SQL Server: Incorrect syntax near the keyword 'WITH'.\42000 = 156¶ in Query: WITH "Tool1_b979" AS (Select * From FICHA_FICHA_ITEM) SELECT TOP 100 * FROM "Tool1_b979"
When i connect to the same Source using the Microsoft SQL Management Studio, I can see all the tables and use it just fine.
Can anyone help please?
Can you post a copy of your workflow (you can obviously change the database connection + password).
From the looks of your error the query you are trying to pull from isn't correctly built and that is causing the error, but adding the workflow would allow me to help check for you
Hello bsharbo, I can't post a print screen right now cause i'm inside my company and can't upload files due to blocks from the IT security sector.
I'm doing a simple Select * from "Table name"
When i get home I'll upload the printscreen!
Sounds good. Secondary question, do you actually need to use the connect in DB tools?
From your description so far you are simply to query from a databse table, which you can do with a standard input tool... I imagine you just simplified your question and there is another reason you need the In-DB tools, however I wanted to confirm that (Since you cant upload the workflow yet)
Hi - were you able to finally resolve this issue? We had a similar error using the input tool and are currently investigating an issue with the OLEDB driver. A workaround we discovered is to remove all tabs from the query. This seems to enable the input tool to process the query in alteryx fine.
Having a similar problem myself, when opening up the connection a message pops-up stating "invalid SELECT statement" but there are no errors when test validating the query within the connection. When the query is executed it ends up with an error.
However, when I take the exact same SQL code and paste in into our database application it executes without any issues. Not sure what Alteryx is doing to the query so it results in an error.
I also want to point out that the "invalid SELECT statement" message also pops-up on other connections that work fine.
Hi, Has anyone got an update on this issue. It's happening a lot with multiple queries run against sql server databases. The queries work fine from other applications. It's only alteryx that complains with this error. It's quite frustrating.
I'm having the same issue. When I try using multiple "Connect In-DB" tools to load and join multiple tables, It shows an error. The queries and joins work fine when i use the "Input Data" tool so I know it is not a problem with the SQL code. Its a lot of records so I would prefer to use the In-DB tool.
HI @CaptainWill,
Can you paste your query here? Could you also provide a screenshot of how it looks pasted into the connect indb tool?
In particular, I'm curious if you have the query formatted with new lines and white space.
Thanks!