Asp tutorial. net database tutorial operation FAQs
1. Intercommunication with databases is actually the communication between processes. Commonly used are TCP/IP and named pipelines. Intercommunication between processes is performed on the same machine and on different machines.
2. Database instances are a means to operate databases. Simply put, databases can be modified without being opened in Notepad. You must use database instances to perform related queries, modifications, and other operations. One of the important differences between databases and file systems is transactions.
3. Database indexes and B + trees. It is rare to see B + trees with more than three layers. Sometimes the partition performance may not be good. Partition (for example, horizontal segmentation) sometimes results in searching data in multiple partitions because the search field is not a partition condition, resulting in multiple IO reads. It is better not to rely on B + tree indexes without partitions, but to have better performance. For example, if select pk is used as the basis for partitioning, searching for partitions can improve the performance. However, when searching for other fields, it is possible to produce results for searching multiple partitions. For example, if the original search generates three I/O operations and is now divided into five partitions, 15 I/O operations may be generated.
4. Relationship between IIS and ASP. NET. In IIS, you can use the C language to write web pages through ISAPI extension, as long as you feel comfortable. However, the performance bottleneck of a network application often does not lie in this layer, therefore, the "development efficiency" improvement brought about by the use of hosted code to generate the returned results of requests is more valuable than the "program running efficiency" of unmanaged code. Introduces the benefits of calling managed code with unmanaged code. Let's talk about inter-process communication, appdomain in. NET, and serialized deserialization through the application boundary.
5.Asp.net splits and discloses the request-to-return process step by step through the event mechanism. This step can be called "pipeline". By the way, let's talk about filters, interceptors, and reflection in Sturts2.
6.Asp.net MVC and Asp.net webform. Identify by concept (router or search by extension of file name ).
What should I do if garbled characters occur in the connection database of the asp.net tutorial? How does xuedaonet solve database garbled characters?
I believe many of my friends have experienced this situation. Don't worry about this situation. Let's first talk about what kind of situation xuedaonet encounters.
The incident occurred in the local test of Yunyang Life Network this afternoon:
I can use asp.net to connect to MYSQL5 of the local machine. I bought a MYSQL 50 MB database today and set the database character set to the same as that of the local database.
MySQL character set: UTF-8 Unicode (utf8)
MySQL connection verification: utf8_general_ci
However, it is still garbled to write data into the database from the web page. The data can be read from the database by rewriting the Chinese language.
My website's global Response and Request are both UTF-8
Xuedaonet | solution provided by Zhengzhou website:
Maybe because the space is different from the database, I can add it to the link string; charset = utf8.
If this is the case, try the above method, but it is not guaranteed that the above method can completely solve the problem. If you solve the problem, you can check the 2012 blessing text message.
NET and SQL Server are actually the same thing
We often develop programs. As we all know, in SQL, NULL is represented by NULL, that is, no value is input, and it is NULL. In the T-SQL command, to determine whether a value Is Null, to use Is NULL instead of = NULL, Ah, don't say, I started to do not understand how = Null can not be queried, the original SQL statement should be "IS.
We also encountered a problem when working on the project, that is, if the value of a field in your database is null, you have checked this field again, and an error will be reported at this time, I remember that it cannot be converted to DBNull. (I still don't remember it clearly, as if it was like this in my memory)
In. NET, when the field does not have a valid value, the DBNull value is automatically assigned. Therefore, here, the NULL in SQL is equivalent to the DBNull in. NET.