Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

51
Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali) .

Transcript of Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Page 1: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Presenter

Amandeep Kaur

Lecturer Computer Engg.

GPC Khunimajra (Mohali)

.

Page 2: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 2

• Overview of .NET• Visions and Goals of .NET• Building Blocks of .NET• .NET Languages• .NET applications• Interoperability between .NET and

COM+

Presentation Outline

13/02/2013

Page 3: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 3

Overview

• Microsoft .NET is a new foundation for solving common problems and building Windows applications.

• An add-on run-time environment that runs on Windows 2000 operating systems.

What is .NET?

13/02/2013

Page 4: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 4

Overview• A way to think about this new technology is

to view .NET as a brand, one that Microsoft has applied to several technologies.

• Some of the technologies are new (providing new services and possibilities) and others allow an updated approach to creating Windows applications that we know today..

13/02/2013

Page 5: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 5

Overview

• Microsoft .NET will affect anyone who works in the Windows environment.

However, Most Windows developers once learn and implement this new tools and techniques will find themselves capable of building more powerful, more useful software in less time.

Why .NET?

13/02/2013

Page 6: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 6

Overview

• The .NET Technologies today include: - .NET framework - Visual Studio .NET - .NET My Services - .NET Enterprise Servers

Most technologies that carry the .NET brand have direct support from Web Services.

13/02/2013

Page 7: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 7

Overview

• .NET framework is new environment for creating applications. Because the foundation is the same, developers see a much more consistent environment.

• The .NET framework includes: CLR (Common Language Runtime) and the .NET Framework class library (ASP.NET, ADO.NET, Windows forms, Enterprise Services, and much more).

13/02/2013

Page 8: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 8

The .NET Framework

Overview

13/02/2013

Page 9: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 9

Overview

• Visual Studio.NET supports several programming languages that can be used with .NET framework

• Visual Studio.NET supports four CLR-based languages:

- Visual Basic.NET

- C++

- C#,

- and Jscript.NET13/02/2013

Page 10: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 10

Overview

• .NET My Services is set of Internet-accessible Web services. It allows users to store and access the same personal information such as calendar from your home PC or Wireless PDA.

.NET MyServices

Clients Applications

Internet13/02/2013

Page 11: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 11

• .NET Enterprise servers provide a useful set of services (BizTalk Server 2000, Application Server 2000, Commerce Server 2000, Host Integration Server 2000, SQL Server 2000, Exchange Server 2000, Mobile Information Server 2001, and Internet Security and Acceleration Server 2000).

Overview

13/02/2013

Page 12: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 12

.NET Language

13/02/2013

Page 13: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 13

•With COM, Reality of software plug and play.Net is much simpler to use.

• COM supports language independence

• .Net supports language integration. You can extend a class hosted in .Net and can catch exceptions thrown by the code in .Net.

COM

JAVA C++ VB

.NETJava C++VB13/02/2013

Page 14: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 14

How does .Net ensure Language Integration

• First, there is adherence to the common type system (CTS). There are value types, which are simple data types like integers and float, and reference types

• By enforcing the different types of data into two generic types of data, multiple languages can intermingle with one another.

• Ensures code stability13/02/2013

Page 15: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 15

How does .Net ensure Language Integration

• Second, there is adherence to the common language specification (CLS). CLS defines conventions that languages must support in order to be interoperable in .Net.

• There are close to 40 conventions which the languages must obey.

13/02/2013

Page 16: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 16

How does .Net ensure language integration

• Third, there is a unified, extensible class library.

• Hundreds of classes, interfaces, types, and structures grouped into a hierarchical system of namespaces that contain logically related classes.

• Full level of Object-Oriented Programming support

13/02/2013

Page 17: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 17

How does .Net ensure language integration

• Fourth, all different languages are compiled into what is called Microsoft Intermediate Language (MSIL).

• Similar to Java bytecode, which must be converted into native code by the common language runtime.

