Online cet
-
Upload
ishwarkiran1 -
Category
Documents
-
view
279 -
download
1
Transcript of Online cet
ONLINE-CET 2013-2014
Project Synopsis
BACHELOR OF COMPUTER APPLICATIONS
SUBMITTEDBY:
AKSHAY.R.DUDHANKAR (M1127003)
VIJAYKUMAR.L.JAGATAP (M1127068)
BASAVESHWAR SCIENCE COLLEGE
BAGALKOT
NEW ADMISSION APP
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 1
ONLINE-CET 2013-2014
1.AKSHAY.R.DUDHANKAR (M1127003)
VIJAYKUMAR.L.JAGATAP (M1127068)
2.ChetanaEducation Society NearManasResidency,Bijapur.
4.AKSHAY:7411352147
VIJAY:8553367100
5.BACHELOR OF COMPUTER APPLICATION (BCA)
6.6th.
7.NEW ADMISSION APP
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 2
ONLINE-CET 2013-2014
ACKNOWLEDGEMENT
The successful presentation of this project is an acknowledgement of the immense support expended by BASAVESHWAR SCIENCE COLLEGE which has provided an opportunity to fulfill the most cherished desire to reach my goal
I express my sincere thanks to our reverend Principal Prof. for extending all the facilities to carry out this project.
I express my sincere gratitude to our beloved H.O.D Dr.M.M.Mutsaddi who has been a constant source of inspiration and motivation
I would also like to express out special thanks to my project guide Mr. , who has spent his precious time by guiding and encouraging me throughout the development of the project.
I am highly grateful to external guide Mr. who helped me throughout the project. Last but not the least; I am grateful to my parents, my friends and all the people who have helped me directly or indirectly to make this project a success.
“Nothing worthwhile is achieved without a deep thought and hard work”.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 3
ONLINE-CET 2013-2014
CONTENTS1. Introduction
2. Problem Statement
2.1 Existing System
2.2 Proposed Solution
2.3. Advantages of Proposed Solution
3. Software Requirement Specification
3.1 Functional Requirements
3.2 Performance requirements
3.3 Exception Handling
3.4 Acceptance Requirements
3.5. Design Hints and Guidelines
3.6 System Specification
4. System Design
4.1 Use Case Model
5. Detailed Design
5.1 Entity Relationship(ER) Diagram
5.2 Low Level Design
5.2.1 Relational Model
5.2.2 TABLE DESCRIPTION
6. Implementation
6.1 The features of the tool used to design the front end.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 4
ONLINE-CET 2013-2014
6.2 The features of the db used to design the back end.
6.3 The connectivity process, installation process, execution
process Connectivity
7. Testing and Results7.1 Introduction
7.2 Test cases and results
8. Glossary of Terms
9. Conclusion
10. Future Enhancement
11. Screen Shorts
12. About Tools and Technologies
12.1 Introduction C#. NET
12.2 SQL Server 2005:
13. Coding Part
14. Bibliography
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 5
ONLINE-CET 2013-2014
1. Introduction
ONLINE-CETis the process of conducting the common entrance test for the student by online. This is help for the student to written the common entrance test over the internet. This project is helped for the student to save the time and less workload for the conductor, valuation of the test is very easy that means results should be given very less time.
Thisapplication contains modules.
Admin Staff Student
These modules are further divided into respective related modules.
This project contains the admin to add the staff, subjects and student .admin assigns the subject to staff. The staff adds questions for the student. Student answer the questions .This helps forstudents to save the time and makes them feel that this particular system have such a nice features to the student. Hereevery small information about the CET is available without having to be present at the CET cell.
These many features of this project will give the online CETas a digital feature.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 6
ONLINE-CET 2013-2014
2. Problem Statement2.1 Existing System
Currently there is no online system to conduct all CET examinations through using a paper.It will take lot of time to exist question papers. It waste huge amount of papers. More number of men works. The maintenance cost is high. From this system we cannot keep question papers safely so that can be illegally acquired by persons
When a person want to apply the common entrance test the person collect information from anysources like newspaper or in TV news. Then collecting demand draft from bank then sends it to CET cell. Thecell gives the application form to student. This is large process hence it is time consuming and more cost. Student fills form by manually. In this the student gives the wrong information alsothis is one of the disadvantage.
2.2 Proposed SolutionThe ONLINE CET is an easy to maintain, ready to run, scalable, affordable and
reliable cost saving tool from Software Associates suited for online entrance test. Data will
be secured as unauthorized access can be avoided.
2.3 Advantages of Proposed Solution Reduce the man power:
Admin can only handle the all details of forms. Admin can create
the operator and user and give them authority to access.
Providing Security:
Admin has the only authority to login the application. So no one can
easily get access any information.
Low cost
User can pay low cost and take good quality material.
This software maintains online CET examination To provide an interface from where controller will create new Expert and
Admin for Exam Dept. The authority to modify the criteria is provided to the controller of
examination. To facilitate Experts to send a collection of questions in Question Bank
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 7
ONLINE-CET 2013-2014
3. Software Requirement Specification
3.1 Functional RequirementsThe ONLINE CET Application System maintains the exam details along with the
records are maintained in synchronized way.
Admin Module: Admin is the person who is responsible to maintain the majority details.
He is responsible to add the staff, subjects and student and also assigns the subject to staff.
Examination records are maintained by the admin.
Staff:The staff responsible to adds questions for the students.
Student:Students responsible to answer the questions and view the result.
3.2 Performance requirementsThe system is portable and maintains examdetails. . The database will be scalable,
it must have capacity to hold large database. By using this system saves time and provides
efficient way to enter and Data will be secured as unauthorized access can be avoided.
.
3.3 Exception HandlingThe system is high secured, the authenticated is user means whose having username
and password, they can use the system otherwise login failed. The followings are
The first name field is a mandatory field for a new admin account.
In admin module user name, password, id, qualification, hall ticket number are the
mandatory fields.
Exceptions are the unexpected situations occur sometimes and which may affect the
normal execution of an application. Normally exceptions are caused by both hardware and
software. Exceptions produced by software’s are like data not exists, data already exists,
numeric values, special characters entries when not allowed. By keeping all these
exception handling, application has been built on many efficient validation functions,
which robust the efficiency and accuracy of application.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 8
ONLINE-CET 2013-2014
3.4 Acceptance Requirements Before accepting the developed system the developer must demonstrate the proper
working of the system.
The developed software product should meet the customer’s requirements.
Whatever the customer and functional requirements specified in the analysis phase
must satisfy customer needs.
3.5. Design Hints and Guidelines
These can be used to create an user friendly GUI, graphical user interface for this
the application will use front end as C# .NET which involves the drag and drop
options to design forms
The forms are design using labels, textboxes, buttons, image, image button, combo
box, datagridview, radio buttons etc.
Textbox: it is use to read input from user. It enables to add alphanumeric values
with length of 255 characters.
Label: labels’ are the tokens of user interface which are used to indicate the
headings and labels.
Combo Box: It is used to show the list of the data. The loading standard, the
combo box will start with cmd.
Image: It is used to insert an image in the form.
Button: When a button is clicked, the form containing the button is submitted to
the server for processing, and both click and commend events are raised.
Image button: It is a special kind of button which provides link to next form by
clicking on image insert on image button.
DataGridview:It is a collection of rows and columns, to show the large data, we
can use the datagridview.
Radio Button: You can add individual radio button to your page one by one, using
the radio button are grouped together using the Grope name property. Only one
radio button control from each group can be selected at a time.
The design can made more pleasant by adding different colors to it, which will
provide a good look and feel for user.
3.6 System Specification
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 9
ONLINE-CET 2013-2014
Hardware Requirements
The selection of hardware is very important in the existence and proper
working of any software. When selecting hardware, thesizeand requirements are also
important.
The proposed System is developed on:
Processor : Pentium IV
RAM : 512MB
Hard Disk Drive : 160GB
Software Requirements
The software’s on which the project is proposed to be developed has the
following configuration:
Operating System : Windows XP S2
Front- End : C#. NET with ASP.Net 2008
Back- End : MS SQL SERVER 2008 EXPRESS.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 10
ONLINE-CET 2013-2014
4. System Design
Use Case Model
The use-case concept is used to present functionality of the system described in a number
of use-cases, each of which represents a specific flow of events in the system. A use-case
diagram is a graph of actors, a set of use cases enclosed by a system boundary, and
generalization among the use-cases.
Admin
Staff
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 11
Add staff
Add subject
Assign subject to staff
View result report
Log in
Add Question
View result report
ONLINE-CET 2013-2014
Student
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 12
Answer a question
View his own result
ONLINE-CET 2013-2014
5. Detailed Design
Entity Relationship(ER) Diagram
For database application, the entity relationship approach can be used effectively
for modeling some part of the problem. The ER modeling approach is used to help
design information system. The main focus of ER modeling is the data items in the
system and relationship between them. It aims to create a conceptual schema for
the data from the user perspective. The model created is the high-level data model.
An ER diagram consist of the following components
It represents entity sets.
It represents attribute
It represents relationship set
Data Flow Diagram
DFD
The data flow diagram is an important modeling tool. It shows the use of data
pictorially. DFD represents the flow of data between different transformations and
processes in the system. The DFD shows logical flow of data.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 13
ONLINE-CET 2013-2014
Different notations used in DFD are
Process
Processes show the system does. Each process has one or more inputs and none or
more outputs. If a process does not have an output then it is considered to a Black Hole.
The notation for the process is
Functional Processing
It is represented by an oval. The processing or main transactions are specified by this
notation.
Data Flow
It is represented by an arrow line and name of the data is specified by the side of the
line as label. This is used for the data movement.
Data Store
It is represented by anyone open-end rectangle. The database used in the system is
specified by this notation.
Source or Sink
It is represented by one open-end rectangle. It is used for specifying from where data
comes and where it reaches.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 14
ONLINE-CET 2013-2014
5.1 Data Flow Diagram
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 15
Admin
Add Staff
Add Subject
Assign
View result
StaffLogin
Add Question
Viewreport
Answer
View his own result
Student
Staff
Subject
Result
Staff
Question
Result
Question
Result
ONLINE-CET 2013-2014
5.2 Low Level Design
5.2.1 Relational Model
Relational Schema is the core idea to describe a database as a collection of predicates
over a finite set of predicate variables, describing constrains on the possible values and
combinations of values. The content of the database at any given times is a finite model
(logic) of the database i.e. a set of relations, one per predicate variables such that all
predicates are satisfied. A request for information from the database (a database query) is
also predicates.
The purpose of the relational model is to provide a declarative method for specifying
data and queries we directly state what information the database contains and what
information we want from it, and let the
Following are the steps which can be used to convert ER-Components to a relational
model.
Step 1: For regular strong entity type E in the ER-schema
1. Create a relation R to represent strong entity E and include all simple attributes of
E as attributes of R.
2. Include only simple component of composite attribute if exist in E as attribute of
R.
3. Choose one of the key attribute of E as the primary key of R.
4. If the chosen key attribute of E is composite, the set of simple attribute that from it
will together from the primary key of R.
5. If E contains attribute of type multivalued or complex then follow step no 6 to
convert it into relational concepts.
Step 2: For every weak entity ‘w’ in the ER schema with owner entity type ‘E’
1. Create a new relation R to represent ‘W’. Include all simple attribute (simple
components of composite attributes) of W as attribute of relation R.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 16
ONLINE-CET 2013-2014
2. Include as foreign key attributes in R the primary key attribute of relation that
corresponds to the owner entity type.
3. The primary key of R is the combination of foreign key and the partial key of ‘W’.
Step 3: For each binary 1:1 relationship type R in the ER relational model
1. Identify relations S and T that corresponds to the entity types participating in R.
2. Choose one of the relation say S and include as foreign key in the primary key of
T.
3. It’s better to choose an entity type with total participation in R in the role of S.
4. Include all simple attribute (or simple components of composite attributes) of the
1:1 relationship type R as attribute of ‘S’.
Step 4: For each binary 1:N relationship type R in the ER schema or ER model
1. Identify the relation ‘S’ that represents the participating entity type at the N side of
the relationship type R.
2. Include the foreign key in S the primary key of the relation ‘T’ that represents the
other entity type participating in the relationship type R.
3. Include all simple attributes (simple components of composite attributes) of the 1:
N relationship type as the attribute of ‘S’.
Step 5: For each binary M: N relationship type R in the ER schema
1. Create a new relation ‘S’ to represent R.
2. Include as foreign key in ‘S’ the primary key of relations that represents that
participating entity type in the relationship R.
3. Include any simple attribute of R as attributes of ‘S’.
4. The primary key of ‘S’ is the combination of foreign key including S.
Step 6: For each multivalued attribute A
1. Create a new relation R.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 17
ONLINE-CET 2013-2014
2. This relation R will include an attribute corresponding to A plus the primary key
attribute K as foreign key in R of the relation that represents the entity type or
relationship type has A as an attribute.
3. The primary key of R is the combination of A and K. If A is composite we include
its simple component as attribute of R.
Step 7: For each n-ary relationship type R where n>2
1. Create new relation S to represent R.
2. Include as foreign key in S the primary key of relations that represent or
correspond to the participating entity type in R.
3. Include any simple attribute of R as attribute of S.
4. The primary key of S is the combination of all foreign key, if each entity associates
with relation N.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 18
ONLINE-CET 2013-2014
5.2.2 ER Diagram
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 19
M
Admin
id FirstName
UsernamePassword
Add
Subject
id Subject Name
Staff
id Name
Designation
Qualification
Experience
Sub Assign
StudentAdd
id
Name
Course
Hallticketno
viewResult
Markobtn Noofqu
Question
id
Question
Opt3
Opt2Opt1
Opt4
Correct ans
Answer
Staff Name
M
M
1
1 NN
M
ONLINE-CET 2013-2014
5.3 Table Description
DATA TABLES
Staff:
Id
First Name
Last Name
Qualification Designation Experience User Name
Pwd
Admin:
First Name
Last Name
UN Pwd Cont E-mail Address
Question:
Id Question Opt1 Opt2 Opt3 Opt4 Correct Ans
Result:
Id Stud name
No of Correct Ans
No of Question Attempted
Total No of Questions
Add Sub:
Id
Staff Name Sub Name
Stud :
Id
Stud Name
Contact Address Email_id Year_of_admiss HallticketNo
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 20
ONLINE-CET 2013-2014
6.Implementation
Implementation is the carrying out, execution, or practice of a plan, a method, or any
design for doing something. As such, implementation is the action that must follow any
preliminary thinking in order for something to actually happen. In an information
technology context, implementation encompasses all the processes involved in getting
new software or hardware operating properly in its environment, including installation,
configuration, running, testing, and making necessary changes. The word deployment is
sometimes used to mean the same thing. In this sense implementation is an ongoing
process to implement this project “Cargo Management System”.
6.1 The features of the tool used to design the front end.Windows Form application for the Microsoft.NET framework using C#. The sample
application demonstrates how to create and layout controls on a simple form and the
handling of mouse click events. The application displays a form showing attributes of a
file. This form is similar to the properties dialog box of a file (Right click on a file and
Click on Properties menu item). Since attributes of a file will be shown, the sample will
show how to use File IO operations in .NET framework.
Most of the C# core functionality is implemented in the System namespace. For forms
application, the functionality is included in the System.WinForms namespace. Therefore,
right at the top of our source file we need to define these namespaces.
Using System;
Using System.WinForms;
Using System.Data.Sql
These can be used to create an user friendly GUI, graphical user interface for this the
application will use front end as C# .NET which involves the drag and drop options to
design forms
The forms are design using labels, textboxes, buttons, image, image button, combo
box, datagridview, radio buttons etc.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 21
ONLINE-CET 2013-2014
6.2 The features of the db used to design the back end.For back end using MS SQL Server 2005 supports having a wide range of users
access it at the same time. An instance of MS SQL Server 2005 includes the files that
make up a set of database and copy of the DBMS software. Applications running on
separate computer use a SQL Server 2005 communications component to transmit
commands over a network to the SQL Server 2005; it can reference any of the databases in
that instance that the user is authorized to access. The communication component also
allows communication between an instance of SQL Server 2005 and an application
running on the computer.
6.3 The connectivity process, installation process, execution process
Connectivity The MS SQL Server 2005 is used for provider for connection purpose.
Using System.Data.Client; is used for namespace operations
Sqlconnection class is used for Connection to sqlserver.
How to load and Run
First we create exe file and we execute this execute this execute file in client
machine.
Double click on the executable file the application will run.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 22
ONLINE-CET 2013-2014
7. Testing and Results7.1 Introduction
Software testing is a critical element of software quality assurance and represents the
ultimate review of specification,design and code generation. Testing stratergies used are:
Unit testing:
Individual forms (web pages) are tested to ensure they operate correctly.
In case of missing any fields or entering any invalid data(fault) are validated and
are checked.
Ex: In login page user name and password are checked for Correctness as they are
compulsory and their existance with data table.
Module Testing:
A module encapsulates related components so can be tested without other system
modules.
Sub-System testing:
Sub system is a collection of modules like technical forum.
It is checked that all activities carried out by a team are stored in the database with
their unique team code using sessions.
Code Testing:This examines logic program. To follow this test, case are developed such that every
path of the program is tested.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 23
ONLINE-CET 2013-2014
7.2 Test cases and results:Test Case: 1
Description:Admin has to login into login page.
Input: Correct username and password.
Desired output: Admin login into his window login page.
On Error: A message indicating invalid user.
If fields kept blank A message indicating to fill the desired
fields.
Remark Ok.
Test case 2
Description:Admin creates user and user has to login with valid
username and password.
Input: Correct username and password.
Desired output: User login into his window login
page.
On Error: A message indicating invalid user.
If fields kept blank A message indicating to fill the
desired fields.
Remark Ok.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 24
ONLINE-CET 2013-2014
8. Glossary of Terms
ER Model -Entity Relationship Model.
DFD
API
MFC
MDI
COM
SQL
DTS
CLR
CTS
CLS
MSIL
RAD
SDK
UI
-Data Flow Diagram.
-Application Programming Interface.
-Microsoft Foundation Classes.
-Multi Documents Interface.
-Component Object Model.
-Structured Query Language.
-Data Transformation Services.
-Common Language Runtime.
-Common Types System.
-Common Language Specification.
-Microsoft Intermediate Language.
-Rapid Application Development.
-Software Development Kit.
-User Interface.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 25
ONLINE-CET 2013-2014
9. Conclusion
The Online CET Software designed for our client,tohave covered the requirements of
the client and succeeded in solving the problems of client with respect toonline
cetSoftware. The application has deals with the modules like admin, student, staff. the
application also successful in giving the relevant messages for user student.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 26
ONLINE-CET 2013-2014
10. Future Enhancement
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 27
ONLINE-CET 2013-2014
11. Screen Shorts
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 28
ONLINE-CET 2013-2014
12. About Tools and Technologies
12.1 Introduction C#. NETC# programming language and .NET base class libraries using a friendly and
approachable tone. The first edition of C# and .NET was published in conjunction with the
release of .NET Beta 2, circa the summer of 2001.
Given that .NET is such a radical departure from the current thoughts of day,
Microsoft has developed a new programming language (C#) specifically for this new
platform. C# is a programming language that looks very similar (but not identical) to the
syntax of java. For example, like java, a C# class definition is contained within a single-
source code file (*.cs) rather than the C++-centric view of splitting a class definition into
discrete header (*.h) and implementation (*.cpp) files.
.NET framework is completely new model for building systems on the Windows
family of operating systems and in future.
The numerous benefits provided by C# and the .NET platform:
1. Life As a C/Win32 API (Application Programming Interface) Programmer.
Developing software for the Windows family of operating systems involved using
the C programming language in conjunction with the Windows API.
2. Life AS a C++/MFC (Microsoft Foundation Classes) Programmer.
C++ can be thought of as an object-oriented layer on top of c. Thus, even though
C++ programmers benefit from the famed “pillars of OOP”. The main role of MFC
is to wrap a “sane subset” of the raw Win32 API behind a number of classes,
magic macros and numerous code wizards.
3. Life As a Visual Basic 6.0 Programmer.
Many programmers have shifted away from the world of C(++)-based frameworks
to kinder, gentler languages such as Visual Basics 6.0. VB is popular due to its
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 29
ONLINE-CET 2013-2014
ability to build complex user interfaces, code libraries (e.g., COM servers) and data
access logic with minimal fuss and bother.
4. Life As a Java/J2EE Programmer.
Enter Java. The Java programming language is (almost) completely object oriented
and has syntactic roots in C++. Although Java is a very elegant language.
5. Life As a COM (Component Object Model) Programmer.
COM is architecture that says in effect, “If you build your classes in accordance
with the rules of COM, you end up with up with a block of reusable binary code”.
The beauty of COM server is that it can be accessed in a language-independent
manner.
Standard controls:
C# .NET has various drag and drop controls which are user friendly like textbox to
enter the data, button is used to perform some action etc.
Usage:
Text boxes are used in login page to fetch username and password from user.
Dropdown menu is used to select topic when a admin is necessary.
Button is used for save, update, close, delete etc.
Data bound controls:
Data bound controls are used when information to be displayed is more than one row.
Ex, search results then we go for data bound controls. It has many such controls like- grid
view, repeater, data list, details view and form view. They all used to display information
but not to insert it.
Usage:
Grid view to display short all the details.
Grid view is also used here to show the all rows information.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 30
ONLINE-CET 2013-2014
Validation controls:
C# .NET facilitates us with providing standard controls for validation. It provides
validation controls like-required field validation, regular expression validation, range
validation, compare validation &on.
Usage:
In login page, user name and password are validated for required field’s validation.
In change password page required fields validation is kept for old password and
new password in New profile page
In Customer page, first name, middle name, last name, phone numbers are
validated for required field’s validation.
For cell double click in data grid view in all pages are validated wherever it takes.
12.2 SQL Server 2005:C# .NET can interact with any database like Access, Oracle, MySQL, and SQL-
Server. Etc, but the most popular in combination with ASP.NET is SQL-Server. This is
because:
In Visual Studio 2005 a built-in SQL-Server called SQL Express Edition is given
hence we need not install any other database externally.
.NET with SQL-Server works 30% faster than other database.
Connectivity:
For connectivity purpose SQL server needs 2 objects:
Connection Object:Connection object is used to connect any front-end application
of .NET to a particular database like SQL Server.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 31
ONLINE-CET 2013-2014
For SQL Server provider is SQLOLEDB.
Command Object: It is use to execute any SQL Statement or stored procedures against
database.
It has got 3 important methods-
i) Execute Non-Query- when we use commands like insert, update, Delete to add a
record, to change a record or to remove a record then we should use this method along
with command object.
ii) Execute Reader- When we use simple select statement to fetch one or more
records. This method is used along with command object. To store the fetched rows we
have to use an oledbreader object (dr).we can fetch first row by dr[0].
iii) Execute Scalar- when we use select statement with group Functions like Sum,
Average, Min, Max, and count which return only one value from database.
Usage:
Execute non query is used to perform insert, delete and update functions for all
add, delete and edit forms respectively.
Execute reader is used to fetch values from table.
12.3 Features of SQL Server 2005Microsoft SQL Server 2005 features include:
Internet Integration
Scalability and Availability
Enterprise-Level Database Features
Data warehousing
Internet Integration:
The SQL Server 2005 database engine includes integrated XML support. It
incorporates user-friendly queries and powerful search capabilities in web applications.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 32
ONLINE-CET 2013-2014
Scalability and Availability:
The same database engine can be used across platforms ranging from laptop
computers running Microsoft Windows 98 through large, multiprocessor servers running
Microsoft Windows 2000 data center Edition.
Enterprise-Level Database Features:
The Sql Server 2005 relational database engine supports the features required to
support demanding data processing environments. The database engine protects data
integrity while minimizing the overhead of managing thousands of users concurrently
modifying the database.
Data warehousing:
SQL Server 2005 includes tools for extracting and analyzing summary data for online
analytical processing. SQL Server also includes tools for visually designing database and
analyzing data using English-based questions.
The illustration shows an instance of SQL Server 2005 operating as the database server
for both a large Web site and a legacy client/server system.
Major highlight of C# are
It is brand new language derived from the C/C++ family.
It simpler and modernizes C++.
It is the only component-oriented language available today.
It is only language designed for the .NET Framework.
It combines the best features of many commonly used languages: the productivity
of visual Basic, the power of C++ and the elegance of java.
It will become the language of choice for .NET programming.
Major parts of .NET Framework are actually coded in C#.
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 33
ONLINE-CET 2013-2014
Features of C#
Simple
Consistent
Modern
Object-Oriented
Type-Safe
Version able
Interoperable and Flexible
SQL Server 2005
Introduction to SQL Server 2005
Microsoft SQL Server 2005 is a full-featured relational database management
system (RDBMS) that offer a variety of administrative tools to ease the burdens of
database development, maintenance and administration.
Enterprise Manager
Enterprise manager is the main administrative console for SQL Server
installations. It provides us with graphical “birds-eye” view of all of the SQL
Server installation on our network. We can perform high-level administrative
function that affect one or more servers, schedule common maintenance tasks or
create and modify the structure of individual databases.
Query Analyzer
Query Analyzer offers a quick and dirty method for performing queries against any
of our SQL Server databases. It’s a great way to quickly pull information out of a
database in response to user request, test queries before implementing them in
other applications, create/modify stored producers and execute administrative
tasks.
SQL Profiler
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 34
ONLINE-CET 2013-2014
SQL Profiler provides a window into the inner workings of our database. We can
monitor many different event types and observe database performance in real time.
SQL Profile allows us to capture and replay system “traces” that log various
activities. It’s a great tool for optimizing database with performance issues or
troubleshooting particular problems.
Service Manager
Service Manager is used to control MSSQLServer (the main SQL Server process),
MSDTC (Microsoft Distributed Transaction Coordinator) and SQLServer Agent
processes. An icon for service normally resides in the system trey of machines
running SQL Server. We can use Service manager to stop or pause any one of
these services.
Data Transformation Services (DTS)
Data Transformation Services provide an extremely flexible method for importing
and exporting data between a Microsoft SQL Server installation and a large variety
of other formats. The most commonly used DTS application is the “Import and
Export Data” wizard found in the SQL Server program group.
SQL Server 2005 supports having a wide range of users access it at the same time. An
instance of SQL Server 2005 includes the files that make up a set of database and copy of
the DBMS software. Applications running on separate computer use a SQL Server 2005
communications component to transmit commands over a network to the SQL Server
2005; it can reference any of the databases in that instance that the user is authorized to
access. The communication component also allows communication between an instance of
SQL Server 2005 and an application running on the computer.
SQL Server 2005 is designed to support the traffic of the largest Web Sites or
enterprise data processing system. Instance of SQL Server 2005 running on large,
multiprocessor servers are capable of supporting connection to thousands of users at the
same time. The data is SQL Server tables can be partitioned across multiple servers, so
that several multiprocessor computers can cooperate to support the data processing
requirements of extremely large systems. Although SQL Server 2005 is designed to work
as the data storage engine for thousands of concurrent users who connect over a network,
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 35
ONLINE-CET 2013-2014
it is also capable of working as a stand-alone engine has features to prevent the logical
problems that occur if a user tries to read or modify data currently used by others.
13. CODING PART
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 36
ONLINE-CET 2013-2014
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 37
ONLINE-CET 2013-2014
14. Bibliography:
Book:
C# and the .NET Platform Second Edition 2005 by Andrew Troelsen.
Sites:
www.Knowdotnet.com
www.triconsole.com
www.stackoverflow.com
www.dotnetspider.com
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 38
ONLINE-CET 2013-2014
Dept of COMPUTER SCIENCE BVVS SCIENCE COLLEGE,BGK Page 39