Explore SQL Server 2005.NET CLR programming

Source: Internet
Author: User
Tags microsoft sql server microsoft sql server 2005 management studio sql server management sql server management studio

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

Related Article

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.