ContentsBefore we go through to ADO.NET we needto understand some basic of Database. Forthis course we will use MS SQL Server asDBMS to illustrate any practice. Here beloware key points need to understand in thischapter :• MS SQL Server• SQL Statements
MS SQL ServerMicrosoft SQL Server is a relational databasemanagement system developedby Microsoft. As a database, it is a softwareproduct whose primary function is to storeand retrieve data as requested by othersoftware applications, be it those on thesame computer or those running on anothercomputer across a network (including theInternet).
MS SQL Server (Cont.)There are at least a dozen different editionsof Microsoft SQL Server aimed at differentaudiences and for different workloads(ranging from small applications that storeand retrieve data on the same computer, tomillions of users and computers that accesshuge amounts of data from the Internet atthe same time).
MS SQL Server (Cont.)There are several editions of MS SQL Server:• Datacenter• Enterprise• Standard• Web• Business Intelligence• Workgroup• Express
SQL StatementsBasic SQL Statements is divided into twomain types; Data Definition Language (DDL)and Data Manipulation Language (DML).Here below are important statements thatneed to understand in order to learn thissubject:• CREATE TABLE (DDL)• SELECT (DML)• INSERT (DML)• UPDATE (DML)• DELETE (DML)
SQL Statements – CREATETABLECREATE TABLE MySqlTable( Name varchar(10) Not Null, Age int, SSN varchar(11), Date datetime, Gender char(6))
SQL Statements - SELECTSelect * from <table name>Select <column>, <column>, … from<table name>Select * from PersonAddressSelect AddressID, AddressLine1,City from PersonAddress
SQL Statements - DELETEDELETE FROM <table>WHERE <predicate>delete from MySqlTablewhere Id = 2
SummaryWhat you learn from this chapter are:o What is MS SQL Server and how many editions does it haso How to configure MS SQL Servero Understand basic SQL Statement: • CREATE TABLE • SELECT • INSERT • UPDATE • DELETE