Tải bản đầy đủ (.pdf) (12 trang)

CollaborateChapter 6..Knowledge ByteIn this section, you will learn about: Service-Oriented pps

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (351.25 KB, 12 trang )

Collaborate
Chapter 6

Querying, Managing, and Administering Databases Using SQL Server 2005 6.3
¤NIIT
In this section, you will learn about:
 Service-Oriented Architecture (SOA)
 Upgrading to SQL Server 2005
SOA is a collection of services. A service is a well-defined, self-contained function that
does not depend on the state of other services. These services communicate with each
other. The communication can involve either simple data passing or two or more services
coordinating some activity. The communication requires some means of connecting
services to each other.
Service-Oriented Architecture
SOA enables different services to communicate that carry out business processes, for
example credit card transaction and processing shipping order. In a credit card
transaction, different entities are involved, such as merchants and banks. To perform the
transaction electronically at merchants’ or banks’ end, they maintain their own electronic
processing systems. These systems are the services provided to complete a credit card
transaction successfully. SOA allows these disparate services to communicate easily.
SOA promises to speed development time and decrease integration time and effort. This
is possible because SOA groups software components made at different location and
using different application domains.
The applications are easily implemented with the independent, reusable and loosely
coupled services using SOA. These services communicate with the applications through
messages with well defined semantics and schema. These services have no direct
connection between them. They communicate through messages. These services can be
Knowledge Byte
SOA
Service 1 Service 2
Service


Provider
Service
Consumer
Service Re
q
uest
Service Res
p
onse
6.4 Querying, Managing, and Administering Databases Using SQL Server 2005
¤NIIT
enhanced, serviced, and even totally replaced, without affecting the services that use
them. This loose coupling provides easy reuse, deployment, and maintenance.
Introducing SOA
The applications used in today’s world either directly connect to the database or uses a
data access layer to store or retrieve the data. In this case, the users can work with the data
and see the result on the screen instantaneously.
In some applications, the user’s presence is not required at the time of result generation.
These results are still available for the user for later reference. These applications are from
the disconnected or batch processing computing domain. An example of batch processing
is the way that credit card companies process billing. The bill is created through batch
processing, where all of the data are collected and held until the bill is processed as a
batch at the end of the billing cycle. In this scenario, the feedback between the data and
the user does not have to be immediate. This system is extendable to large areas and the
load can be balanced using components. It also lowers the resource requirement by the
system at the time of communication.
Another example of disconnected system is e-mail. One user writes an e-mail on one
system at a certain time, the e-mail is stored at some other time and it is read by another
user at some other point of time. The e-mail server provides the reception, storage, and
delivery of the message as a service. In effect, e-mail is a part of an SOA. In an SOA, a

server provides interfaces and data that are available to any program that knows how to
talk to the service. The service can also be coded to accept input, or perform some other
action based on the connection.
SOA systems are not new in the industry. Microsoft has already provided many SOA
mechanisms in programs such as BizTalk or as separate add-ons to SQL Server 2000. In
Microsoft SQL Server 2005, Microsoft includes the Service Broker directly integrated
into the database engine.
SOA and SQL Server 2005
SOA allows you to build applications in a new way, distributing the load across multiple
servers using messages between them. SQL Server 2005 has provided the Service Broker
which can be programmed and use as a service to send, store and send messages.
Microsoft has introduced SOA system with SQL Server 2005 for a specific set of
requirement. In a disconnected communication, your service has to guarantee that the
traffic between the systems is encapsulated into messages so that the sending program is
identified, so it can receive the proper answer from the service. You also have to make
sure that the messages are ordered properly. Consider that the program has sent the
second line of a money transaction before sending the header. The service needs to be
Querying, Managing, and Administering Databases Using SQL Server 2005 6.5
¤NIIT
aware of the money transaction and the encapsulation so that it can respond to the account
only when it is complete, just as in a database transaction.
SOA systems use a database to manage the complete communication. In the other systems
where SOA is used, managing SOA system and database are handled separately. By
including the SOA within the database engine, the data, metadata, tracking data, and
mechanisms are all contained within the same architecture.
Read the following section in Chapter 1 of the book Administering Databases using SQL
Server 2005:
 Upgrading to SQL Server 2005
