Solved

Prevent Errors from a certain project from showing up

Posted on 2015-01-07
6
74 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:knowlton
  • 3
  • 2
6 Comments
 
LVL 33

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: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: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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 33

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:knowlton
ID: 40546856
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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 I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now