Archive for February, 2009

96 Part I EXAM PREPARATION Depending on the

Friday, February 13th, 2009

96 Part I EXAM PREPARATION Depending on the implementation, the client s browser may also be considered a tier. If a set of records is sent to the browser by the web server to allow editing on the browser, then the client is considered a tier. In this case, a disconnected recordset or XML data is used for the client s data manipulation. If a round trip to the web server must take place to submit changes and interact with the data, then the client is not considered a tier it is more just a mechanism to display the HTML that is sent by the web server. In this case the user tier is the Internet server that acts as the user and prepares the HTML for display. Internet applications have the best scalability of all application architecture types, meaning that they can support the largest number of concurrent users. The drawback to using an Internet architecture is that it requires a greater number of development skills, and update conflict issues are inherent to the technology. Although an Internet application is usually implemented so that the database can be accessed from anywhere in the world, it can also be used for internal purposes through a configured intranet. Under this principle, users can access the database from a corporate HTML or XML site. Very Large Database Applications SQL Server 2000 has high-speed optimizations that support very large database environments. Although previous versions lacked the capability to support larger systems, SQL Server 2000 and SQL Server 7.0 can effectively support terabyte-sized databases. With the implementation of partitioned views in Enterprise Edition, servers can be scaled to meet the requirements of large Web sites and enterprise environments. Federated server implementations enable a large number of servers to assist in maintaining a complex large system. Elements of the replication system can also help distribute data among a number of machines while providing mutual updatability and maintaining centralized control over the entire system. Third-Party Database Interactions SQL Server 2000 supports heterogeneous connectivity to any data

For high quality website hosting services please check java web hosting website.

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000

Friday, February 13th, 2009

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000 95 interacts with the user. The database server manipulates the data, but there also exists a middle tier to control some of the operations. The middle tier can be represented by one or more machines that offload some processing from the database server, which allows for a very large number of users. There is usually no differentiation between three or more tiers and instead they are all categorized as n-tier systems. In an n-tier system, processing is divided into three categories. Each category represents one of the three main tiers in the three-tier system, which is also carried forward in an n-tier system regardless of the number of layers of processing. The presentation or client tier contains the components of the system that interact directly with the user. The sole purpose of this tier is to focus on the end user and present data in an attractive, organized, and meaningful fashion. The middle tier, or business tier, is responsible for communicating with the database server and also sets up the rules by which communication will be established. The idea behind the business tier is to provide mechanisms to implement the business rules that need to be applied to validate data and also perform intermediate processing that may be needed to prepare the data for presentation to the user. For this reason the business tier is often separated into two divisions: interactions with the user and interactions with the database server. With this approach business rules can be separated from data access processes. The final tier is the data tier, which is responsible for the execution of the data engine to perform all manipulations of the data. Access to the data tier is made through the middle tier. The data tier doesn t directly interact with the presentation layer. Internet Applications Internet applications can be said to fall under a two- or three-tier model, depending on the complexity and physical design. In an Internet application, the web server prepares the presentation elements to be displayed on the user s browser. If a middle tier server exists, then the web server is configured to interact with that server. If no middle tier server exists, then the web server interacts directly with the database server.

If you looking for unlimited one inclusive web hosting plan please check web hosting plan website.

94 Part I EXAM PREPARATION nique becomes overwhelming

Thursday, February 12th, 2009

94 Part I EXAM PREPARATION nique becomes overwhelming when the data is needed by multiple users sharing the same data. In this case, a two-tier with a central data store on a proper server is a better approach. A two-tier architecture places the user interface and data on separate machines. The client application sends queries across the network to be resolved by the data engine running on the server. The server resolves the query and sends the necessary data back across the network for the client application to display. There are two different implementations of a two-tier system: thin client and thick client, which is also known as fat client. In a thin approach the client application does little or no processing. A thin client just presents the data to the user and, when needed, communicates with the database engine on the server to work with the data. The thin client approach is best where the number of concurrent users accessing the data can be kept to a minimum. Because the server must perform the processing to validate the data as well as all other data manipulations, there is a lot of server overhead related to this approach. A thin client is a good approach for maintainability. If you need to upgrade software, for example, you do not have to do so on 1000 clients. It also works well for Internet applications. The thick client approach offloads some of the work needed to validate and process the data from the server machine to the client machine. In this approach the client may make some of the determinations as to whether data should be sent to the server based on validity checks coded in the client application. This approach enables many more users to access the same database concurrently. On the down side, though, application maintenance is more demanding and higher performance is required from the client. Although two-tier architectures allow for more flexibility and a larger number of users, it is still quite a limited architecture that can serve only small environments. When a larger number of concurrent user accesses is needed, a better choice of architecture is a multiple n-tier architecture or possibly an Internet architecture. Three- or More Tier Systems In a three-tier system, the client system presents the interface and

