You are on page 1of 20

S6R Mini Projects

Introduction of MS SQL & ASP.NET

About DBMS
A Database is a Collection of related Records and a set of programs that access and manipulate these records. A DBMS enables the user to enter, store and manage this data. Advantages: 1) Redundancy reduced 2) Data Inconsistency reduced 3) Data Can be shared 4) Standards can be set and followed (ANSI-American National Standard Institute)/ISO 5) Maintaining Data Integrity 6) Security implementation

Database Models
Flat-file type model-only one table/file Hierarchical Model-tree like windows explorer Network Systems Model-similar to Hierarchical but interconnected through network The relational Model-RDBMS most popular eg: MS(Microsoft SQL), My SQL, Oracle, Sybase SAP-ERP Enterprise Resource Planning etc

In 1980 Microsoft & Sybase jointly created SQL Server SQL 6.5,7, and SQL server 2000 in the year of 2000. Then SQL 2005 Latest is SQL 2010 MS SQL Editions SQL Server 2000 Enterprise Edition SQL Server 2000 Standard Edition SQL Server 2000 Personal Edition SQL Server 2000 Developer Edition

MS SQL 2000

How we start SQL Based Projects


Concept of Front End & Back End First we Design Table of our requirement (Database) Secondly check the table by inputting values & Viewing its contents Thirdly We Design a Form using Front End tools like ASP.NET/JSP/PHP etc

Starting MS SQL
Start\Programs\Microsoft SQL Server\Query analyzer Connect to SQL server .(Local) Connect using: Windows authentication Table Creation: We want to create a table which can hols Name, House Name, Place, PIN Code & Phone CREATE TABLE <Table_Name> (<Column_Name> <Data_Type)

Commands in SQL
CREATE TABLE Stu_detail (Name CHAR(20), H_Name VARCHAR(15),Place CHAR(20),PIN int, Phone int) INSERT INTO Stu_detail VALUES ('Eldhose','Mbits','Nellimatton','686695','996 12') To view the table sp_table <Table Name> To view contents SELECT <Select_list> FROM <Table_Name>

Commands ..
Modifying Table structure ALTER TABLE <Table_Name> {ALTER COLUMN <Column_name> <New_data_type>] | ADD [Column_name <Data_Type.] | {DROP COLUMN ,Column_Name> Updating Table Content UPDATE <Table_name. SET <Column_name = Value> [WHERE <Search condition>] Eg: UPDATE Stu_Detil SET Name = Eldho WHERE Name =Eldhose

ASP - Stands for Active Server Pages


ASP.NET

ASP.Net is a new internet programming technology developed by Microsoft .NET Languages :- C#,Visual Basic.NET,ASP.NET,Visual C++. NET Advantages

No Browser dependence : Compactable with all Web browsers Separation of Code from viewers Compiled Code While compiling keep the code in cached memory, thus performance increased ASP .NET support C++,Jscript,C# etc User-friendly IDE (Integrated Development Environment) Controls: Collection of HTML controls- through scripts Event Driven controls-other events can be controlled through programme User authentication-form based user authentication Easy configuration Easy deployment

ASP.NET; Process Flow

Memory :- The code that require to build a process is holding here, process can retrieve items from this memory thus by saving delay in re-building Parser:- Validate and interrupts page code of .aspx (.aspx for page & .aspx.cs for server side)page before passing the pages to the compiler Compiler:- Compiles the content of the page at run time in to an Intermediate Language (IL) Assembly Cache:- A machine level code cache present on each machine that has >NET framework installed. It keep the native code during pre-compilation Output cache:- After a page is built, it can be palced here. It hold entire pages, including data and objects In case of further request for the same page it is retrived dfrom this cache.

Web forms :- It provides a set of classes to design forms for the web pages similar to the HTML Forms. Web Services:- Includes a set of classes to design applications that can be accessed using a standard set of protocols Windows Forms :- Provides a set of class to design forms for windows based applications ASP.NET :- Provides classes to build web applications ADO.NET :- Provides classes to interact with databases. XML Classes:- Enables XML manipulation, searching and translations Base Framework Classes:- provides basic functionality such as input/output, string manipulation, security management,network communication etc. Common Language Specification (CLS):- is an agreement among language designers and class library designers to use a common subset of basic language features that all languages have to follow. Common Types System:- describes how types like classes, structures,enumerators,interfaces are declared, used and managed in the runtime and facilitate the use of typrs across varios languages.

C# (C-Sharp)
C# Developed in USA, team led by Andrews Hejlsberg developer of Borland Turbo C++, Delphi C# is a completed object-oriented language ; Simple, modern, efficient and derived from C-language family IntelliSense code snippets :- used for easy coding

Console Application Windows Application Web Application

C# Applications Development

Console Application: Console application are Command Line Based applications , which read and write characters from console. Start\Visual studio 2005\File\New\Project\C#\Console Application { Console.WriteLine(Welcome to the first program of Visual C#); Console.Read(); }

C# Windows Applications
Start\Visual studio 2005\File\New\Project\C# \Windows Application Create form with 1 text box & one submit button Double click on Submit button textBox1.Text = Welcome to first C# Windows Application; Build for form

C# Web Application
Web applications are programs to build websites which can be viewed through internet Start\Visual studio 2005\File\New\Website\C# \ASP.NET Web Site Create a form for Entering Name, Age and displaying the age while submitting Type the following code in button click

Next Class
ADO.NET & Database Connectivity

You might also like