noober noober - 9 days ago 4x
SQL Question

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.



Looks like your question was answered here:

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.