Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I like to store procedure containing temp tables in the dataset

I have tried with

Query="EXECUTE [kpi].[KPI_NV]"])

 and 

Sql.Database("CZPHADDWH01\DEV", "DWH_Staging", [Query="EXECUTE [kpi].[KPI_NV]"])

which raises an error 

Details: "Microsoft SQL: Incorrect syntax near the keyword 'Database'. Unclosed quotation mark after the character string '])'."

1 Answer

0 votes
by (22.5k points)
edited by

We can use Withresultset syntax, on behalf of OpenQuery

If u want to know more about the course then check the Power Bi Certification

Related questions

0 votes
1 answer
asked Jan 12, 2021 in BI by dev_sk2311 (45k points)
0 votes
1 answer
asked Dec 21, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Jan 20, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...