Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop showing SQL errors in Visual Studio 2010

How can I stop VS2010 showing errors in .sql files, attached to a project? I don't want to check them at all, just C# code. The files are used as resources, Build Action set to Content. I'd like to keep .sql extension for syntax coloring purpose.

Regards,

like image 279
noober Avatar asked Jan 16 '11 21:01

noober


People also ask

How do I resolve build errors in Visual Studio?

In Visual Studio, go to the menu bar and choose Help > Send Feedback > Report a Problem, or submit a suggestion by using Help > Send Feedback > Send a Suggestion. You may find additional assistance for errors and warnings in Microsoft Docs Q&A forums.

How do I see errors in Visual Studio?

To display the Error List, choose View > Error List, or press Ctrl+\+E.


1 Answers

Looks like your question was answered here: https://stackoverflow.com/a/8593877/2798869:


Visual Studio 2010

Tools -> Options -> Text Editor -> Transact-SQL -> IntelliSense

Uncheck "Enable IntelliSense".


Visual Studio 2012 & 2013

Tools -> Options -> Text Editor -> SQL Server Tools -> IntelliSense

Uncheck "Underline errors"


Note that you have to close then re-open any .sql files you may have open.

like image 117
david Avatar answered Oct 09 '22 13:10

david