Skip to main content
Allen Rajiv 님이 #Tableau Desktop & Web Authoring에 질문했습니다

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.

답변 2개
  1. 2022년 1월 11일 오후 4:02

    @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

0/9000