Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL error 46010: Incorrect syntax near?

I am facing an error in my database project's "refactor log" file. At the first line it gives an error <?xml version="1.0" encoding="utf-8"?> The error code is sql46010. I couldn't find anything useful related to this error. Can anybody help?

like image 760
Ankit Mahajan Avatar asked Sep 27 '26 16:09

Ankit Mahajan


1 Answers

Make sure that the Project==>Properties==>Build Action for the xml file is set to "None" and this will remove the error and allow the project to build successfully.

Build Action Set to None

As mentioned in the answer above, excessive warnings may cause an issue as well, you can suppress specific warnings that are not helpful by doing the following:

Suppress Specific Warnings

Or by increasing the number of allowed warnings under "Tools==>Options==>SQL Server Tools==>General":

Increase Maximum Warning Limit

like image 106
CodeAlchemist Avatar answered Sep 29 '26 10:09

CodeAlchemist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!