Advanced ProgrammingMethodology in C# -Database
MS SQL Server
ContentsBefore we go through to ADO.NET we needto understand some basic of Database. Forthis course we will use MS SQL Ser...
MS SQL ServerMicrosoft SQL Server is a relational databasemanagement system developedby Microsoft. As a database, it is a ...
MS SQL Server (Cont.)There are at least a dozen different editionsof Microsoft SQL Server aimed at differentaudiences and ...
MS SQL Server (Cont.)There are several editions of MS SQL Server:• Datacenter• Enterprise• Standard• Web• Business Intelli...
MS SQL Server - Authentication
MS SQL Server – CreateDatabase
MS SQL Server – Create Table
MS SQL Server – Open Table
MS SQL Server – Query Editor
MS SQL Server – Query Editor
SQL StatementsBasic SQL Statements is divided into twomain types; Data Definition Language (DDL)and Data Manipulation Lang...
SQL Statements – CREATETABLECREATE TABLE MySqlTable(   Name varchar(10) Not Null,   Age int,   SSN varchar(11),   Date dat...
SQL Statements - SELECTSelect * from <table name>Select <column>, <column>, … from<table name>Select * from PersonAddressS...
SQL Statements – SELECT(Cont.)Select <column>, <column>, … from<table name>WHERE <columnl> <operator><column2 / Value>Sele...
SQL Statements - INSERTINSERT INTO <table>(<column1>, <column2>, ..., <columnN>)VALUES (<value1>, <value2>, ...,<valueN>)i...
SQL Statements - UPDATEUPDATE <table>SET <columnl> = <valuel>,<column2> = <value2>, ...,<columnN> = <valueN>update MySqlTa...
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 M...
Upcoming SlideShare
Loading in...5
×

Chapter 2: Ms SQL Server

410
-1

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
410
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Chapter 2: Ms SQL Server

  1. 1. Advanced ProgrammingMethodology in C# -Database
  2. 2. MS SQL Server
  3. 3. 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
  4. 4. 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).
  5. 5. 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).
  6. 6. MS SQL Server (Cont.)There are several editions of MS SQL Server:• Datacenter• Enterprise• Standard• Web• Business Intelligence• Workgroup• Express
  7. 7. MS SQL Server - Authentication
  8. 8. MS SQL Server – CreateDatabase
  9. 9. MS SQL Server – Create Table
  10. 10. MS SQL Server – Open Table
  11. 11. MS SQL Server – Query Editor
  12. 12. MS SQL Server – Query Editor
  13. 13. 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)
  14. 14. SQL Statements – CREATETABLECREATE TABLE MySqlTable( Name varchar(10) Not Null, Age int, SSN varchar(11), Date datetime, Gender char(6))
  15. 15. SQL Statements - SELECTSelect * from <table name>Select <column>, <column>, … from<table name>Select * from PersonAddressSelect AddressID, AddressLine1,City from PersonAddress
  16. 16. SQL Statements – SELECT(Cont.)Select <column>, <column>, … from<table name>WHERE <columnl> <operator><column2 / Value>Select AddressID, AddressLine1,City from PersonAddressWHERE City = ‘Redmond’
  17. 17. SQL Statements - INSERTINSERT INTO <table>(<column1>, <column2>, ..., <columnN>)VALUES (<value1>, <value2>, ...,<valueN>)insert into MySqlTable( Name, Age, SSN, Date, Gender )Values(Vidya Vrat,36,111-20-3456,GetDate(),Male)
  18. 18. SQL Statements - UPDATEUPDATE <table>SET <columnl> = <valuel>,<column2> = <value2>, ...,<columnN> = <valueN>update MySqlTableset Name = Pearlywhere Id = 3
  19. 19. SQL Statements - DELETEDELETE FROM <table>WHERE <predicate>delete from MySqlTablewhere Id = 2
  20. 20. 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×