Solved

Prevent Errors from a certain project from showing up

Posted on 2015-01-07
6
80 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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