This article explains how to create a based on the simplest possible method in SQL Server 2005. NET's CLR subroutine. This article focuses on using SQL Server 2005 on the server side. NET Developer.
First, create a SQL Server 2005 database
This section focuses on creating a database and tables that will be used in this article. Refer to the following steps:
Perform "Start->programs->microsoft SQL Server 2005->sql server Management Studio" and connect to your SQL Server 2005 instance with the necessary certificates.
Once the connection is established, use Object Explorer to open the SQL Server 2005 instance, then right-click Databases and select New Database (Figure 1).
Figure 1
Then, a New Database dialog box appears. Enter the database name "Sample" and click "OK" to create a new database within the same instance.
Once you create the database, you will be able to see the same results in Object Explorer.
Use Object Explorer to open the Sample database, right-click tables and select New Table (Figure 2).
Figure 2
Create the table structure as shown in Figure 3 below and use EMP to save the table.
Figure 3
Once you have created the form "EMP", open it (Figure 4) and populate it with the following data (Figure 5).
Figure 4
Figure 5