For high quality website hosting services please check java web hosting website.

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000

Wednesday, February 11th, 2009

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000 93 In this way only data that is needed is sent back to the client, and thereby multiuser access is provided, in contrast to non-client/server desktop database systems that prefer singular access and have difficulty handling multiuser functionality. This process is shown in Figure 2.12. In a non-client/server desktop architecture, the whole database resides on the client s machine; the client then processes the query locally on the database and finds records as required. This process results in wasted disk space and is difficult to set up in a multiple- user environment. The server is concerned with uses such as concurrency, security, and backing up data. The client-side application is implemented with a nice user interface and might contain queries and forms. The roles of each computer are not, however, carved in stone, and depending on the interactions required in any given system, many machines may take part. The process of dividing up processing across many machines creates a multi-layered environment. Each layer in the environment is referred to as a tier and each tier has a specific role to play in the overall system. Application development and choice of model is a crossover stage between the logical development and the physical database structure. At times the choice of the number of tiers is accomplished before the physical database implementation. Others choose to prepare the database first. Neither is absolutely correct, but it is a good idea to have some idea of the model before determining the final physical data structure. One- and Two-Tier Systems A one-tier system in a PC environment dates back 25 or more years to an environment where the only way to share data was to use the sneaker net approach. In other words, copies of the data were made and distributed manually. This approach was adequate at best and caused many headaches for anyone trying to implement a multiple-user environment. Particularly difficult was the merging of updates from multiple copies of the data. With a single-tier approach, one computer performs all the processing required to view, update, and store the data. Many products use this technique for small, single-user database systems, but this tech

For high quality jboss hosting services please check jboss web hosting website.

92 Part I EXAM PREPARATION Internet Information Server

Wednesday, February 11th, 2009

92 Part I EXAM PREPARATION Internet Information Server (IIS) or COM+. Heterogeneous databases using other non-SQL Server data sources. Very large database support. There are essentially two different models in which database systems can be described: a client/server model and a desktop database system. SQL Server can be used in both instances to store data and allow for application interaction. A client/server system divides the elements of a database system into two (or more) separate components, usually executing on two or more computers. The client component is responsible for the user interface and presents the data to the user in an attractive layout. This interface can be a Windows traditional form design or an HTML-based Internet design. The server is responsible for the data storage and actual manipulations of the data. This approach divides the processing and workload between the client, the server, and in some cases other machines as well. The client/server model can be thought of as a number of workstation computers accessing a central database from a server computer. In a concise sentence, the client/server model expresses a connection between a client program running on a workstation computer requesting a service and/or data from the server. When the client application needs certain data, it fetches that data from the server. The server application in turn runs a search against the server database to find the desired records. After the records are found, the server sends them back to the client application. Inpu. Quer. Server ServerDatabase QuerySenttoServer Serversearchesdatabaseand returnsonlywantedrecords FIGURE 2.12 A basic overview of how Client/Server Clien. processes information. Machin.

If you looking for unlimited one inclusive web hosting plan please check cheap web hosting website.

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000

