Tham khảo tài liệu 'programming microsoft sql server 2000 with microsoft visual basic .net - p9', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | End Sub Private Sub Button1_Click ByVal sender As ByVal e As Handles Move to first row and populate text boxes. Session MyRowID 0 MoveToRow End Sub Private Sub Button2_Click ByVal sender As ByVal e As Handles Move to previous row and populate text boxes. If Session MyRowID 0 Then Session MyRowID - 1 End If MoveToRow End Sub Private Sub Button3_Click ByVal sender As ByVal e As Handles Move to next row and populate text boxes. If Session MyRowID _ Products . - 1 Then Session MyRowID 1 End If MoveToRow End Sub Private Sub Button4_Click ByVal sender As _ ByVal e As Handles Move to last row and populate text boxes. Session MyRowID Products . - 1 MoveToRow End Sub Creating Database Objects from Web Pages Your applications will sometimes need the availability of custom database objects. For example stored procedures which store precompiled optimized SQL code are great for managing data manipulation tasks such as inserting new records Please purchase PDF Split-Merge on to remove this watermark. into a table and data definition tasks such as dynamically creating a new table. If you happen to create a custom table for your application your application can probably also benefit from one or more stored procedures performing data manipulation tasks for the table. For example your application can pass the stored procedure parameters specifying the column values for a new row and the stored procedure can execute the INSERT INTO statement. If your application needs the value for a column with an Identity property created on the SQL Server instance the stored procedure can return it as an output parameter. The sample for this section demonstrates the creation of a table and a stored procedure. The sample is the setup program for the next section .