Forum Discussion
Markzolotoy
5 years agoImpactful Individual
Error loading data
I have the following SQL in my query: declare @AlarmSummaryAlramCount table (summary_description nvarchar(20), summary_cnt int);
DECLARE @reportData TABLE(
reportID int, userSID varchar(max), ...
Markzolotoy
5 years agoImpactful Individual
It works perfectly in SSMS.
ToddChitt
5 years agoSuper User
Is the entire statement wrapped in double quotes? Is it its own Query?
I do this sometimes, create a query with something like:
" SELECT ... FROM...WHERE... "
Then have a second query with M code like this:
let
Source = Sql.Database(ServerName, DatabaseName, [Query=#"sql_text"])
in
Source
Is that what you are doing here?