Error Code: 2F0F5E42
[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]'Margin' is not a recognized built-in function name.
Unable to connect to the Microsoft SQL Server server "CAMTDB03\prod". Check that the server is running and that you have access privileges to the requested database.
@AllenRajiv Masilamani
Hi, I would recommend to use alias:
Select [sales] AS Sales,
[margin ($)] AS Margin
FROM ordersinvoiced_cono1
also, check if the column name in the sql table ordersinvoiced_cono1 is margin ($) (I don't think it is).
I would recommend to clear your connection window, drag and drop the table ordersinvoiced_cono1, then clic on the Data Menu and Convert to SQL. Start working from there.
If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.
Regards,
Diego
Tableau Ambassador