JAVAC++Visual Basic

MSIL13/02/2013

Page 18: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 18

How does .Net ensure language Integration

• Fifth, the Common Language Runtime (CLR), similar to a Java Virtual Machine, provides important execution-support and management services.

• Garbage collection, Exception Handling, Security Support, Debugging Support, and Interoperation support.

13/02/2013

Page 19: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 19

How does .Net simplify deployment compared to COM• Definitions of assembly, metadata, manifest

• Avoid DLL Hell• Loads correct version of DLL files because

of the information contained in the metadata and manifest.

13/02/2013

Page 20: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 20

.NET Web Services

13/02/2013

Page 21: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 21

Overview of .NET Web Services• Microsoft .NET Services allows software

components and applications to be accessed on the web using standard web protocols such as HTTP, SMTP and XML

Software component

HTTP

XML13/02/2013

Page 22: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 22

Web Services in a Distributed Environment

• Web Services are the building blocks of software development

• Web services components allow for interoperability of distributed environment

Web Services

13/02/2013

Page 23: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 23

Description of .NET Web Services

• What is Web Services?• Software can be provided as a

service on the Internet• The software component is stored in

a standard industry format• Microsoft Passport• Microsoft Hailstorm13/02/2013

Page 24: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 24

.NET Web Services ArchitectureWeb services can be used by any application

that can read and parse XML formatted data streams that are transmitted through HTTP protocol

Presentation Layer

Business Layer

Data Layer

Web Application

HTTP

XML

Web Service

Web Service

HTML

XML

13/02/2013

Page 25: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 25

.NET framework• Web Service format

– Web services are exposed to Web users using a standard web protocol such as SOAP

• Web Service Description– Describes a Web Service interface and how it can be

used using WSDL (Web Services Description Language)

• Web Service Discover – Allows a Web Service to be registered and made

