Results 1 to 2 of 2

Power Query Stored Procedure Invalid Identifier

Threaded View

  1. #1
    Registered User
    Join Date
    01-08-2010
    Location
    Arizona, USA
    MS-Off Ver
    Microsoft 365 Beta Channel
    Posts
    7

    Power Query Stored Procedure Invalid Identifier

    Hi all,

    Using Excel Microsoft 365.

    I created a Stored Procedure in Management Studio - tested - works.
    Now I am trying to call the sp from Excel Power Query and pass the parameter
    I keep getting error
    Expression.SyntaxError: Invalid Identifier
    I don't see what is worng with my M Script - do you see any problems?
    let
        DepartmentName=Excel.CurrentWorkbook(){[Name=”param”]}[Content]{0}[#”Department”],
        Source = Sql.Database("localhost\SQL2017INSTANCE2", "AdventureWorksDW2017",
        [Query="exec [dbo].[usp_SelectEmployees]'"
        & DepartmentName
        &"'"])
    in
        Source
    Thanks,
    w
    Last edited by doofenshmirtz; 07-19-2020 at 12:16 PM. Reason: typo

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  2. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  3. Replies: 0
    Last Post: 10-02-2012, 03:06 PM
  4. Edit Stored Procedure Query
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2009, 06:36 PM
  5. Execute stored procedure using ms query & vba
    By astrodon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2008, 07:56 PM
  6. MS Query to read data from SQL server stored procedure
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2005, 02:06 PM
  7. SQL stored procedure with paramters from MS Query
    By JimF in forum Excel General
    Replies: 4
    Last Post: 03-21-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1