You are on page 1of 7

Homework Title / No. : ___Homework 1________________Course Code: _613______ Course Instructor: ______________________ Course Tutor (if applicable) : Ms.

Sucharu_Mahajan_ Date of Allotment: _____________ Date of submission: __12-2-12_________ Students Roll No.____RD1004A21_________ Section No. : ____D1004__________ Declaration: I declare that this assignment is my individual work. I have not copied from any other students work or from any other source except where due acknowledgment is made explicitly in the text, nor has any part been written for me by another person. Students Signature: _anjna kumari_ Evaluators comments: _____________________________________________________________ ________ Marks obtained : ___________ out of ______________________

CAP613T HOMEWORK 1 Q1.The primary purpose of sql server agent is to make our job easier. How will u support this statement? Ans. The SQL Server Agent jobs, here we have something similar to what you
might see on any SQL Instance throughout your organization. There is a mix of maintenance jobs and jobs related to business processes. SQL Server Agent is a Microsoft Windows service that executes scheduled administrative tasks, which are called jobs. SQL Server Agent uses SQL Server to store job information. Jobs contain one or more job steps. Each step contains its own task, for example, backing up a database. SQL Server Agent can run a job on a schedule, in response to a specific event, or on demand purpose of sql server agent is to make our job easier these are :

A job must follow a standard naming convention (defined in a policy document) Each job step must have a text output file to a standard location using the name of the job and a .txt extension The text output from the first step in the job should overwrite and subsequent steps append The success and failure of a job must be clearly defined within the logic of the job steps. Therefore if a job fails or succeeds then I can be certain that this was the outcome of the process. In other words I do not allow a failure to be overwritten by a subsequent job step success. A schedule must be clearly defined and named as (defined in a policy document) using the frequency within the schedule name.

Q2. Analyze the features of standard tool bar, table designer toolbar and text editor toolbar and the various functions carried by them. Ans. Standard toolbar :-The Standard toolbar provides buttons to execute the
most common actions such as opening and saving files. It also provides buttons that will launch new queries and expose additional tool windows.
Table Designer Toolbar

Feature Purpose New Query :The New Query command launches a new Database Engine Query window by default. Database Engine Query :Opens a new Database Engine Query window. Analysis Services MDX Query :- Opens a new MDX Query window. Analysis Services DMX Query:- Opens a new DMX Query window. Analysis Services XMLA Query :- Opens a new XMLA Query window. 2. Table designer toolbar: The Table Designer toolbar becomes visible (or enabled) when a new table is created using Table Designer or an existing table is modified using Table Designer. Table Designer is launched by right-clicking on the Table node in Object Explorer and choosing New Table from the context menu, or by rightclicking on an existing table in the Table node of Object Explorer and choosing Design. The following table describes the toolbar: Feature Purpose Generate Change Script :Table creation or modification done with the Designer can be sent to a Query window for later execution. Manage Indexes and Keys :Enables the creation of unique keys and indexes. Manage XML Indexes :- Launches a dialog that enables the creation and management of Primary and Secondary indexes. Manage Check Constraints :- Launches a dialog that enables the creation and management of check constraints. Manage Spatial Indexes :Launches a dialog that enables the creation of Spatial Indexes for the new Geometry and Geography data types. Text Editor Toolbar The Text Editor toolbar offers additional shortcuts to those provided in the other language-specific editors.

The features are described in the following table: Feature Purpose Display Word Completion :Displays possible words to complete a variable, command, or function call. If only one possible option exists, it is implemented. Decrease Indent:Decreases the indent of selected text. Increase Indent :Increases the indent of selected text. Comment Out Selected Lines :- Adds inline comment marks to comment out the selected lines. Uncomment Selected Lines:Removes inline comment marks. Toggle a Bookmark on the Current Line

