Solved

Prevent Errors from a certain project from showing up

Posted on 2015-01-07
6
81 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 334 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 34

Assisted Solution

by:Mike Eghtebas
Mike Eghtebas earned 334 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 166 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 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