SlideShare une entreprise Scribd logo
1  sur  21
Framework Component & DBMS
Concept
Session 2
Objective
• CTS,CLS & Assemblies
• .NET Architecture.
• Database Concept
• DML Command.
• Store Procedure Example.
CTS(Common Type System):
Two language communicate smoothly due to
CLR,has CTS. It is an integral part of the runtime &
helps to support cross-language communication.
It prevent data loss when a type in one language
transfers data to its equivalent type in other language.
Some functionality are follows:
a)Support object-oriented model
b)Specifies guidelines for different languages.
c)Supports primitive data types,such as
Boolean,Byte,Char, & Int32 etc.
CLS(Common Language Specification):
Common Language Specification (CLS), which is a set of basic
language features needed by many applications. The CLS rules
define a subset of the common type system; that is, all the rules that
apply to the common type system apply to the CLS,
CLS is a contact that states, how a language will interacts with
CLR.When language used CLS they are said to be managed code.
Code that targets the CLR is referred to as managed code.
Earlier CLS was '.NET Compliant Language'
All managed code has the features of the CLR-
1)Object-Oriented
2)Type-safe
3)Cross-language integration
4) Cross-language exception handling
5)Multiple version support
Metadata
• A metadata is the self description of a program in the
binary format. It contains the information of classes,
methods,& other elements used in a program. The
metadata is stored in a CLR Portable Executable(PE)
files.
• The Metadata describes every datatype & member of
your program.
• When code is in the run mode,CLR loads the
metadata into memory & finds information about the
classes & member
Assembly
• An assemblies is a self-describing binary file,which can be
either EXE or DLL file.
• All the .NET assemblies contain the definition of types,
versioning information for the type, meta-data, and manifest.
Assembly manifest:
An assembly manifest is a file that contains the metadata of
assembly, which is the information of version requirements &
security identity. Manifest store in PE file.
The manifest contains:
Strong Name: The assembly's name, version, culture, optional
processor architecture, and public key (for shared assemblies)
File Contents :Name and hash of all files in the assembly
Resource List: Icons, images, text strings and other resources
contained in the assembly
Security: Permissions required for the assembly to run properly.
These different version can be executed at the same time without
interfering with each other.
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
.NET Framework (Base Class Library).NET Framework (Base Class Library)
ADO .NET and XMLADO .NET and XML
ASP .NETASP .NET
Web Forms Web ServicesWeb Forms Web Services
Mobile Internet ToolkitMobile Internet Toolkit
WindowsWindows
FormsForms
Common Language SpecificationCommon Language Specification
C++C++ C#C# VBVB PerlPerl J#J# ……
VisualStudio.NETVisualStudio.NET
Database
• DATABASE- A shared collection of logically
related data (and a description of this data),
designed to meet the organization needs of
an organization
The Database Management System (DBMS) - software
that enables users to define, create and maintain the
database and provides controlled access to the
database
Advantages
• Sharing of data
• Enforcement of security
• Enforcement of development and maintenance
standards
• Reduction of redundancy
• Avoidance of inconsistency across files
• Maintenance of integrity
• Data independence
Functions of a DBMS
• Data storage, retrieval, update
• A user-accessible catalog
• Transaction support
• Concurrency control
• Recovery services
• Authorization services
• Integrity services
• Data independence
• Utility services
Data Conti..
• Entity: A thing of significance about which
information needs to be known.
• The characteristics that describe or qualify an
entity are called attributes of the entity.
Users
• There are a number of users who can access or
retrieve data on demand using the applications and
interfaces provided by the DBMS.
• Each type of user needs different software capabilities:
• – The database administrator (DBA) is the person or
group in charge of implementing the database system
within the organization.
• – The end users are the people who sit at workstations
and interact directly with the system.
• – The application programmers interact with the
database by accessing the data from programs written
in high-level languages such as Visual Basic or C++.
Example::
Now we have a Table and we take few operation upon
a table.
Table Name:: College_Info
Column Name Data Type Allow Null
Cname nvarchar(50) checked
CLocation nvarchar(50 checked
Courses nvarchar(50 checked
Cname CLocation Courses
Techno India College
EM4/1,Sector-
V,SaltLake,Kolkata-
700091
B.Tech, M.Tech, M.C.A,
B.C.A
Institute Of Engineering
& Management
DN-35,Salt Lake,Sector-
V,Kolkata-700091
B.Tech, M.Tech, M.C.A,
B.C.A, B.B.A, M.B.A
Netaji Subhash
Engineering College
Goria,Pach
Pota,Kolkata-700152
B.Tech, M.Tech, M.C.A,
B.C.A
Siliguri Institute of
Technology
Siliguri,West
Bengal,Darjeeling
B.Tech, M.Tech, M.C.A,
B.C.A, B.B.A, M.B.A
Saroj Mohan Institute
of Technology
GuptiPara,Hoogly
B.Tech, M.Tech, B.B.A,
M.B.A
Haldia Institude of
Technology
Haldia,Hatiberia,Purba
Midnapur,W.B,Pin-
721649
B.Tech, M.Tech, M.C.A,
B.C.A, B.B.A, M.B.A
Insert Statement:
insert into College_Info(Cname,CLocation,Courses)
values(Cname, Clocation,Courses)
Update Statement:
Update College_Info set Clocation=‘xyz’,Courses=‘XYZ1’
where Cname=‘DotNet’
Delete Statement:
Delete from College_Info where Cname=‘DotNet’
Select Statement:
Select * from College_Info where Cname=‘Siliguri Institute of
Technology’
Store Procedure:
Using store procedure we may insert value into Table:
create procedure [dbo].[Store_College]
( @p_Cname nvarchar(50),
@p_CLocation nvarchar(50),
@p_Courses nvarchar(50)
)
as
begin
begin try
begin transaction
** insert into College_Info(Cname,CLocation,Courses)
values(@p_Cname,@p_CLocation,@p_Courses)
commit transaction
end try
begin catch
rollback transaction
insert into error_log(LogDate,Source,ErrMsg)
values(getdate(),'Store_College',error_message())
end catch
end
In Update, Delete Statement we write Update & Delete statement
In ** part.
Summery
 CLS(Common language specification),CTS(Common Type
System).
 Managed code.
 Assemblies.
 Basic Database concept, Insert Update Delete Command.
 Store Procedure application.

Contenu connexe

Tendances

Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
phantrithuc
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
Wei Sun
 

Tendances (19)

Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Asp net
Asp netAsp net
Asp net
 
.Net introduction
.Net introduction.Net introduction
.Net introduction
 
Microsoft .Net Technology
Microsoft .Net TechnologyMicrosoft .Net Technology
Microsoft .Net Technology
 
Introduction to .Net
Introduction to .NetIntroduction to .Net
Introduction to .Net
 
Dot net syllabus book
Dot net syllabus bookDot net syllabus book
Dot net syllabus book
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET framework
 
Be project ppt asp.net
Be project ppt asp.netBe project ppt asp.net
Be project ppt asp.net
 
.Net framework
.Net framework.Net framework
.Net framework
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 
.net framework
.net framework.net framework
.net framework
 
Dot net introduction
Dot net introductionDot net introduction
Dot net introduction
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
 
Net framework
 Net framework Net framework
Net framework
 
Microsoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationMicrosoft .NET Development Platform Internationalization
Microsoft .NET Development Platform Internationalization
 
.NET Framework
.NET Framework.NET Framework
.NET Framework
 
Jayse farrell resume
Jayse farrell resumeJayse farrell resume
Jayse farrell resume
 
Introducing object oriented programming (oop)
Introducing object oriented programming (oop)Introducing object oriented programming (oop)
Introducing object oriented programming (oop)
 

Similaire à ASP.NET Session 2

.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
Mir Majid
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qa
abcxyzqaz
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
Instantenigma
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
Prof Ansari
 
Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02
Wei Sun
 

Similaire à ASP.NET Session 2 (20)

Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
.Net slid
.Net slid.Net slid
.Net slid
 
Net framework
Net frameworkNet framework
Net framework
 
The Philosophy of .Net
The Philosophy of .NetThe Philosophy of .Net
The Philosophy of .Net
 
Dot net
Dot netDot net
Dot net
 
.Net platform an understanding
.Net platform an understanding.Net platform an understanding
.Net platform an understanding
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
 
Vb
VbVb
Vb
 
.Net Session Overview
.Net Session Overview.Net Session Overview
.Net Session Overview
 
Microsoft.Net
Microsoft.NetMicrosoft.Net
Microsoft.Net
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .net
 
VB IMPORTANT QUESTION
VB IMPORTANT QUESTIONVB IMPORTANT QUESTION
VB IMPORTANT QUESTION
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qa
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
 
.Net Framework
.Net Framework.Net Framework
.Net Framework
 
Answer ado.net pre-exam2018
Answer ado.net pre-exam2018Answer ado.net pre-exam2018
Answer ado.net pre-exam2018
 
Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02
 

Plus de Sisir Ghosh

ASP.NET Session 5
ASP.NET Session 5ASP.NET Session 5
ASP.NET Session 5
Sisir Ghosh
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6
Sisir Ghosh
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
Sisir Ghosh
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8
Sisir Ghosh
 
ASP.NET Session 9
ASP.NET Session 9ASP.NET Session 9
ASP.NET Session 9
Sisir Ghosh
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10
Sisir Ghosh
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12
Sisir Ghosh
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14
Sisir Ghosh
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16
Sisir Ghosh
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
Sisir Ghosh
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1
Sisir Ghosh
 
Network security
Network securityNetwork security
Network security
Sisir Ghosh
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layer
Sisir Ghosh
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Sisir Ghosh
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networking
Sisir Ghosh
 
Application layer
Application layerApplication layer
Application layer
Sisir Ghosh
 

Plus de Sisir Ghosh (18)

ASP.NET Session 5
ASP.NET Session 5ASP.NET Session 5
ASP.NET Session 5
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8
 
ASP.NET Session 9
ASP.NET Session 9ASP.NET Session 9
ASP.NET Session 9
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1
 
Transport layer
Transport layerTransport layer
Transport layer
 
Routing
RoutingRouting
Routing
 
Network security
Network securityNetwork security
Network security
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layer
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networking
 
Application layer
Application layerApplication layer
Application layer
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

ASP.NET Session 2

  • 1. Framework Component & DBMS Concept Session 2
  • 2. Objective • CTS,CLS & Assemblies • .NET Architecture. • Database Concept • DML Command. • Store Procedure Example.
  • 3. CTS(Common Type System): Two language communicate smoothly due to CLR,has CTS. It is an integral part of the runtime & helps to support cross-language communication. It prevent data loss when a type in one language transfers data to its equivalent type in other language. Some functionality are follows: a)Support object-oriented model b)Specifies guidelines for different languages. c)Supports primitive data types,such as Boolean,Byte,Char, & Int32 etc.
  • 4. CLS(Common Language Specification): Common Language Specification (CLS), which is a set of basic language features needed by many applications. The CLS rules define a subset of the common type system; that is, all the rules that apply to the common type system apply to the CLS, CLS is a contact that states, how a language will interacts with CLR.When language used CLS they are said to be managed code. Code that targets the CLR is referred to as managed code. Earlier CLS was '.NET Compliant Language' All managed code has the features of the CLR- 1)Object-Oriented 2)Type-safe 3)Cross-language integration 4) Cross-language exception handling 5)Multiple version support
  • 5. Metadata • A metadata is the self description of a program in the binary format. It contains the information of classes, methods,& other elements used in a program. The metadata is stored in a CLR Portable Executable(PE) files. • The Metadata describes every datatype & member of your program. • When code is in the run mode,CLR loads the metadata into memory & finds information about the classes & member
  • 6. Assembly • An assemblies is a self-describing binary file,which can be either EXE or DLL file. • All the .NET assemblies contain the definition of types, versioning information for the type, meta-data, and manifest. Assembly manifest: An assembly manifest is a file that contains the metadata of assembly, which is the information of version requirements & security identity. Manifest store in PE file. The manifest contains:
  • 7. Strong Name: The assembly's name, version, culture, optional processor architecture, and public key (for shared assemblies) File Contents :Name and hash of all files in the assembly Resource List: Icons, images, text strings and other resources contained in the assembly Security: Permissions required for the assembly to run properly. These different version can be executed at the same time without interfering with each other.
  • 8. Operating SystemOperating System Common Language RuntimeCommon Language Runtime .NET Framework (Base Class Library).NET Framework (Base Class Library) ADO .NET and XMLADO .NET and XML ASP .NETASP .NET Web Forms Web ServicesWeb Forms Web Services Mobile Internet ToolkitMobile Internet Toolkit WindowsWindows FormsForms Common Language SpecificationCommon Language Specification C++C++ C#C# VBVB PerlPerl J#J# …… VisualStudio.NETVisualStudio.NET
  • 9. Database • DATABASE- A shared collection of logically related data (and a description of this data), designed to meet the organization needs of an organization The Database Management System (DBMS) - software that enables users to define, create and maintain the database and provides controlled access to the database
  • 10. Advantages • Sharing of data • Enforcement of security • Enforcement of development and maintenance standards • Reduction of redundancy • Avoidance of inconsistency across files • Maintenance of integrity • Data independence
  • 11. Functions of a DBMS • Data storage, retrieval, update • A user-accessible catalog • Transaction support • Concurrency control • Recovery services • Authorization services • Integrity services • Data independence • Utility services
  • 12. Data Conti.. • Entity: A thing of significance about which information needs to be known. • The characteristics that describe or qualify an entity are called attributes of the entity.
  • 13. Users • There are a number of users who can access or retrieve data on demand using the applications and interfaces provided by the DBMS. • Each type of user needs different software capabilities: • – The database administrator (DBA) is the person or group in charge of implementing the database system within the organization. • – The end users are the people who sit at workstations and interact directly with the system.
  • 14. • – The application programmers interact with the database by accessing the data from programs written in high-level languages such as Visual Basic or C++. Example:: Now we have a Table and we take few operation upon a table. Table Name:: College_Info Column Name Data Type Allow Null Cname nvarchar(50) checked CLocation nvarchar(50 checked Courses nvarchar(50 checked
  • 15. Cname CLocation Courses Techno India College EM4/1,Sector- V,SaltLake,Kolkata- 700091 B.Tech, M.Tech, M.C.A, B.C.A Institute Of Engineering & Management DN-35,Salt Lake,Sector- V,Kolkata-700091 B.Tech, M.Tech, M.C.A, B.C.A, B.B.A, M.B.A Netaji Subhash Engineering College Goria,Pach Pota,Kolkata-700152 B.Tech, M.Tech, M.C.A, B.C.A Siliguri Institute of Technology Siliguri,West Bengal,Darjeeling B.Tech, M.Tech, M.C.A, B.C.A, B.B.A, M.B.A Saroj Mohan Institute of Technology GuptiPara,Hoogly B.Tech, M.Tech, B.B.A, M.B.A Haldia Institude of Technology Haldia,Hatiberia,Purba Midnapur,W.B,Pin- 721649 B.Tech, M.Tech, M.C.A, B.C.A, B.B.A, M.B.A
  • 16. Insert Statement: insert into College_Info(Cname,CLocation,Courses) values(Cname, Clocation,Courses) Update Statement: Update College_Info set Clocation=‘xyz’,Courses=‘XYZ1’ where Cname=‘DotNet’ Delete Statement: Delete from College_Info where Cname=‘DotNet’ Select Statement: Select * from College_Info where Cname=‘Siliguri Institute of Technology’
  • 17.
  • 18.
  • 19. Store Procedure: Using store procedure we may insert value into Table: create procedure [dbo].[Store_College] ( @p_Cname nvarchar(50), @p_CLocation nvarchar(50), @p_Courses nvarchar(50) ) as begin begin try begin transaction ** insert into College_Info(Cname,CLocation,Courses) values(@p_Cname,@p_CLocation,@p_Courses)
  • 20. commit transaction end try begin catch rollback transaction insert into error_log(LogDate,Source,ErrMsg) values(getdate(),'Store_College',error_message()) end catch end In Update, Delete Statement we write Update & Delete statement In ** part.
  • 21. Summery  CLS(Common language specification),CTS(Common Type System).  Managed code.  Assemblies.  Basic Database concept, Insert Update Delete Command.  Store Procedure application.

Notes de l'éditeur

  1. te