TAILIEUCHUNG - microsoft visual c 2008 step by step phần 9

Khai báo một loại đại biểu để tạo ra một trừu tượng của một phương thức. Tạo một thể hiện của một đại biểu để chỉ một phương pháp cụ thể. Gọi một phương thức thông qua một đại biểu. Xác định một biểu thức lambda để xác định mã cho một đại biểu. | 510 Part V Managing Data You can scroll back through the console window to view all the data. Press the Enter key to close the console window when you have finished. 5. Run the application again and then type BONAP when prompted for the customer ID. Some rows appear but then an error occurs. If you are using Windows Vista a message box appears with the message ReportOrders has stopped working. Click Close program or Close the program if you are using Visual C Express . If you are using Windows XP a message box appears with the message ReportOrders has encountered a problem and needs to close. We are sorry for the inconvenience. Click Don t Send. An error message containing the text Data is Null. This method or property cannot be called on Null values appears in the console window. The problem is that relational databases allow some columns to contain null values. A null value is a bit like a null variable in C It doesn t have a value but if you try to read it you get an error. In the Orders table the ShippedDate column can contain a null value if the order has not yet been shipped. You should also note that this is a SqlNullValueException and consequently is not caught by the SqlException handler. 6. Press Ente r to close the console window and return to Visual Studio 2008. Closing Connections In many older applications you might notice a tendency to open a connection when the application starts and not close the connection until the application terminates. The rationale behind this strategy was that opening and closing database connections were expensive and time-consuming operations. This strategy had an impact on the scalability of applications because each user running the application had a connection to the database open while the application was running even if the user went to lunch for a few hours. Most databases limit the number of concurrent connections that they allow. Sometimes this is because of licensing but usually it s because each connection .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.