Data Integrity

Data Integrity
Introduction Tables in a SQL Server 2000 database include a number of different types of properties that ensure the integrity of data in the tables. These properties include datatypes, NOT NULL definitions, DEFAULT definitions, IDENTITY properties, rules, constraints, triggers, and indexes. Enforcing data integrity ensures the quality of data in a database. For example, if a product is entered with a Product_ID value of 25 in a table named Products, the database should not allow another product to have an ID with the same value. Furthermore, if there is a column named Product_Rating that is intended to have values ranging from 1 to 10, the database should not accept a value below 1 and above 10 for this column. This can be accomplished by using the methods supported by SQL Server to enforce the integrity of the data. SQL Server supports a number of methods that can be used to enforce data integrity. These methods include defining datatypes, NOT NULL definitions, DEFAULT definitions, IDENTITY properties, rules, constraints, triggers, and indexes. Datatypes A datatype is an attribute that specifies the type of data (e.g., character, integer, binary, etc.) that can be stored in a column, parameter, or variable. SQL Server provides a set of system-supplied datatypes. However, users can also create user-defined datatypes based on the system-supplied datatypes. System-supplied datatypes define all of the types of data that can be used with SQL Server. Datatypes can be used to enforce data integrity because the data entered or modified must conform to the type specified for the object. For example, a name cannot be stored in a column defined with the datetime datatype, as a datetime column can accept only date values. NOT NULL Definitions The nullability of a table column determines whether the rows in the table can contain a null value for that column. A null value in a column does not mean that the column has zero, blank, or a zero-length character string such as ” “. Null in a column means that no data has been entered in that column. The presence of a null in a column implies that the value is either unknown or undefined.The nullability of a column is defined while defining the column or while creating or modifying a table. The NULL keyword is used to specify that the column will allow null values. The NOT NULL keyword specifies that null values will not be allowed in the column. DEFAULT Definitions Each column in a row must contain a value even if that value is null. However, certain situations exist when a row is inserted in a table, but the value for a column is not known or the value does not yet exist. If the column allows null values, a row with a null value for that column can be inserted in the table. In some cases, nullable columns might not be desirable. In these cases, a DEFAULT definition can be defined for the column. Defaults specify what values are automatically inserted in a column if a value is not specified for the column when inserting a row in the table. For example, it is common to specify zero as the default for numeric columns and N/A as the default for string columns.When a row is inserted in a table with a default definition for a column, the SQL Server is implicitly instructed to insert the specified default value in the column if a value is not specified for the column. IDENTITY Properties The IDENTITY property is used to define a column as an identifier column. An identifier column contains system-generated sequential values that uniquely identify each row in the table. A table can have only one identifier column. Identifier columns usually contain values that are unique only within the table for which they have been defined. In other words, other tables containing identifier columns can contain the same identity values used by another table. However, the identifier values are typically used only within the context of a single table, and the identifier columns do not relate to other identifier columns in other tables. Constraints Constraints are used to define the way that SQL Server automatically enforces the integrity of a database. A constraint is a property assigned to a table or column within a table that prevents invalid data values from being entered in the specified column(s). For example, a PRIMARY KEY or UNIQUE constraint on a column prevents a duplicate value from being inserted into the column. A CHECK constraint on a column prevents the column from accepting a value that does not meet the specified condition. Moreover, a FOREIGN KEY constraint establishes a link between data in two tables. Rules Rules perform some of the same functions as CHECK constraints. However, CHECK constraints are preferred over rules. Rules are provided only for backward compatibility. CHECK constraints are more concise than rules. A column can have only one rule applied to it. However, multiple CHECK constraints can be applied to a column. CHECK constraints are specified while creating a table, whereas rules are created as separate objects and are bound to the column. The CREATE RULE statement is used to create a rule. Once a rule has been created, it can be bound to a column or a user-defined data type by using the sp_bindrule system stored procedure. Triggers Triggers are special types of stored procedures that are defined to execute automatically when an UPDATE, INSERT, or DELETE statement is issued against a table or view. Triggers can be used to enforce business rules automatically when data is modified. Triggers can also be used to extend the integrity checking logic of constraints, defaults, and rules. However, it is recommended that constraints and defaults be used instead of triggers whenever they provide all of the needed functionality. Indexes An index is a database object that orders the values of one or more columns in a table. An index provides pointers to the data values stored in specified columns of the table and orders the pointers in the specified order. When rows are requested from an indexed table, the database searches the index to find a particular value and then follows the pointer to the row containing that value.Types of Data IntegritySQL Server supports the following four types of data integrity: 1.Entity Integrity Entity integrity defines a row as a unique entity for a particular table. Entity integrity enforces the integrity of the identifier column(s) or the primary key of a table (through indexes, UNIQUE constraints, PRIMARY KEY constraints, or IDENTITY properties). 2.Domain Integrity Domain integrity validates the entries for a given column. Domain integrity can be enforced by restricting the type (through data types), the format (through CHECK constraints and rules), or the range of possible values (through FOREIGN KEY and CHECK constraints, DEFAULT definitions, NOT NULL definitions, and rules). 3.Referential Integrity Referential integrity maintains the defined relationship between tables when records are entered or deleted from the tables. In SQL Server 2000, referential integrity is based on relationships between foreign keys and primary keys or between foreign keys and unique keys (through FOREIGN KEY and CHECK constraints). Referential integrity ensures that key values are consistent across the related tables.When referential integrity is enforced, SQL Server prevents users from adding records to a related table if there is no associated record in the primary table. Users are also prevented from changing values in a primary table or deleting records from the primary table if there are related records in the related table. 4.User-Defined Integrity User-defined integrity is used to define specific business rules that do not fall into any of the other integrity categories. All of the integrity categories support user-defined integrity. All column-level and table-level constraints defined in CREATE TABLE, stored procedures, and triggers are examples of user-defined integrity.