Upgrading to SQL Server 2005
6.6 Querying, Managing, and Administering Databases Using SQL Server 2005

¤NIIT
This section contains:
 Best practices
 Tips and tricks
 FAQs
The following best practices can be considered while using SOA and installing SQL
Server 2005:
 Enabling SOA service on SQL Server: SQL Server 2005 support SOA services.If
you want that your SQL Server works as a SOA service program you should
consider the following features it must implement.
z Endpoint support: The service provider must support TCP socket, HTTP
socket, HTTP GET or PUT, SOAP, or other type of endpoint.
z Process service requests: The service provider should be capable of processing
and transforming the enclosed data into other forms as needed by the
components that make up the service.
z Service logic host: The service provider must be capable of performing any
complex logic required to process the message and give the required response.
 Revoke permission after SQL Server Setup: If you modify permissions on a
domain user account to run SQL Server Setup, be sure to revoke those permissions
after Setup completes.
 Create multiple domain user to enable commuication with other servers and
clients: Create one or more domain user accounts if you are installing SQL Server
2005 on a computer running Microsoft Windows XP or Windows 2003, and you
want SQL Server 2005 to communicate with other clients and servers.
 Create backup of SQL Server installtion for further reuse: Back up your current
installation of SQL Server if you are running an instance of SQL Server on the
computer where SQL Server 2005 is to be installed.
 Verify the disk before SQL Server installation for compression: Verify that the
disk where SQL Server will be installed is uncompressed. If you attempt to install
SQL Server to a compressed drive, Setup will fail.

From the Expert’s Desk
Best Practices
Querying, Managing, and Administering Databases Using SQL Server 2005 6.7
¤NIIT
The following tips and tricks will help you to effectively install and upgrade SQL Server
2005:
 Exit antivirus software while installing SQL Server.
 Do not use blank password while installing SQL Server 2005, use strong password.
 After upgrading to SQL Server 2005 from another edition of SQL Server 2005, you
must re-apply any hotfix or service pack updates to the upgraded SQL Server
instance.
 Before upgrading to SQL Server 2005, enable Windows Authentication for SQL
Server Agent and verify that the SQL Server Agent service account is a member of
the SQL Server sysadmin group.
 Before upgrading from one edition of SQL Server 2005 to another, verify that the
functionality you are currently using is supported in the edition to which you are
upgrading.
 Can SQL Server 2005 databases be migrated back to SQL Server 2000 servers?
Migrating from SQL Server 2005 to SQL Server 2000 is not that easy. Backed-up
databases from SQL Server 2005 instances cannot be restored in SQL Server 2000
instances. Databases detached from SQL Server 2005 cannot be reattached to SQL
Server 2000. The only method available for moving data from SQL Server 2005
installations to SQL Server 2000 installations are based on copying data.
 What release of SQL Server 2005 will run on Windows Vista?
All editions of SQL Server 2005 Service Pack 2 (SP2) can be run on Windows Vista
Release Candidate 1.
 What is the upgrade cost to SQL Server 2000?
SQL Server 2005 Express Edition: No cost to download.
SQL Server 2000 Workgroup/Standard/Enterprise Edition: Can upgrade to the
same or lower edition of SQL Server 2005 at no additional cost.

SQL Server 2000 Workgroup/Standard/Enterprise: Customers who do not have
software assurance need to purchase new licenses for SQL Server 2005.
 Is there new licensing on SQL Server 2005 than SQL Server 2000?
SQL Server 2005 licensing is essentially similar to SQL Server 2000 in that there are
two major licensing models: per processor or by server.
Tips and Tricks
FAQs
6.8 Querying, Managing, and Administering Databases Using SQL Server 2005
¤NIIT

