?
Solved

Prevent Errors from a certain project from showing up

Posted on 2015-01-07
6
Medium Priority
?
82 Views
Last Modified: 2015-01-13
I have a Solution with many projects.  One project is called _Database, which generates a lot of errors.

For now - how can I prevent those from showing-up when I rebuild the solution?

Also is there a way to show all errors and not truncate the list if 200 errors are reached during compile?
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 34

Accepted Solution

by:
Mike Eghtebas earned 1336 total points
ID: 40536831
re:> how can I prevent those from showing-up when I rebuild the solution?

Without handling all errors, you will not be able to run your project.

re:> not truncate the list if 200 errors

One way is right-click on the error when you running and copy/past to notepad.
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 40536856
>>>>>>One way is right-click on the error when you running and copy/past to notepad.


I am not sure I understand what you mean...  

The Error List is truncating some of the errors:


error list
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 40536859
The only time the _Database project shows compile errors is when there are errors in OTHER projects.

When those projects compile ... it does not show the database script errors (even though they were not fixed).
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 34

Assisted Solution

by:Mike Eghtebas
Mike Eghtebas earned 1336 total points
ID: 40536878
errors
For example, if you want to see the full description of the error 201, you right-click on it and it and copy. Then you can paste it in notepad to see the full description.

re:> When those projects compile ... it does not show the database script errors (even though they were not fixed).

It could be because your other project are not using the database. If they are using, then their portion of code has no error.

The errors, most likely, are not database errors. They are the way your code trying to establish connection with database or handle the data in it.

Double click on< for example, on error 201 which takes you to the line of code where error occurs. Then paste the error here to see how it could be handled.

I see, for example, error 135 complains about missing GO in your T-SQL. Make sure to test all your T-SQL in SQ+L Server to make sure they are functioning properly.
0
 
LVL 52

Assisted Solution

by:Carl Tawn
Carl Tawn earned 664 total points
ID: 40537467
You may want to consider marking you SQL scripts as content, rather than code files, that way VS won't attempt to compile them and you won't get the errors.

Either that or, if you go into the Configuration Manager for the solution, you can untick the Build flag against your database project.
0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 40546856
Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question