DBA Developer. Responsibilities  Designing Relational databases  Developing interface layer Environment Microsoft SQL Server,.NET SQL Layer: Stored.

Slides:



Advertisements
Similar presentations
Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
Advertisements

Relational Databases Chapter 4.
Dimensional Modeling Business Intelligence Solutions.
Midterm Review Lecture 14b. 14 Lectures So Far 1.Introduction 2.The Relational Model 3.Disks and Files 4.Relational Algebra 5.File Org, Indexes 6.Relational.
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Overview SQL Server 2008 Overview Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server MVP, MCTS Microsoft Web Development MCP ITIL.
Enterprise Object Framework. What is EOF? Enterprise Objects Framework is a set of tools and resources that help you create applications that work with.
Rationale Aspiring Database Developers should be able to efficiently query and maintain databases. This module will help students learn the Structured.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
Using XML in SQL Server 2005 NameTitleCompany. XML Overview Business Opportunity The majority of all data transmitted electronically between organizations.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
XML in SQL Server Overview XML is a key part of any modern data environment It can be used to transmit data in a platform, application neutral form.
Structured Query Language. SQL is an ANSI (American National Standards Institute) standard computer language for accessing and manipulating database systems.
Data Access Patterns Some of the problems with data access from OO programs: 1.Data source and OO program use different data modelling concepts 2.Decoupling.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Database Technical Session By: Prof. Adarsh Patel.
Introduction to SQL Steve Perry
Simple Database.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
Company LOGO 1 Database Creation and Maintenance Jorge G. Martinez.
HSCI 709 SQL Data Definition Language. SQL Standard SQL-92 was developed by the INCITS Technical Committee H2 on Databases. SQL-92 was designed to be.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
SQL Server Indexes Indexes. Overview Indexes are used to help speed search results in a database. A careful use of indexes can greatly improve search.
SQL Data Definition Language (DDL) Using Microsoft SQL Server 1SDL Data Definition Language (DDL)
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
1 © 1999 Microsoft Corp.. Microsoft Repository Phil Bernstein Microsoft Corp.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
SQL Structured Query Language 1. Data Definition Language (DDL) is used to manage table and define data structure i.e. CREATE, ALTER, DROP Data Control.
What’s a database? Data stored in a structured format that lends itself to easy manipulation and recall.
Visual Programing SQL Overview Section 1.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
SQL Server 2005: Extending the Type System with XML.
Understand Tables and How to Create Them Database Administration Fundamentals LESSON 2.2.
IS6146 Databases for Management Information Systems Lecture 3: SQL III – The DDL Rob Gleasure robgleasure.com.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Ch 5. Introducing More Database Objects. Database Objects Table (ch2) View (ch3) Stored Procedure Trigger Function User-defined types.
Chapter 3: Relational Databases
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Databases Introduction - concepts. Concepts of Relational Databases.
Understand Data Definition Language (DDL) Database Administration Fundamentals LESSON 1.4.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
1 Agenda TMA02 M876 Block 4. 2 Model of database development data requirements conceptual data model logical schema schema and database establishing requirements.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
CSE6011 Implementing a Warehouse  Monitoring: Sending data from sources  Integrating: Loading, cleansing,...  Processing: Query processing, indexing,...
Databases and DBMSs Todd S. Bacastow January
Rob Gleasure robgleasure.com
Web Systems & Technologies
Rob Gleasure robgleasure.com
Chapter 4 Relational Databases
Phil Bernstein Microsoft Corp.
Databases and Data Warehouses Chapter 3
ISC440: Web Programming 2 Server-side Scripting PHP 3
Client Access, Queries, Stored Procedures, JDBC
Database.
CS 440 Database Management Systems
PHP and MySQL.
A JSON’s Journey through SQL Server
A New Storage Engine Specialized for MOLAP
Convert (flatten) IATI XML file to CSV file(s) using XQUERY
Database Connections.
Presentation transcript:

DBA Developer

Responsibilities  Designing Relational databases  Developing interface layer Environment Microsoft SQL Server,.NET SQL Layer: Stored procedures, functions,CLR Objects Object Layer: ADO. Net, Microsoft enterprise library, Object-Relational mappers  Query optimization/Performance tuning Code review for performance Missing indices

Applications  Single Sign on (SSO)  Search Solutions Search Database Search Engines  Import/Export solutions Sending to and receiving data from web services XML/CSV transformation  Frameworks  Data warehouse and OLAP

Challenges  Performance Missing index Poorly written queries Normalized vs. Denormalized Deadlocks  Design Schema flexible to changes DDL (data definition language) Vs DML(data manipulation language) ○ example

Simple example  Design a database to store user information Username,password, first name, last name, postal code Requirement changes , Address, City, Province, Country, language and etc now is needed to be stored. Solution ? CREATE TABLE Users ( UserID INT NOT NULL Primary Key, UserName NVARCHAR(50) NOT NULL, FirstName NVARCHAR(50) NULL, LastName NVARCHAR(50) NULL, PostalCode NVARCHAR(50) NULL );

Simple example  Option 1 add more column to the Users table  Option 2 insert rows instead of columns (How)

CREATE TABLE Users ( UserID INT NOT NULL Primary Key, UserName NVARCHAR(50) NOT NULL ); CREATE TABLE Properties ( PropertyID INT NOT NULL Primary Key, PropertyName NVARCHAR(50) NOT NULL ) CREATE TABLE UserProperty ( PropertyID INT NOT NULL Primary Key, UserID INT NOT NULL, value NVARCHAR(100) NOT NULL ) Many to Many Relation

XML DataType –Hybrid design CREATE TABLE Users ( UserID INT NOT NULL Primary Key, UserName NVARCHAR(50) NOT NULL, UserProperty XML ); CREATE TABLE Properties ( PropertyID INT NOT NULL Primary Key, PropertyName NVARCHAR(50) NOT NULL ) CREATE TABLE UserProperty ( PropertyID INT NOT NULL Primary Key, UserID INT NOT NULL, value NVARCHAR(100) NOT NULL )

XML DataType –Hybrid design  XML Advantages Flexibility Easy to parse and to serialized in to objects  Disadvantages Searching trough XML is Slow Maintenance – adds over head to insert and update  XML model is not a replacement for Relational model

Good to know about  Paging in SQL  Trees & Hierarchies in SQL  Graph in SQL  Recursive query in SQL (using Common Table Expressions)  XML manipulation (XPATH,XQUERY)  CLR objects in MS SQL Server