Tuesday, February 10th, 2009

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000 91 opposed to the specifics needed for the implementation. At this stage it is more important to simply categorize the data. Between the logical modeling and the physical implementation, the actual software is chosen (though in the example case it was really predetermined). If developing a system from scratch where no software exists, the business needs are laid out, the logical model represented, REVIEW BREAK and the system architecture is designed before any decisions are made about the physical design, software, and hardware. If certain software is already being used in a given business, then some of the logical design stages may be adjusted toward specific products. The next section looks at the architecture of different types of database systems from the smallest desktop environments to the large-scale Internet application becoming prevalent in today s IT environment. Models and Uses Now you have a model, and even have some ideas of how to control the model to maintain accuracy and prevent system breakdown due to loss of integrity. Many tools are available to prevent the bad data from getting in that could produce incorrect results. Imagine the result if a government agency bases its decisions that will affect an entire country on data that is inaccurate or misrepresented. (Governments have enough trouble making decisions with accurate data.) So now you have a high-performance model that has been made as efficient possible through normalization principles. You may have even applied some planned redundancy (denormalization) in an effort to improve the performance and make the data more meaningful. But what about the storage? Now that you have attributes of all shapes and sizes, you need something to put them in. It is now time to look into the data itself. THE CLIENT/SERVER MODEL . Handle client/server configurations of 50 to 5,000 or more users. One, two, and n tier operations Internet applications. Web configurations that use

If you looking for unlimited one inclusive web hosting plan please check unlimited web hosting website.

90 Part I EXAM PREPARATION a globally unique

Monday, February 9th, 2009

90 Part I EXAM PREPARATION a globally unique identifier or GUID. The GUID takes on the string format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, in which each x is a hexadecimal digit. A GUID is long and obscure, but has the advantage of being guaranteed to be unique throughout the world. The sql_variant is a generic data type that stores values of various SQL Server-supported data types, except text, ntext, image, timestamp, and sql_variant. It may be used in column definitions as well as in parameters, variables, and return values of user-defined functions. A sql_variant can have a maximum length of 8,016 bytes. The table data type is new to SQL Server in the 2000 release. It can be used to temporarily store a resultset for later use. The table data type is not used for defining column types within a structure; rather it is used in functions, stored procedures, and batches. The cursor data type is another data type that is used only in functions, stored procedures, and batches. Its primary purpose is to allow the storage of a pointer to a resultset. Attributes of a T-SQL server cursor, such as its scrolling behavior and the query used to build the resultset on which the cursor operates, are set up using a DECLARE CURSOR operation within the procedure. User-Defined Data Types User-defined data types are stored as database objects and are based on any of the system data types. User-defined data types can be used when several tables must store the same type of data in a column and you must ensure that these columns have exactly the same data type, length, and nullability. Using these data types can help you create tables more quickly and can also help you control the data in a predictable manner. Often a user-defined data type is created in the model database; it will then exist in all new user-defined databases created. Data Types in a Logical Model Data definition is a step that follows the ER modeling as the database system nears the stage where it can be designed for the actual physical implementation. If present at all, the data definition in the logical model is more a general characterization of the data as

For reliable and cheap web hosting services please check tomcat web hosting website.

90 Part I EXAM PREPARATION a globally unique

Sunday, February 8th, 2009

90 Part I EXAM PREPARATION a globally unique identifier or GUID. The GUID takes on the string format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, in which each x is a hexadecimal digit. A GUID is long and obscure, but has the advantage of being guaranteed to be unique throughout the world. The sql_variant is a generic data type that stores values of various SQL Server-supported data types, except text, ntext, image, timestamp, and sql_variant. It may be used in column definitions as well as in parameters, variables, and return values of user-defined functions. A sql_variant can have a maximum length of 8,016 bytes. The table data type is new to SQL Server in the 2000 release. It can be used to temporarily store a resultset for later use. The table data type is not used for defining column types within a structure; rather it is used in functions, stored procedures, and batches. The cursor data type is another data type that is used only in functions, stored procedures, and batches. Its primary purpose is to allow the storage of a pointer to a resultset. Attributes of a T-SQL server cursor, such as its scrolling behavior and the query used to build the resultset on which the cursor operates, are set up using a DECLARE CURSOR operation within the procedure. User-Defined Data Types User-defined data types are stored as database objects and are based on any of the system data types. User-defined data types can be used when several tables must store the same type of data in a column and you must ensure that these columns have exactly the same data type, length, and nullability. Using these data types can help you create tables more quickly and can also help you control the data in a predictable manner. Often a user-defined data type is created in the model database; it will then exist in all new user-defined databases created. Data Types in a Logical Model Data definition is a step that follows the ER modeling as the database system nears the stage where it can be designed for the actual physical implementation. If present at all, the data definition in the logical model is more a general characterization of the data as