What are the basic limitations of SQL Server 2005 Express edition?
SQL Server 2005 Express edition is easy to install and easy to use. But it does not
provide few enterprise level features. The following list of features is not available
with SQL Server 2005 Express edition:
z Analysis Services
z Integration Services
z Notification Services
z Report Builder
z SQL Agent
z Database Tuning Advisor
z Full-Text Search
z Log Shipping
Querying, Managing, and Administering Databases Using SQL Server 2005 6.9
¤NIIT
1. Which of the following instances of SQL Server can be upgraded to SQL Server
2005?
a. SQL Server 2000 Service Pack 3 (SP3)
b. SQL Server 2000 Service Pack 3 (SP2)
c. SQL Server 7.0 SP3
d. SQL Server 7.0 SP2 or later

2. What is the compatibility mode of SQL Server 2005?
a. 80
b. 90
c. 60
d. 70
3. Which of the following is a correct set of tasks to upgrade from SQL Server 2000 to
SQL Server 2005?
a. i. Specify the installation options
ii. Start the installation process
iii. Select a particular instance to upgrade
b. i. Start the installation process
ii. Select a particular instance to upgrade
iii. Specify the installation options
c. i. Start the installation process
ii. Specify the installation options
iii. Select a particular instance to upgrade
d. i. Select a particular instance to upgrade
ii. Specify the installation options
iii. Start the installation process
4. What is not installed as a part of SQL Server 2005 setup?
a. Integration Services
b. Upgrade Advisor Tool
c. Management Tools
d. Analysis Services
5. To implement SOA with SQL Server 2005, which component is integrated with the
server?
a. Service Broker
b. Message Broker
c. Notification Services
d. Analysis Services

Challenge
6.10 Querying, Managing, and Administering Databases Using SQL Server 2005
¤NIIT
1. In Service Broker architecture, which action is taken by the service after receiving
and verifying the message?
a. Message is added to the queue
b. Acknowledgement is sent to the sender
c. Service waits for another message
d. Service creates a queue
2. What is the default value of validation option of CREATE MESSAGE command?
a. EMPTY
b. WELL_FORMED_XML
c. NONE
d. VALID_XML WITH SCHEMA COLLECTION
3. Why does Service Broker create a service?
a. To create an entity that is exchanged between the services
b. To create an object to store the messages
c. To create an agreement between the services
d. To deliver messages to the correct queue
4. What is the role of a dialog in Service Broker Architecture?
a. It provides communication between two services.
b. It provides unidirectional communication between two services.
c. It receives messages in any order.
d. It species the type of message to be send or receive.
5. Which of the following database objects in Service Broker architecture acts as
container that stores messages?
a. Contract
b. Queue
c. Message
d. Service

6. Which SQL Server 2005 version is freely distributable?
a. Enterprise edition
b. Standard edition
c. Express edition
d. Workgroup edition
Home Assignment
Querying, Managing, and Administering Databases Using SQL Server 2005 6.11
¤NIIT
7. Which edition of SQL Server 2005 requires a minimum of 192 MB RAM?
a. Express edition
b. Standard edition
c. Enterprise edition
d. Workgroup edition
8. Which edition of SQL Server 2005 can work on Windows XP Home?
a. Enterprise edition
b. Workgroup edition
c. Standard edition
d. Developer edition
9. Which of the following statement is correct about named instances?
a. Only one instance can be a named instance on a server.
b. Instance name is case sensitive.
c. Instance name must be a letter, a number or an underscore.
d. Instance name can contain numbers, letters, or other characters.
10. Which type of user account does not require a password to connect to SQL Server on
the same computer?
a. Local system account
b. Local service account
c. Domain user account
d. Network service account
6.12 Querying, Managing, and Administering Databases Using SQL Server 2005

¤NIIT

×