Presenter Amandeep Kaur Lecturer Computer Engg. GPC Khunimajra (Mohali).
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/20132Dot Net
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/20133Dot Net
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/20134Dot Net
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/20135Dot Net
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/20136Dot Net
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/20137Dot Net
The.NET Framework Overview 13/02/20138Dot Net
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.NET 13/02/20139Dot Net
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 My Services Clients Applications Internet 13/02/201310Dot Net
.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/201311Dot Net
.NET Language 13/02/201312Dot Net
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. NET Java C++ VB 13/02/201313Dot Net
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 stability 13/02/201314Dot Net
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/201315Dot Net
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/201316Dot Net
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. JAVA C++ Visual Basic MSIL 13/02/201317Dot Net
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/201318Dot Net
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/201319Dot Net
.NET Web Services 13/02/201320Dot Net
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 XML 13/02/201321Dot Net
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/201322Dot Net
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 Hailstorm 13/02/201323Dot Net
.NET Web Services Architecture Web 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 HTML XML 13/02/201324Dot Net
.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/201325Dot Net
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/201326Dot Net
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/201327Dot Net
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 Service WSDL Interface SOAP 13/02/201328Dot Net
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 13/02/201329Dot Net
ADO.NET,.NET My Services,.NET/COM Interoperability 13/02/201330Dot Net
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 XML 13/02/201331Dot Net
A Object Model of ADO.NET 13/02/201332Dot Net
Benefits of ADO.NET Disconnected data sources XML Serialization Performance and Scalability 13/02/201333Dot Net
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/201334Dot Net
Services Provided.NET Alerts.NET Calendar.NET Contacts.NET Inbox.NET Documents.NET Wallet.NET Lists.NET Profile.NET Presence 13/02/201335Dot Net
Describing.NET My Services The Authentication Service: Passport XML Based Services 13/02/201336Dot Net
Authentication Service 13/02/201337Dot Net
.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/201338Dot Net
.NET Framework’s Com Interoperability 13/02/201339Dot Net
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/201340Dot Net
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/201341Dot Net
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 individually 13/02/201342Dot Net
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/201343Dot Net
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/201344Dot Net
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/201345Dot Net
SQL Database Objects A SQL Server database has lot of objects like –Tables –Views –Stored Procedures –Functions –Rules –Defaults –Cursors –Triggers 13/02/201346Dot Net
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/201347Dot Net
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/201348Dot Net
Database operations Changing a database Use Creating a database Create database Dropping a database Drop database 13/02/201349Dot Net
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/201350Dot Net
Thanks for nice audiance 13/02/201351Dot Net