If you looking for unlimited one inclusive web hosting plan please check unlimited web hosting website.

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000

Sunday, February 8th, 2009

Chapter 2 DATABASE DESIGN FOR SQL SERVER 2000 89 characters, whereas ntext can store 1,073,741,823. Binary Data Types A number of data types are used to store binary data. The smallest is the bit data type, which supports Boolean operations and stores values of 0 or 1 in a single storage bit. Other binary data types are used to store binary strings and are stored as hexadecimal values. Binary data is stored using the binary, varbinary, and image data types. A column assigned the binary data type must have the same fixed length of up to 8KB. In a column assigned the varbinary data type, entries can vary in size. Columns of image data can be used to store variable-length binary data exceeding 8KB, such as Microsoft Word documents, Microsoft Excel spreadsheets, and images that SQL-92 Standard Timestamp The T-SQL timestamp data type is not the same as the timestamp data type defined in the SQL-92 standard. The Specialty Data Types SQL-92 timestamp data type is equiv alent to the T-SQL datetime data type. include bitmaps and other graphic files. Many data types are used in special circumstances to store data that does not directly qualify as numeric, character, or binary. Data types are available to store time and date information, globally unique identifiers (GUID), cursors, and tables. Three data types support the storage of time and date information: datetime, smalldatetime, and timestamp. All three store dates and times, although the timestamp data type stores automatically generated binary values using 8 bytes of storage and is not used to store data. Values with the datetime data type are stored as two 4-byte integers. The first 4 bytes store the number of days before or after the base date, which is January 1, 1900. The base date is the system reference date. Values for datetime earlier than January 1, 1753, are not permitted. The other 4 bytes store the time of day, represented as the number of milliseconds after midnight. The smalldatetime data type stores dates and times of day with less precision than datetime. It stores them as two 2-byte integers. The first 2 bytes store the number of days after January 1, 1900. The other 2 bytes store the number of minutes since midnight. Dates range from January 1, 1900, through June 6, 2079. The uniquidentifier data type stores a 16-byte data value known as NOTE

For high quality website hosting services please check java web hosting website.

88 Part I EXAM PREPARATION TABLE 2.2 DECIMAL

Saturday, February 7th, 2009

88 Part I EXAM PREPARATION TABLE 2.2 DECIMAL AND NUMERIC STORAGE SIZES Precision Bytes 1 9 5 10 19 9 20 28 13 29 38 17 Two data types are used for storage of monetary values: smallmoney and money. These values are stored with a scale of four decimal places. The smallmoney data type consumes 4 bytes and allows for the storage of monetary values from 214,748.3648 through +214,748.3647, and the money data type, at 8 bytes, stores values from 922,337,203,685,477.5808 through +922,337,203,685,477.5807. Character Data Types Character data types are subdivided into two categories depending on the byte size of the characters being stored. Traditionally, character data consumed one byte per character, allowing for 255 different characters. This standard was found to be inflexible, so the Unicode standard was developed, in which each character uses two bytes of storage. This standard allows for approximately 64,000 different characters. Each of these two data types have three variations for the storage of data: fixed-length, variable-length, and large character data. Non- Unicode data uses the char, varchar, and text data types, whereas Unicode data is stored in the nchar, nvarchar, and ntext types. The char data type allows for the storage of fixed-length non-Unicode character data with lengths from 1 through 8,000. The varchar data type allows for the same sizes of data. The primary difference between the two is that the varchar uses storage space more efficiently and uses only the space necessary to store the data value, regardless of the maximum size a variable has been configured to store. The nchar and nvarchar are essentially the Unicode implementation of char and varchar, and allow for storage of up to 4,000 characters. The text and ntext data types are used to store large variable-length character data. The text data type can store up to 2,147,483,647

For high quality website hosting services please check java web hosting website.