uCertify was formed in 1996 with an aim to offer high quality educational training software and services in the field of information technology to its customers. uCertify provides exam preparation solutions for the certification exams of Microsoft, CIW, CompTIA, Oracle, Sun and other leading IT vendors. To know more about uCertify, please visit http://www.ucertify.com/

Management Mass Data Storage Options
Management mass data storage uses different electronic devices that are used for storing a large amount of data. Due to advances in technology, management mass date storage has become fairly easy.

Mass storage is a way for individuals or businesses to store sucessfully a large amount of data. The most common form of mass data storage is on computer drives. The most popular storage devices are:

? Floppy disks
? Hard disks
? CD-Roms
? USB ports

According to Webopedia, mass storage devices still hold information even when the computer or operating system is not powered on.

A common device for organizing management mass data storage is the CD-ROM Disc. Although CD-style discs come in a wide variety brands, all kinds resemble a music CD or DVD in their appearance. There are some discs that only record data once. Many times, these discs are referred to as “read only” discs. “CDRWs” is a common name for discs that can have data erased and re-entered on the disc over and over again. CD-ROM Discs are popular because they are portable, which means they can be removed from the CD-ROM drive that reads and stores data on them. CD-ROM drives are generally tagged with a speed number; for example, 4x. Many CD discs are also associated with a speed number. Technology has allowed these speeds to increase, and are making storing and retrieving data from a CD disc much easier and faster.

Floppy disks were, and still are, a popular way to store and transfer important data. Although management mass data storage is generally used for large businesses, many individuals or families use floppy disks as a way to store their important personal information. Floppy disks work specifically with disk drives that can be found on most standard computer operating systems. A floppy disk is convenient, because it is portable and can be removed from the floppy drive and stored someplace safe. Handling the management mass data storage is easy for companies and individuals with a floppy disk.

Hard disk are another common and secure way to manage and store mass amounts of data. The majority of computers sold today have hard disks. Many larger businesses or computer networks have at least one, and at times, multiple hard disks drives. a hard disk is often compared to a traditional cassette tape, because both use special magnetic recording. This magnetic recording process allows for the data to be stored, copied, or even erased.

USB ports is another management mass data storage device. The USB port allows external devices to be connected to many standard operating systems. This allows data to be retrieved, copied, or stored from a source outside the computer. Various kinds of media equipment use the USB ports on a computer. For instance, many MP3 players, iPods, video cameras, and digital cameras can be connected to a computer by a USB cable. It is possible to purchase external CD drivers or external hard drives. These items are often used when an operating system may not have a hard drive installed, or if additional space is needed.

Windows, Mac, and other electronic operating systems generally have one at least one kind of management mass data storage, and some have a combination of different storage options. operating and maintaining of management mass data storage is a safe and efficien way to eliminate paper filing systems or and the overuse of traditional, handwritten materials.

Author - Matt Garrett <a href="http://www.registry-cleaner.org">Registry Cleaner</a> <a href="http://www.offsite-backup-services.com">www.offsite-backup-services.com</a>

Data-Recovery: What You Need
Data recovery is something we hope that we will never need. Whether you simply make the mistake of deleting important software or you lose it all in a computer crash, that valuable asset of information may seem like it is lost forever. But, if you have complete and quality data-recovery software on your computer or through your system, you can be confident that it has a backup and it is there even though these things will happen to you. This can be so important when it comes to safeguarding your business or your personal information.

What people do not realize is that there are a number of ways that things can go wrong on their computers. Whether you are responsible for the computers of a large corporation, a small business or even just your own personal computer, having a way to restore information when things go wrong is quite important. Here are some things that could happen to you, well, anytime, even right now. Your computer could be running slowly or be loaded with powerful spyware that can destroy files, transmit personal data or, even worse, cause the computer to crash. All of a sudden, it’s gone. Or, you could be working along nicely without a care in the world and bam! A power surge, an electric storm or something else electrical happens and it’s all gone.

There are many more ways in which you can lose all of the personal data that is stored on your computer. You don’t even have to have the programs running to lose it. Nevertheless, many people mistakenly believe this will not happen to them and therefore do not do anything to prevent this total loss. Data recovery is necessary for this not to happen. The strange thing is, it takes only minutes to install and use and it virtually and it takes care of itself. It is not overly costly either. So, why don’t more people use data recovery? They just don’t realize its importance. And that is one mistake we don’t want to make. Data recovery is a need all computer users have.

For more information please see <a href="http://www.data-recovery-help.co.uk" target="_blank">http://www.data-recovery-help.co.uk</a>

Recent Entries

Comments are closed.


Hey.lt - Nemokamas lankytojų skaitliukas