After the code is modified, the running result is the same as that before the code is modified. After the code is modified

Source: Internet
Author: User

After the code is modified, the running result is the same as that before the code is modified. After the code is modified


During the IDC charging system today, some database table names need to be renamed due to naming rules:


Problem description (Environment: VisualStudio2013; Framework :. net Framework4.5; language: VB. NET): Before the code is modified, the table name in the plain text of the database query statement is "T_UserInfo". After the modification, modify the table name to "T_User" (of course, the table name in the database is also changed to "T_User"), and an error occurs. Use Try ...... An error occurred while obtaining Catch. The error message "Object Name T_UserInfo" is invalid.


Debug the problem one by one. For example, although the table name in the explain text query statement has been changed to "T_User", the actual value of explain text is "select * fromT_UserInfoWhere userID = @ userID and password = @ password "indicates that although the table name has been modified on the surface, the original T_UserInfo operation is still performed during program execution.


If the problem is solved, you can't solve it yourself. You can still seek help from the Internet on the shoulders of giants.

1. Only one solution found on the Internet is to regenerate the solution (but I don't know why I didn't succeed, but people can succeed ).

2. delete the files in/bin/Debug of the corresponding project and regenerate the project.

 

Once this problem is solved, it will be recorded first. I have not found many related introductions on the Internet, but I am not clear about the descriptions. In fact, I am not very clear about the causes, I don't know why this problem occurs. I hope to help my friends who have encountered this problem and hope that the passing gods will be able to give some advice.


Why is my c # code clearly changed but the running result is still changed?

Are you sure you have not archived the modified items?
Recompile the entire project (not by pressing [RUN] to quickly compile)
Kill the generated execution file and compile it again. The execution file may be locked.


I use VS2010 to write C. Although I have changed the code, will the compiled running result still be the result before the change? Please help and try to answer in detail

Just change <string. h> to <string>.
In addition, you can directly use the namespace std, which is a bit difficult to write.
# Include <iostream>
# Include <string>
Using namespace std;
Int main ()
{
String word;
// Read until end-of-file, writing each word to a new line
While (cin> word)
Cout <word <endl;
System ("pause"); // pause and check the result.
Return 0;
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.