available to users, described using UDDI (Universal Discovery Description and Integration

13/02/2013

Page 26: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 26

XML Technology

• Extensible Markup Language (XML) is the standard universal format for data on the internet

• XML delivers and describes data in a consistent and structured form

• XML complements HTML, does not replace HTML

13/02/2013

Page 27: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 27

SOAP

• Standard communication protocol of .NET Web Services

• Specification that uses HTTP protocol to transport XML format for messages

• Wire protocol that uses openly available technologies

• Supports stateless programming model• Lightweight protocol

13/02/2013

Page 28: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 28

WSDL• XML Schema of a web service description

document is WSDL (Web Service Description Language)

• Interface that allows web service clients to interact and understand web service

• Can be implemented by any SOAP enabled client

• Language Independent

Clients Web ServiceWSDL

Interface

SOAP

13/02/2013

Page 29: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 29

UDDI• Universal Description, Discovery and Integration

(UDDI) is the yellow pages of Web Services• Business can publish their web service• Business can locate a web service• UDDI becomes a central location where web services

can be located

UDDI - Yellow Pages

Web Services

Web Services

13/02/2013

Page 30: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 30

ADO.NET, .NET My Services, .NET/COM

Interoperability

13/02/2013

Page 31: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 31

Overview of ADO.NET• Data access technology built into .NET

Framework• It is a set of .NET classes which provides

access to heterogeneous datasources• Built on top of CLR• Provides better support for disconnected

data access• Data centric as opposed to database centric• Tight integration with XML13/02/2013

Page 32: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 32

A Object Model of ADO.NET

13/02/2013

Page 33: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 33

Benefits of ADO.NET

• Disconnected data sources• XML Serialization• Performance and Scalability

13/02/2013

Page 34: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 34

Overview of .NET My Services• It is a set of internet accessible webservices.• It can be accessed from desktop machine,

personal digital assistant (PDA), mobile phone and other devices.

• Consists of network authenticated service together with a set of SOAP callable web services.

• Services are provided by distributed group of services maintained by Microsoft and other companies.

• Each services provide a specific function.13/02/2013

Page 35: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 35

Services Provided• .NET Alerts• .NET Calendar• .NET Contacts• .NET Inbox• .NET Documents• .NET Wallet• .NET Lists• .NET Profile• .NET Presence

13/02/2013

Page 36: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 36

Describing .NET My Services

• The Authentication Service: Passport• XML Based Services

13/02/2013

Page 37: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 37

Authentication Service

13/02/2013

Page 38: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 38

.NET / COM Interoperability

• Why do we need it?• COM is the backbone of all DNA (Distributed Network

Architecture) technologies• Applications typically use COM components as either

home grown or bought offshelf• COM / .NET interoperability refers to the concept of a

COM component being able to use .NET component and vice-versa

• DNA to .NET migration will typically be done in stages• Interoperability is essential when existing COM

components want to use .NET components & vice-versa and during migration path from DNA to .NET

13/02/2013

Page 39: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 39

.NET Framework’s Com Interoperability

13/02/2013

Page 40: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 40

Introduction to MS SQL

• MS SQL Server is a database server • Product of Microsoft• Enables user to write queries and other SQL

statements and execute them• Consists of several features. A few are:

– Query Analyzer– Profiler– Service Manager– Bulk Copy Program (BCP)

13/02/2013

Page 41: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 41

Profiler

• Monitoring tool• Used for performance tuning• Uses traces – an event monitoring protocol

• Event may be a query or a transaction like logins etc

13/02/2013

Page 42: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 42

Service Manager

• Helps us to manage services• More than one instance of SQL server can

be installed in a machine• First Instance is called as default instance• Rest of the instances (16 max) are called as

named instances• Service manager helps in starting or

stopping the instances individually13/02/2013

Page 43: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 43

Instances

• Each instance is hidden from another instance• Enhances security• Every instance has its own set of Users, Admins,

Databases, Collations• Advantage of having multiple instance is

– Multi company support (Each company can have its own instance and create databases on the same server, independent on each other)

– Server consolidation (Can host up to 10 server applications on a single machine)

13/02/2013

Page 44: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 44

BCP

• Bulk Copy Program• A powerful command line utility that

enables us to transfer large number of records from a file to database

• Time taken for copying to and from database is very less

• Helps in back up and restoration

13/02/2013

Page 45: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 45

Query Analyzer

• Allows us to write queries and SQL statements

• Checks syntax of the SQL statement written• Executes the statements• Store and reload statements• Save the results in file• View reports (either as grid or as a text)

13/02/2013

Page 46: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 46

SQL Database Objects

• A SQL Server database has lot of objects like– Tables– Views– Stored Procedures– Functions– Rules– Defaults– Cursors– Triggers

13/02/2013

Page 47: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 47

System Databases

• By default SQL server has 4 databases– Master : System defined stored procedures,

login details, configuration settings etc– Model : Template for creating a database– Tempdb : Stores temporary tables. This db is

created when the server starts and dropped when the server shuts down

– Msdb : Has tables that have details with respect to alerts, jobs. Deals with SQL Server Agent Service

13/02/2013

Page 48: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 48

Creating a database

• We need to use Master database for creating a database

• By default the size of a database is 1 MB• A database consists of

– Master Data File (.mdf)– Primary Log File (.ldf)

13/02/2013

Page 49: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 49

Database operations• Changing a database

Use <dbname>

• Creating a databaseCreate database <dbname>

• Dropping a databaseDrop database <dbname>

13/02/2013

Page 50: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 50

SQL Server Data types

• Integer : Stores whole number• Float : Stores real numbers• Text : Stores characters• Decimal: Stores real numbers• Money : Stores monetary data. Supports 4 places after

decimal• Date : Stores date and time• Binary : Stores images and other large objects• Miscellaneous : Different types special to SQL Server.

(Refer to notes for more info)13/02/2013

Page 51: Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).

Dot Net 51

Thanks for nice audiance

13/02/2013