That negative error code looks like something that comes from the Windows/Excel side of things. The error number from SQL Server is 102 (Incorrect syntax.)
I would just ignore that negative number.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
billionec.PNG Hi, when working through SQL statements in Power Query I saw this error code pop up even when the actual error changed (ie syntax vs arithmetic error). I downloaded and searched through the Windows_Protocols error documentation, but it only goes up to 50,000 and mine is -2,146,232,060. Can't download SSMS or the SQL Checker as seen here (https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection?view=sql-server-ver15)
I've attached a screenshot as well, danks.
That negative error code looks like something that comes from the Windows/Excel side of things. The error number from SQL Server is 102 (Incorrect syntax.)
I would just ignore that negative number.
Hi @Chippy
As the error message says, there is syntax error in your SQL statement.
Try this modification:
SELECT
AUFNR AS [Order Number],
PLNBEZ AS [Material Number],
GLTRP_SIMP_DT AS [Basic Finish Dat],
GAMNG AS [Order Quantity]
FROM bv.AFKO
Best regards,
Cosmog
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".