Beruflich Dokumente
Kultur Dokumente
PROJECT
REPORT
on
Submitted to :
Asst. Prof. H.P.S. Dhami
(H.O.D., Department of CSE &IT)
Submitted by :
Name -
2
TABLE OF CONTENTS
(4) CODING
(5) TESTING
1. Test Cases
2. Test Logs
(6) REPORT
(8) BIBLIOGRAPHY
4
SYNOPSIS
CONTENTS
1) Organization Profile
2) Organization chart
3) Project Guide and Team
4) Introduction to project
5) Hardware and Software Required
6) Problem area
5
Organization Profile
ORGANIZATION CHART
President
Manjinder Singh
7
INTRODUCTION TO PROJECT
9
Platform used
.NET Framework
• Common Language Runtime Despite its name, the runtime actually has a role
in both a component's runtime and development time experiences. While the
component is running, the runtime is responsible for managing memory
allocation, starting up and stopping threads and processes, and enforcing
security policy, as well as satisfying any dependencies that the component might
have on other components. At development time, the runtime's role changes
slightly; because it automates so much (for example, memory management), the
runtime makes the developer's experience very simple, especially when
compared to COM as it is today. In particular, features such as reflection
dramatically reduce the amount of code a developer must write in order to turn
business logic into a reusable component.
• Unified programming classes The framework provides developers with a
unified, object-oriented, hierarchical, and extensible set of class libraries (APIs).
Currently, C++ developers use the Microsoft Foundation Classes and Java
developers use the Windows Foundation Classes. The framework unifies these
disparate models and give Visual Basic and JScript programmers access to class
libraries as well. By creating a common set of APIs across all programming
languages, the common language runtime enables cross-language inheritance,
error handling, and debugging. All programming languages, from JScript to C++,
have similar access to the framework and developers are free to choose the
language that they want to use.
• ASP.NET ASP.NET builds on the programming classes of the .NET
Framework, providing a Web application model with a set of controls and
10
At the base of the .NET framework is the Common Language Runtime (CLR). The CLR
is the module that actually runs your VB .NET applications. When you create a VB .NET
application, what really happens is that your code is compiled into the CLR's
Intermediate Language (named MSIL, or IL for short), much like bytecodes in Java.
When you run the application, that IL code is translated into the binary code your
computer can understand by some special compilers built into the CLR. Compilers
translate your code into something that your machine's hardware, or other software, can
deal with directly. In this way, Microsoft can one day create a CLR for operating systems
other than Windows, and your VB .NET applications, compiled into IL, will run on them.
The .NET Framework class library is the second major part of the .NET framework. The
class library holds an immense amount of prewritten code that all the applications you
create with Visual Basic, Visual C++, C#, and other Visual Studio languages build on.
The class library gives your program the support it needs-for example, your program
may create several forms, and as there is a class for forms in the class library, your
program doesn't have to perform all the details of creating those forms from scratch. All
your code has to do is declare a new form, and the CLR compilers can get the actual
code that supports forms from the .NET Framework class library. In this way, your
programs can be very small compared to earlier Windows applications; because you can
rely on the millions of lines of code already written in the class library, not everything has
to be in your application's executable (EXE) file.
All this assumes that you're working on a machine that has the .NET framework, and
therefore the CLR and the .NET Framework class library, installed. The code for all
elements we use in a VB .NET application-forms, buttons, menus, and all the rest-all
11
comes from the class library. And other Visual Studio applications use the same class
library, making it easy to mix languages in your programming, even in the same
application. Also, distributing applications is easier, because all the support you need is
already on the machine you're installing your application to.
VB.NET
Rather than asking what's new, it would almost be easier to ask what's not new in VB
.NET. The changes are extensive. We can't cover all the changes from Visual Basic 6.0
in a single chapter, but it's worth taking a look at them in overview here, in one place, so
you get an idea of how things are different. We'll note the details of these changes
throughout the book.
Be warned: if you are relatively new to Visual Basic, you might just want to skip this
section, because there will be a number of advanced topics here that you've probably
never seen before—you might want to refer back to this section as these topics become
more clear. However, it might prove useful to at least simply skim this section, because
besides giving you an outline of what's changed from VB6, it also gives you an outline of
the kind of programming we'll see in this book, and what's possible.
Version 4.0 of Visual Basic was a big change, unsettling many programmers, but the
change from VB6 to VB .NET is far bigger. Not only has how you design applications
and what types of projects you can create changed, but the very syntax of the language
has changed a great deal too. Some programmers have complained that Microsoft is
trying to turn Visual Basic into Java; if you know Java, you'll see what that means
throughout the book in dozens of places, as what was standard in Java has become
standard in Visual Basic. One longstanding complaint about Visual Basic has been that it
didn't offer a serious programming syntax, and programmers coming from C++
sometimes looked down on VB programmers. Now, however, Microsoft has changed all
that, giving the Visual Basic language the same rigor as any other programming
language.
This change will take some time for many accomplished VB programmers to come to
terms with; for example, everything in Visual Basic is object-oriented now, as it is in
Java, and you must declare your variables, as you do in Java, and the built-in VB
functionality is encapsulated in a namespace called System, as it is in Java, and so on.
As we've also seen, aside from Windows development, you can also create Web
applications in VB .NET. In fact, there's a third alternative now—in addition to Windows
applications and Web applications, you can create console applications, as you can in
Java. Console applications, as we'll see in this chapter, are command-line oriented
applications that run in DOS windows. Those are the three application types with user
interfaces: Windows applications, Web applications, and console applications. There's
12
also an additional new type of application—one that doesn't have a built-in user
interface: Web services. Web services are applications that run on Web servers and that
communicate with other programs, and we'll see them later in this book.
One of the biggest hurdles that VB6 programmers will have to overcome is the great
change in Visual Basic syntax. Not only has the fundamental structure of Visual Basic
projects like Windows applications become different, but there are a thousand other
issues as well—for example, you now have to declare all variables and objects, you
must always use parentheses when calling procedures, many keywords are either gone
or renamed, there are restrictions on declaring arrays, many old controls are gone and
new ones have appeared, strict data typing is now enforced, and so on. All this takes a
great deal of effort to get used to, but VB .NET itself will usually tell you what you're
doing wrong, and often will explain how to make it right.
In fact, the very data types you can use have changed in VB .NET, because these types
have to be the same as you use in other languages like Visual C++ and Microsoft's C#.
The reason for this, as we'll see in this chapter, is that the .NET framework that underlies
VB .NET uses a Common Language Runtime (CLR) module that applications written in
these languages all use.
As you can see, there are plenty of changes in VB .NET. I'll list them in overview in more
detail here, starting with Web Development Changes.
The big change in Web development is that you can do it at all. Previous versions of
Visual Basic had support for DHTML applications, and other half-hearted attempts, but
they never caught on. As you can see, however, Web development is now an integral
part of VB .NET. The two major types of Web applications are Web forms and Web
services, and we'll cover them both in this book. Here's an overview:
• Web forms let you create Web-based applications with user interfaces. These
applications are based on ASP.NET (ASP stands for Active Server Pages,
Microsoft's Web server technology). You can view these applications in any
browser—the application will tailor itself to the browser's capabilities.
• You can build Web applications that use standard HTML controls, or new Server
controls, that are handled on the Web server. Server controls are displayed using
HTML, but execute code on the server.
• Web services are made up of code that can be called by other components on
the Internet or applications that use Internet protocols. Using Web services, you
can send and process data using HTTP and XML messaging standards on the
Internet. Web services may be used, for example, as the middle tier of distributed
database applications on the Internet.
• You can also now check the data a user enters into a Web form using validation
controls, which you can add to a Web form while designing it.
• You can bind the controls on a Web form to all kinds of different data sources,
simply by dragging those sources onto Web forms and setting a few properties.
• There are two ways to create your own Web server controls: you can create user
controls—Web form pages that are then embedded in other Web form pages. Or,
13
you can create custom server controls using a Software Development Kit (SDK)
provided with the .NET Framework.
There have been many ways of handling data in previous versions of Visual Basic,
starting with the simple DAO protocol, then RDO, followed by ADO (ActiveX Data
Objects). Things have changed again; now you handle data with ADO.NET.
ADO.NET is a new data-handling model that makes it easy to handle data on the
Internet. It's also what VB .NET uses on your local machine to communicate with local
databases. At the heart of ADO.NET is XML; all data is represented in XML format and
exchanged that way. VB .NET can use XML schema to make sure your data is checked
for validity before use. This means that much of what you know about ADO, if you're a
VB6 programmer, has to be replaced with the corresponding ADO.NET versions
(although, for compatibility's sake, you can still use ADO if you need to). For example,
you no longer use record sets, but rather datasets. A dataset is a collection of one or
more tables or record sets as well as the relationships between those tables or record
sets.
Note that ADO is no longer built into Visual Basic; ADO was based on COM protocols,
and COM (as well as DCOM) is no longer built into Visual Basic either. Instead,
ADO.NET uses XML to exchange data. Both COM and distributed COM (DCOM)
technology has been replaced by the .NET framework, although you still have access to
COM through what VB .NET calls COM interoperability, if you take special steps to
implement it. Here is an overview of what's new in data handling:
As mentioned earlier, there are many changes to the Visual Basic language itself. VB
.NET now supports such OOP features as inheritance, interfaces, and overloading that
make it a strong OOP language. You can now create multithreaded applications, and
make use of structured exception handling, custom attributes, and more.
14
Probably the biggest single change is that everything is object oriented now. Generally
speaking, a language is object oriented if it supports the following :
VB .NET now supports all these key OOP essentials, and it's become a true OOP
language. VB .NET now uses namespaces to prevent naming conflicts by organizing
classes, interfaces, and methods into hierarchies, much as Java does. You can import
various namespaces to gain access to its classes, interfaces, and methods, and we'll
see more on this later in this chapter. For example, the Microsoft. VisualBasic
namespace gives you access to common Visual Basic keywords like Asc, Beep,Chr,
and so on. The Microsoft.VisualBasic.ControlChars namespace gives you access to
common Visual Basic constants like Cr, CrLf, and so on. The
Microsoft.VisualBasic.Compatibility.VB6 namespace gives you access to obsolete
VB6 keywords such as Open, Close,CreateObject, and so on. The biggest namespace
comes from the .NET framework itself, and is called System. For example, the class that
supports Windows forms is System.Windows.Forms.Form.
Here's an overview of some of the changes to the language—there are too many to
list them all here,:
• It's all OOP now. All data items are objects now, based on the System.Object
class. Even integers and other primitive data types are based on this class. And
all code has to be enclosed in a class.
• You can now create classes that serve as the base class for derived classes. As
mentioned above, this is called inheritance. Derived classes inherit, and can
extend, the properties and methods of the base class.
• You can now overload properties, methods, and procedures. Overloading means
you can define properties, methods, or procedures that have the same name but
use different data types. For example, overloaded procedures allow you to
provide as many implementations as necessary to handle different kinds of data
while giving the appearance of a single procedure.
• Visual Basic now supports structured exception handling, using an enhanced
version of the Try…Catch…Finally syntax supported by other languages (such
as C++).
15
Many functions, keywords, and collections from VB6 are now obsolete. Here's a partial
list, along with replacements:
The way programs handle COM components has also changed. In VB6, COM
components (such as ActiveX controls and documents) were very big. That's all changed
now, and some people think that VB .NET is the end of COM, although that's not
necessarily so. Although VB .NET does not use COM components internally, it
integrates with COM components well. COM components can be treated as .NET
components by .NET components, because the .NET framework encloses COM
components in a .NET wrapper that .NET components can work with. And, using COM
interoperability, COM components also can use .NET components.
As you can see, there are a great many changes going on in VB .NET. Microsoft is
aware that the sheer magnitude of all these differences can present a serious obstacle
to the adoption of VB .NET (as they say in the documentation, "Visual Basic .NET
represents a major departure from previous versions of Visual Basic in several ways."),
and has made some efforts to make upgrading from VB6 easier.
Visual Basic .NET, the next generation of the Visual Basic language, is a fast and
easy way to create .NET-based applications, including XML Web Services and Web
applications.
Visual Basic .NET has many new and improved language features — such as
inheritance, interfaces, and overloading — that make it a powerful object-oriented
programming language. As a Visual Basic developer, we can now create
multithreaded, scalable applications using explicit multithreading. Other new
language features in Visual Basic .NET include structured exception handling, custom
attributes, and common language specification (CLS) compliance.
Inheritance
Exception Handling
Overloading
Data Types
18
Visual Basic .NET introduces three new data types. The Char data type is an
unsigned 16-bit quantity used to store Unicode characters. It is equivalent to
the .NET Framework System. Char data type. The Short data type, a signed 16-
bit integer, was named Integer in earlier versions of Visual Basic. The Decimal
data type is a 96-bit signed integer scaled by a variable power of 10. In earlier
versions of Visual Basic, it was available only within a Variant.
Shared Members
Shared members are properties, procedures, and fields that are shared by all
instances of a class. Shared data members are useful when multiple objects
need to use information that is common to all. Shared class methods can be
used without first creating an object from a class
References
Namespaces
Assemblies
Assemblies replace and extend the capabilities of type libraries by, describing all
the required files for a particular component or application. An assembly can
contain one or more namespaces.
Assemblies
You combine assemblies to form .NET applications, and although we won't deal with
them directly very often, we need to get the terminology down. An assembly holds the
Intermediate Language modules for your application. When you create an application in
VB .NET and run it, VB .NET creates one or more assemblies, which are run by the
CLR. That is, assemblies are how your applications interact with the .NET framework
instead of the EXE or DLL files of VB6.
When you created applications in Visual Basic 6.0, you created projects. Each project
held the code and data for an application, ActiveX control, or whatever else you wanted
to build. If you wanted to combine projects together, you created a project group. In
VB .NET, however, project groups have become far more integral to the development
process, and now they're called solutions.
By default, when you create a new project in VB .NET, Visual Basic will create a new
solution first, and then add a project to that solution. For example, look at the Solution
Explorer window, at right in Figure 1.8, above the Properties window. In that case, we've
created our Visual Basic project called WinHello, and you can see that project in the
Solutions Explorer-but note that Visual Basic has also placed that project inside a
solution with the same name, WinHello. If we were to add new projects to the current
solution (which you can do with the New Project dialog box), those new projects would
appear in the Solution Explorer as part of the current solution. This is a change from
VB6, where you created projects by default, not project groups. It's also worth noting that
Microsoft calls the files in each project, such as the files for a form, items. So the
terminology here is that solutions contain projects, and these in turn contain items.
Note that so far we've started our programs from the Debug menu's Start item. This
causes Visual Basic to launch the program while staying in the background; if there's a
problem, Visual Basic will reappear to let you debug the program's code. That's useful
for development, of course, but when your program is ready to go and to be used by
others, you hardly want them to have to launch your program from Visual Basic.
That's where the difference between debug and release versions of your program comes
in. In a debug version of your program, Visual Basic stores a great deal of data needed
to interface with the debugger in your program when it runs, and this not only makes the
corresponding assembly larger, but also slower. In the release version of your program,
20
the program doesn't have all that added data, and can run as a stand-alone program,
without needing to be launched from Visual Basic (although it still needs the .NET
Framework, of course).
When you create a new solution, Visual Basic creates it in debug mode, meaning that
you launch it from the Debug menu as we've been doing. However, you can switch to
release mode in several ways (like many things in VB .NET, there's more than one way
to do it):
• Select the Configuration Manager item in the Build menu, then select Release in
the Active Solution Configuration list box and click OK.
• Select the solution you want to set the mode for by clicking it in the Solution
Explorer, and find its Active Config property in the properties window. When you
click the right-hand column in the properties window next to this property, a drop-
down list box will appear; select Release in that list box.
• Select the solution you want to set the mode for by clicking it in the Solution
Explorer, and select the Properties item in the Project menu, opening the
solution's property pages. Select the Configuration Properties folder in the box at
left, and the Configuration item in that folder. Then select Release from the drop-
down list box in the configuration column of the table that appears, and click OK.
• Probably the easiest way to set the solution mode to release or debug is simply
to use the drop-down list box that appears in the Visual Basic .NET standard
toolbar, at the top of the IDE. When you create a new solution or project, this list
box displays the word Debug, and all you need to do to switch to release mode is
to select Release instead.
When you've set the mode for a solution to Release, you build it using the Build menu's
Build item (the Build menu item causes Visual Basic to compile only items it thinks have
been newly changed; to force it to compile all items in the solution, choose the Rebuild
All item instead of Build). This builds the solution in a way that others can use it, and you
can deploy your program this way (usually with the help of a deployment project that you
build in Visual Basic, as we'll do later in the book).
Now we have the background we need on VB .NET solutions and projects as we head
into the following chapters, where we'll assume this knowledge and put it to work. We'll
also take for granted that you know your way around Visual Basic .NET itself, so in this
introductory chapter, I'll also take a look at the Visual Basic Integrated Development
Environment-the VB IDE.
The whole power of Visual Basic has been that you can develop forms visually, adding
controls and other items from the toolbox. In VB .NET, the support for Windows forms is
in the System.Windows.Forms namespace, and the form class is
System.Windows.Forms.Form. The Form class itself is based on the Control class,
21
which means that forms share a lot of the properties and methods that controls do.
Here's what the class hierarchy looks like for the Form class; every level is derived from
the one above it (note that all classes are derived from the Object class):
Object
MarshalByRefObject
Component
Control
ScrollableControl
ContainerControl
Form
You can see a form in a form designer in the Visual Basic Integrated Development
Environment (IDE) in Figure 4.1, which shows several aspects of forms. At the top of the
form is the title bar, which displays the form's title; here that's just Form1. At right in the
title bar is the control box, including the minimizing/maximizing buttons and the close
button. These are controls the user takes for granted in most windows, although we'll
see that they are inappropriate in others, such as dialog boxes.
Under the title bar comes the menu bar, if there is one. In form has one menu-the File
menu. (We'll see how to work with menus in the next chapter). Under the menu bar,
forms can have toolbars, as you see in the IDE itself.
The main area of a form-the area where everything takes place-is called the client area.
In general, Visual Basic code works with controls in the client area and leaves the rest of
the form to Visual Basic. (In fact, the client area is itself a window.) In Figure 4.1, I've
added a control-a command button-to the form.
Finally, the whole form is surrounded by a border. There are several types of borders
that you can use, as we'll see when working with dialog boxes and using the fixed, non-
resizable borders appropriate to them.
The important class for Windows forms is the Form class in the
System.Windows.Forms namespace. Each form in this namespace is an instance (that
is, an object) of that class. As mentioned in Chapter 2, objects are instances of classes,
much as an integer variable is an instance of the Integer type. (You can think of a class
as a type you create objects from.) As we also know, classes can have members-fields
(data items), methods (built-in procedures), and properties (data items accessed through
an interface based on methods).
• Static/Shared members are class members, accessed directly using the class
like this: classname.membername. No object needed.
• Instance members are object members, accessed by using an instance of a
class (an object) like this: objectname.membername.
Microsoft SQL Server 2000 is a complete database and analysis solution for rapidly
delivering the next generation of scalable Web applications. SQL Server 2000 is a key
component in supporting e-commerce, line-of-business, and data warehousing
applications, while offering the scalability necessary to support growing, dynamic
environments. SQL Server 2000 includes rich support for Extensible Markup Language
(XML) and other Internet language formats; performance and availability features to
ensure uptime; and advanced management and tuning functionality to automate routine
tasks and lower the total cost of ownership. Additionally, SQL Server 2000 takes full
advantage of Microsoft Windows 2000 by integrating with Active Directory Services and
supporting up to 32 processors and 64 gigabytes (GB) of Random Access Memory
(RAM).
SQL Server 2000 is an RDBMS that uses Transact-SQL to send requests between a
client computer and a SQL Server 2000 computer. An RDBMS includes databases, the
database engine, and the applications that are necessary to manage the data and the
components of the RDBMS. The RDBMS organizes data into related rows and columns
within the database. The RDBMS is responsible for enforcing the database structure,
including the following tasks:
The database component of SQL Server 2000 is a Structured Query Language (SQL)-
compatible, scalable, relational database with integrated XML support for Internet
applications. SQL Server 2000 builds upon the modern, extensible foundation of SQL
23
Server 7.0. The following sections introduce you to the fundamentals of databases,
relational databases, SQL, and XML.
Databases
A database is similar to a data file in that it is a storage place for data. Like most types of
data files, a database does not present information directly to a user; rather, the user
runs an application that accesses data from the database and presents it to the user in
an understandable format.
Database systems are more powerful than data files because the data is more highly
organized. In a well-designed database, there are no duplicate pieces of data that the
user or application has to update at the same time. Related pieces of data are grouped
together in a single structure or record, and you can define relationships among these
structures and records.
When working with data files, an application must be coded to work with the specific
structure of each data file. In contrast, a database contains a catalog that applications
use to determine how data is organized. Generic database applications can use the
catalog to present users with data from different databases dynamically, without being
tied to a specific data format.
Relational Databases
Although there are different ways to organize data in a database, a relational database is
one of the most effective systems. A relational database system uses mathematical set
theory to effectively organize data. In a relational database, data is collected into tables
(called relations in relational database theory).
A table represents some class of objects that are important to an organization. For
example, a company might have a database with a table for employees, a table for
customers, and another table for stores. Each table is built from columns and rows
(attributes and tuples, respectively, in relational database theory). Each column
represents an attribute of the object class represented by the table, such that the
employees' table might have columns for attributes such as first name, last name,
employee ID, department, pay grade, and job title. Each row represents an instance of
the object class represented by the table. For example, one row in the employees' table
might represent an employee who has employee ID 12345.
You can usually find many different ways to organize data into tables. Relational
database theory defines a process called normalization, which ensures that the set of
tables you define will organize your data effectively.
24
SQL
To work with data in a database, you must use a set of commands and statements (a
language) supported by the database management system (DBMS) software. You can
use several different languages with relational databases; the most common is SQL. The
American National Standards Institute (ANSI) and the International Organization for
Standardization (ISO) define software standards, including standards for SQL. SQL
Server 2000 supports Entry Level SQL-92, the SQL standard published by ANSI and
ISO in 1992. The dialect of SQL supported by SQL Server is called Transact-SQL, and
Transact-SQL is the primary language used by SQL Server applications.
XML
XML is the emerging standard format for data on the Internet. XML is a set of tags that
can be included in a text document in order to define the structure of the document.
Although most SQL statements return their results in a relational (tabular) result set, the
SQL Server 2000 database component supports a FOR XML clause that causes the
results to be returned as an XML document. SQL Server 2000 also supports XPath
queries from Internet and intranet applications. You can add XML documents to SQL
Server databases,
SQL Server 2000 includes a number of features that support ease of installation,
deployment, and use; scalability; data warehousing; and system integration with other
server software.
SQL Server 2000 includes many tools and features that simplify the process of installing,
deploying, managing, and using databases. SQL Server 2000 provides database
administrators with all of the tools that are required to fine-tune SQL Server 2000
installations that run production online systems. SQL Server 2000 is also capable of
operating efficiently on a small, single-user system with minimal administrative
overhead.
The installation or upgrade of SQL Server 2000 is driven by a Graphical User Interface
(GUI) application that guides users in providing the information that SQL Server 2000
25
Setup needs. The Setup program itself automatically detects whether an earlier version
of SQL Server is present, and after SQL Server 2000 is installed, it asks users whether
they want to launch the SQL Server 2000 Upgrade wizard to quickly guide them through
the upgrade process. The entire installation or upgrade process is accomplished quickly
and with minimal input from the users.
SQL Server 2000 reconfigures itself automatically and dynamically while running. As
more users connect to SQL Server 2000, it can dynamically acquire additional
resources, such as memory. As the workload falls, SQL Server 2000 frees the resources
back to the system. If other applications are started on the server, SQL Server 2000 will
detect the additional allocations of virtual memory to those applications and reduce its
use of virtual memory in order to reduce paging overhead. SQL Server 2000 can also
increase or decrease the size of a database automatically as data is inserted or deleted.
SQL Server 2000 offers database administrators several tools for managing their
systems, such as SQL Server Enterprise Manager and SQL Profiler.
Scalability
The SQL Server 2000 database engine is a robust server that can manage terabyte
databases being accessed by thousands of users. At the same time, when running at its
default settings, SQL Server 2000 has features such as dynamic self-tuning that enable
it to work effectively on laptops and desktops without burdening users with administrative
tasks.
SQL Server 2000 includes several features that extend the scalability of the system. For
example, SQL Server 2000 dynamically adjusts the granularity of locking to the
appropriate level for each table referenced by a query and has high-speed optimizations
that support Very Large Database (VLDB) environments. In addition, SQL Server 2000
can build parallel execution plans that split the processing of a SQL statement into
several parts. Each part can be run on a different Central Processing Unit (CPU), and
the complete result set is built more quickly than if the different parts were executed
serially.
Data Warehousing
System Integration
SQL Server 2000 works with other products to form a stable and secure data store for
Internet and intranet systems:
• SQL Server 2000 works with Windows 2000 Server and Windows NT Server
security and encryption facilities to implement secure data storage.
• SQL Server 2000 forms a high-performance data storage service for Web
applications running under Microsoft Internet Information Services.
• SQL Server 2000 can be used with Site Server to build and maintain large,
sophisticated e commerce Web sites.
• The SQL Server 2000 TCP/IP Sockets communications support can be
integrated with Microsoft Proxy Server to implement secure Internet and intranet
communications.
SQL Server 2000 can send and receive e-mail and pages from Microsoft Exchange or
other Message Application Programming Interface (MAPI)-compliant mail servers. This
function enables SQL Server 2000 batches, stored procedures, or triggers to send e-
mail. SQL Server 2000 events and alerts can be set to send e-mail or pages
automatically to the server administrators in case of severe or pending problems.
27
INTRODUCTION TO PROJECT
28
Objective
Project Requirements
• Hardware Requirements
• 3 Pentium Processor Machines
• Software Requirements
• Microsoft Windows Operating System (XP Professional) with IIS
• Time Limitation
• The Bank Management System is to be completed in 2 weeks.
30
PROBLEM DESCRIPTION
Stage Goal
32
There are mainly 5 SDLC models used in the development of a software projects –
33
Iterative development prescribes the construction of initially small but ever larger
portions of a software project to help all those involved to uncover important issues early
before problems or faulty assumptions can lead to disaster. Iterative processes are
preferred by commercial developers because it allows a potential of reaching the design
goals of a customer who does not know how to define what they want.
An iterative lifecycle model does not attempt to start with a full specification of
requirements. Instead, development begins by specifying and implementing just part of
the software, which can then be reviewed in order to identify further requirements. This
process is then repeated, producing a new version of the software for each cycle of the
model.
• The Design phase goes much faster, as designs are only done on the items in the
current release. (Release 1.0 for example).
• Coding and Testing go much faster because there are less items to code and test.
If major design flaws are found, re-work is much faster since the functional areas
have been greatly reduced.
34
• The client gets into production in less than 3 months, allowing them to begin
earning revenue or reducing expenses quicker with their product.
• If market conditions change for the client, changes can be incorporated in the next
iterative release, allowing the software to be much more nimble.
• As the software is implemented, the client can make recommendations for the
next iteration due to experiences learned in the past iteration.
SYSTEM ANALYSIS
35
Analysis
Before designing Bank Management System , the conventional Banking
systems were studied in detailed and gathered utmost information and data from
resources usually Banks have traditional means of processing information, manual
ways for keying attendee information into a database, and has limited access to
information. These things make a system inefficient. While analyzing various
enterprises, these problems were drawn, which need to be handled.
First of all, it was found that most of the systems work manually i.e. they
depend on man power/will. Due to this, the interconnectivity between various
independent components was harmed or affected badly. This slows down the
working of various components and increases misapprehension.
Another problem was manual ways for keying balance sheet information
into a database that usually result in imperfections. This course also use more
time.
One important hurdle that harms most conventional Banking systems was limited
access to information at a given time. It leads to puzzlement and needed to be
care.
Final but also very noteworthy dilemma was revenue expenditure on men,
for every small process one had to appoint a person. On the other hand, a
technologically bank management system can handle many processes concurrently.
Identification of Need
36
Project Planning
37
SYSTEM REQUIRMENT
SPECIFICATIONS
Software Requirements
Specification
for
BANK MANAGEMENT SYSTEM
Version 1.0
Prepared by-:
.NET Framework........................................................................................................9
The .NET Framework and the Common Language Runtime.................................................... 10
39
VB.NET....................................................................................................................11
What's New in VB .NET?.......................................................................................................... 11
Changes in Web Development.................................................................................12
Changes in Data Handling........................................................................................13
Changes in the Visual Basic Language....................................................................13
Building VB .NET Applications................................................................................................ 18
Assemblies................................................................................................................19
Solutions and Projects..............................................................................................19
Debug and Release Versions....................................................................................19
All About Windows Forms........................................................................................................ 20
Overview of SQL Server 2000................................................................................................... 22
What Is SQL Server 2000?.......................................................................................22
Databases..................................................................................................................23
Relational Databases................................................................................................23
SQL...........................................................................................................................24
XML.........................................................................................................................24
SQL Server 2000 Features........................................................................................24
Ease of Installation, Deployment, and Use..............................................................24
Scalability.................................................................................................................25
Data Warehousing....................................................................................................25
System Integration....................................................................................................26
INTRODUCTION TO PROJECT................................................................................. 27
Overview of system study................................................................................................31
Introduction......................................................................................................................40
Purpose....................................................................................................................................... 40
This document contains Software Requirements Specification for a Web application named as
Bank Management System. This is SRS for the first release of the product. The first release of
this product will produce partially functional version of Bank Management System.. ............40
Document Conventions.............................................................................................................. 40
Intended Audience and Reading Suggestions............................................................................ 40
Project Scope.............................................................................................................................. 41
This software can be easily transformed to Web Applications and can be accessed using
Internet.Hence can be used in other various branches of the Bank.The software is platform
independent as it functions on .NET Framework...................................................................... 41
................................................................................................................................................... 41
Overall Description.................................................................................................................... 41
Product Features......................................................................................................................... 41
User Classes and Characteristics................................................................................................ 42
Operating Environment.............................................................................................................. 42
User Interfaces........................................................................................................................... 42
Hardware Interfaces................................................................................................................... 43
Software Interfaces.................................................................................................................... 43
BLACK BOX TESTING.................................................................................................78
40
Introduction
Purpose
This document contains Software Requirements Specification for a Web application
named as Bank Management System. This is SRS for the first release of the
product. The first release of this product will produce partially functional version of
Bank Management System..
Document Conventions
No special or standard convention was followed while writing this SRS.
Project Scope
Overall Description
Product Features
The product can be made available for use to any institute’s official (Staff members,
teachers, HOD’s, Training and placement department, Accounts department etc)
depending on the security levels.
Operating Environment
Hardware Requirements
Software Requirements
User Interfaces
There will be user interfaces as given below –
2) Index page – This will provide user with basic five options.
• Create an account
• Transaction
• Queries
• Open for modification
• Close an account
• Exit
Hardware Interfaces
Software Interfaces
SYSTEM DESIGN
Logical Design
Tables
Account_desc
Account_master
Account_holder_name Varchar 20
ch_holder_name varchar 20
amount float 8
balance float 8
Cheque_no int 4
Tran_date date 8
Customer
45
Customer_query
Draft_issue
In_favour_of Varchar 30
Payable_at Varchar 20
Holder_name Varchar 20
amount float 8
Date_issue Datetime 8
Date_expiry Datetime 8
Draft_tran
Branch varchar 20
amount Numeric 9
date Datetime 8
Transaction_master
Tran_date Datetime 8
Tran_type Varchar 15
Draft_no Varchar 20
Cheque_no varchar 9
amount float 8
balance float 8
Other_balance float 8
47
Form Layout
1. Login Form
48
2. Menu Form
49
3. Create an Account
50
4. Transaction
51
5. Queries
52
7. Close an Account
54
ER diagram
55
Acn
Dam Cdate Ddate nam
o Add city
t e
Acbrnc
Camt ACCOUNT h BRANCH
Bal
Acno TRA HA
NSA HAS
S
CT
Fname
Acn
o
Fnam
CUSTOMER BANK
e
Gender
Add Phone Name
CODING
1. Coding for Login form
56
End Sub
Me.Hide()
c.show()
End Sub
End Sub
End Sub
End Class
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox14.Text = ""
TextBox15.Text = ""
TextBox16.Text = ""
TextBox17.Text = ""
TextBox19.Text = ""
TextBox13.Text = ""
TextBox18.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""
ComboBox5.Text = ""
ComboBox6.Text = ""
End Sub
End Sub
End If
End Sub
End If
End Sub
End If
End Sub
End If
End Sub
End If
End Sub
End If
End Sub
ac = ac + 1
str1 = "acc" & ac
TextBox5.Text = str1
i = str1
a = ac
CON.Open()
Dim com1 As SqlCommand
com1 = New SqlCommand("CREATE TABLE " & str1 & "(acc_no
integer not null,fname varchar(100) not null,tot_amt integer not
null,cr_date varchar(20),de_date varchar(20),cr_time
varchar(20),de_time varchar(20),ce_amt integer,de_amt integer,ch_no
integer,dd_no integer)", CON)
com1.ExecuteNonQuery()
CON.Close()
End If
61
End Sub
If r0 = DialogResult.Retry Then
TextBox1.Text = ""
TextBox1.Focus()
Else
Me.Close()
End If
Else
m1 = 1
End If
Me.Close()
End If
Else
m5 = 1
End If
m9 = 1
End If
End If
End Sub
CON.Open()
If CheckBox1.Checked = True And CheckBox2.Checked = True And
CheckBox3.Checked = True Then
Dim com4, com5, com6 As SqlCommand
com4 = New SqlCommand("insert into users1 values ('" &
CheckBox1.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '"
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "',"
& TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," &
TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" &
ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "',"
& TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text &
"','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text &
", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON)
com5 = New SqlCommand("insert into users1 values ('" &
CheckBox2.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '"
65
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "',"
& TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," &
TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" &
ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "',"
& TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text &
"','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text &
", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON)
com6 = New SqlCommand("insert into users1 values ('" &
CheckBox3.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '"
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "',"
& TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," &
TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" &
ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "',"
& TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text &
"','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text &
", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON)
com4.ExecuteNonQuery()
com5.ExecuteNonQuery()
com6.ExecuteNonQuery()
ElseIf CheckBox1.Checked = True And CheckBox2.Checked = True
Then
Dim com7, com8 As SqlCommand
com7 = New SqlCommand("insert into users1 values ('" &
CheckBox1.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '"
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "',"
& TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," &
TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" &
ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "',"
& TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text &
"','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text &
", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON)
com8 = New SqlCommand("insert into users1 values ('" &
CheckBox2.Text & "','" & TextBox1.Text & "','" & TextBox2.Text & "', '"
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "',"
& TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," &
TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" &
ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "',"
& TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text &
"','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text &
", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON)
com7.ExecuteNonQuery()
com8.ExecuteNonQuery()
& TextBox3.Text & "','" & TextBox4.Text & "','" & ComboBox4.Text & "',"
& TextBox6.Text & ", '" & ComboBox3.Text & "'," & TextBox8.Text & "," &
TextBox9.Text & "," & TextBox10.Text & ", '" & TextBox11.Text & "','" &
ComboBox1.Text & "','" & ComboBox2.Text & "','" & TextBox13.Text & "',"
& TextBox14.Text & ",'" & TextBox15.Text & "', '" & TextBox16.Text &
"','" & ComboBox5.Text & "'," & TextBox18.Text & "," & TextBox17.Text &
", '" & TextBox19.Text & "','" & ComboBox6.Text & "')", CON)
com9.ExecuteNonQuery()
com10.ExecuteNonQuery()
Else
Dim com13 As SqlCommand
com14.ExecuteNonQuery()
CON.Close()
End If
If CheckBox2.Checked = True Then
CON.Open()
Dim com15 As SqlCommand
com15 = New SqlCommand("insert into " & j &
"(acc_no,fname,tot_amt)values(" & b & ",' " & TextBox1.Text & " '," &
TextBox14.Text & " )", CON)
com15.ExecuteNonQuery()
CON.Close()
End If
If CheckBox3.Checked = True Then
CON.Open()
Dim com16 As SqlCommand
com16 = New SqlCommand("insert into " & k &
"(acc_no,fname,tot_amt)values(" & c & ",' " & TextBox1.Text & " '," &
TextBox14.Text & " )", CON)
com16.ExecuteNonQuery()
CON.Close()
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
End Sub
5.Queries
Public Class Form5
Inherits System.Windows.Forms.Form
Dim a, r, m As Integer
Dim str As String
Dim dr As SqlDataReader
Dim f8 As New Form8
Dim f9 As New Form9
End Sub
End Sub
End Sub
Else
r = MessageBox.Show("INCORRECT PASSWORD", "ERROR",
MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)
If r = DialogResult.Retry Then
TextBox1.Text = ""
TextBox1.Focus()
Else
Me.Close()
End If
End If
End Sub
Else
Me.Close()
End If
Else
Label3.Enabled = True
Button3.Enabled = True
Button4.Enabled = True
End If
End Sub
End Class
72
Else
r = MessageBox.Show("INCORRECT PASSWORD", "ERROR",
MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)
If r = DialogResult.Retry Then
TextBox1.Text = ""
TextBox1.Focus()
Else
Me.Close()
End If
End If
End Sub
End While
If m = 0 Then
r = MessageBox.Show("ACCOUNT DOES NOT EXIST", "ERROR",
MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)
If r = DialogResult.Retry Then
TextBox2.Text = ""
TextBox2.Focus()
CON.Close()
Else
Me.Close()
End If
Else
Dim obj As New Form10
obj.TextBox1.Text = acc
Me.Hide()
obj.Show()
End If
Catch ex As Exception
End Try
End Sub
End Sub
End Class
Label2.Enabled = True
TextBox2.Enabled = True
Button3.Enabled = True
Label3.Visible = True
Label3.Text = "AUTHENTICATED"
TextBox2.Focus()
Else
r = MessageBox.Show("INCORRECT PASSWORD", "ERROR",
MessageBoxButtons.RetryCancel, MessageBoxIcon.Error)
If r = DialogResult.Retry Then
TextBox1.Text = ""
TextBox1.Focus()
Else
Me.Close()
End If
End If
End Sub
End If
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Testing
76
TESTING
LEVELS OF TESTING:
Thus through white box testing we are able to test all the
independent paths with in a module, all logical decisions on their
boundaries within their operational bound were exercised and
internal data structures to assure their validity was exercised once.
78
The black box testing method enables the engineer to drive sets of
input condition that will fully exercise all functional requirements
for a program.