Q3 Elaborate the new data types in SQL Server 2008 giving examples for each. While planning a database what are the various considerations we keep in mind? Explain how to create database with both graphical and query interface. Ans. 1. Date time The four new types of date and time data type have been
added making the work with time much easier. 1)Date data type:-. The date data type is used to store date values only between January 1, 0001 and December 31, 9999. It is accurate to 1 day and consumes 3 bytes of space. Internally, SQL Server stores date data as a 3-byte integer that is used to store the number of days since January 1, 0001 2)datetime2The datetime2 data type is an extension of the date time data type with support of a wider range of dates and more accuracy. It can be used to store dates and times between January 1, 0001 and December 31, 9999 and is accurate to up to 100 nanoseconds. Similar to the decimal and numeric data types, it is declared with an optional precision.
.

3) Time data typeThe time data type is used to store time values only between 00:00:00.0000000 and 23:59:59.9999999. It is accurate to 100 nanoseconds. Similar to the decimal and numeric data types, it is declared with an optional precision. The precision

specifies the storage of fractional seconds with the default precision being seven decimal places, or 100 nanoseconds. 4) Date time offsetThe date time offset data type is used to store dates and times between January 1, 0001 and December 31, 9999 along with an offset from UTC (Coordinated Universal Time) ranging from 14 hours before UTC to 14 hours after UTC. Like the datetime2 data type, it is accurate to 100 nanoseconds and uses the optional precision specification. 2.File stream data type:- A new enhancement added to SQL Server 2008 is the ability to store unstructured data, such as text documents, images, and videos, outside the database but linked to the row in which the column is defined. FILESTREAM integrates the Database Engine with the NT File System by storing varbinary(MAX) binary large object (BLOB) data as files on the file system instead of on separate Large Object data pages within the data file of the database. Transact-SQL statements can insert, update, query, and back up FILESTREAM data. 3. Spatial Data type:- this is newly introduced in sql server 2008 in integrate the spatial data which is of further two types. 1.geometry This type represents data in a Euclidean (flat) coordinate system. 2.geographyThe geography data type (geodetic) stores ellipsoidal (round-earth) data, such as GPS latitude and longitude coordinates.

to create database with both graphical and query interface. USING CUI: Create database <database name>; Using GUI: in object explorer-> right click on database -> then dialog box will be appear write thee database name then click on OK button. Thus the database will be created.

Q4. Why is it important to keep the various hardware considerations in mind while installing SQL Server 2008?

Explain various hardware considerations in support of your answer. Ans. Hardware considerations:- SQL Server will run on a system with
minimum hardware, but the performance is not going to be stellar. Even the recommended hardware is to be exceeded whenever practical. I tend to think of these as minimum to install and start the services and minimum to run a production system, respectively. Upgrading almost any hardware object on a server hosting SQL Server 2008 will result in improved performance, but all things being equal, increasing RAM often has the best impact on performance. An underpowered processor or slow disk system will cause just as many performance problems as insufficient RAM, but RAM limitations will often cause processor and disk issues to be exacerbated Various hardware consideration:- Amount of RAM we required minimum is 512. Disk Size (256 MB),the space of database storage depends on the disk size of the system. Monitor, Mouse, Keyboard etc.

Q5. Enumerate why SQL server 2008 is more secure than the previous versions of SQL server. Ans. SQL Server 2008 offers built-in, transparent data encryption at the database
level and exposes encryption functionality to third-party vendors to provide enterprise wide, dedicated key management. SQL server 2008 is more secure than the previous versions of SQL server cause it provides:1.Encrypt data transparently:

Enable application developers to access encrypted data without changing existing applications. Guard against security breaches if backups or disks are lost or stolen. Encrypt all data without increasing database size or impacting performance. Ensure consistent data encryption across the enterprise.

2.Employ extensible key management

Use third-party hardware security modules to store encryption keys in a separate system from data. Store, retire, and regenerate as many keys as you need without impacting security.

3.Sign code modules


Use a certificate to add a digital signature to code modules, such as stored procedures and functions. Associate additional permissions to the signature for the duration of the code module execution.

4.Reduce attack surface area


Use Policy-Based Management to control which services and features are available. Selectively turn on key services that are off by default, as you need them. Reconfigure manual services that you deem essential to be automatically started.

5.Take advantage of a built-in cryptography hierarchy

Use the built-in cryptography hierarchy in SQL Server 2008 R2 to create asymmetric keys, symmetric keys,

You might also like