0% found this document useful (0 votes)
39 views1 page

Object Oriented Programming

The document describes how to create an object oriented database in SQL Server to store profile information. It includes instructions to: 1. Create a database called "MyProfile" 2. Create a table called "tblInfo" within that database to store profile fields like name, age, gender etc. 3. Insert a sample record into the table for a classmate named "Marlon B. Quinto" from Notre Dame of Marbel University.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Object Oriented Programming

The document describes how to create an object oriented database in SQL Server to store profile information. It includes instructions to: 1. Create a database called "MyProfile" 2. Create a table called "tblInfo" within that database to store profile fields like name, age, gender etc. 3. Insert a sample record into the table for a classmate named "Marlon B. Quinto" from Notre Dame of Marbel University.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

OBJECT ORIENTED PROGRAMMING

1. Create database named MyProfile.


2. Create table using this code.
USE [MyProfile]
GO
/****** Object: Table [dbo].[tblInfo]
******/
SET ANSI_NULLS ON
GO

Script Date: 07/24/2016 22:36:53

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tblInfo](
[Rec_Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](50) NULL,
[Age] [varchar](50) NULL,
[Gender] [varchar](50) NULL,
[ContactNumber] [varchar](50) NULL,
[Address] [varchar](50) NULL,
[Course] [varchar](50) NULL,
[School] [varchar](50) NULL,
CONSTRAINT [PK_tblInfo] PRIMARY KEY CLUSTERED
(
[Rec_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO

3. Insert you classmates information using code.


INSERT INTO [MyProfile].[dbo].[tblInfo]
([Name]
,[Age]
,[Gender]
,[ContactNumber]
,[Address]
,[Course]
,[School])
VALUES
('Marlon B. Quinto, MIT'
,'15'
,'Male'
,'09481495298'
,'Brgy. Poblacion 3, Lebak, Sultan Kudarat'
,'MIT Master in Information Technology'
,'NDMU Notre Dame of Marbel University')
GO
4.
5.

Advance Research Code for Update and Delete


Advance Research Code for Select filtered by Where stament

You might also like