1. What is meant by a schema?

Schema is collection of functions which are executed in a specified squence and the results of the function are passed on to the next function

2. What is inline schema, how does it works?

Schemas can be included inside of XML file is called Inline Schemas.

3. What is an abstract schema?

Abstract schema is part of an entity bean's deployment descriptor which defines the bean's persistent fields and their relationship. Abstract schema is specifed for entity beans with container managed persistence. We specify the name of the Abstract schema name in the deployment descriptor. The queries written in EJB QL for the finder methods references this name. The information provided in this Abstract Schema is used by the container for persistence management and relationship management.

5. Describe Database Connection pooling relative to the MTS?

This enables MTS to reuse database connections. Database connections are sent to "sleep" mode as against normal constructions and destructions.

6. What is meant by the Waterfall Model?

The waterfall model is a popular version of the systems development life cycle model for software engineering. Often considered the classic approach to the systems development life cycle, the waterfall model describes a development method that is linear and sequential. Waterfall development has distinct goals for each phase of development. Imagine a waterfall on the cliff of a steep mountain. Once the water has flowed over the edge of the cliff and has begun its journey down the side of the mountain, it cannot turn back. It is the same with waterfall development. Once a phase of development is completed, the development proceeds to the next phase and there is no turning back

7. Give syntax and examples for creating and dropping XML schema collection?

Syntax and example for creating and dropping XML schema collection:
★ CREATE XML SCHEMA COLLECTION [ <relational_schema>. ]sql_identifier AS Expression
★ relational_schema: identifies the relational schema name. Default is relational schema.
★ sql_identifier: is the SQL identifier for the XML schema collection.
★ Expression is a string constant or scalar variable. It can be a varchar, varbinary, nvarchar, or xml type.
★ DROP XML SCHEMA COLLECTION [ relational_schema. ]sql_identifier
relational_schema identifies the relational schema name.
sql_identifier is the name of the XML schema collection to drop.

8. Define XML schema permission "GRANT permission [ ,...n ] ON"?

Specifies a permission that can be granted on an XML schema collection.

9. Define XML schema permission "XML SCHEMA COLLECTION :: [ schema_name . ]"?

Specifies the XML schema collection on which the permission is being granted.

10. Define XML schema permission "TO <database_principal> [ ,...n ]"?

Specifies the principal to which the permission is being granted.

Download Interview PDF

12. Define XML schema permission "[ WITH GRANT OPTION ]"?

Indicates that the principal will also be given the ability to grant the specified permission to other principals.

13. Define XML schema permission "| Database_user_mapped_to_Windows_User"?

Specifies a database user mapped to a Windows user.

16. Define XML schema permission "| Database_user_mapped_to_asymmetric_key"?

Specifies a database user mapped to an asymmetric key.

17. Define XML schema permission "[ AS <database_principal> ]"?

Specifies a principal from which the principal executing this query derives its right to grant the permission.

18. Define XML schema permission "| Database_user_with_no_login"?

Specifies a database user with no corresponding server-level principal.

19. Define XML schema permission "| Database_user_mapped_to_Windows_Group"?

Specifies a database user mapped to a Windows group.

20. Define XML schema permission "| Database_user_mapped_to_certificate"?

Specifies a database user mapped to a certificate.

21. Client-side XML support in SQL Server is in the form of SQLXML. Described in terms?

XML Views:
Providing bidirectional mapping between XML schema's and relational tables.
Creation of XML Templates:
Allows creation of dynamic sections in XML.

22. Which 3 major elements SQL Server (server-side) supports?

1) Creation of XML fragments: This is done from the relational data using FOR XML to the select query.
2) Ability to shred xml data to be stored in the database.
3) Finally, storing the xml data.

23. Define XML support SQL server extends?

SQL server can return XML document using FOR XML clause. XML documents can be added to SQL Server database and you can use the OPENXML clause to display the data from the document as a relational result set. SQL Server 2000 supports XPath queries.

24. Can we write a DTD instead of Schema?

You could write a DTD for an XML page and accomplish some of the same goals. However, because a schema is written in XML, there is no new syntax or rules to understand. If you can write a page in XML, you can write an XML schema.

Download Interview PDF

25. Why use an XML Schema?

Schemas allow all applications to understand the rules and content of the page.
A schema is the blueprint of an XML document. Since XML works to move data, it is essential that the sender and the receiver of this data both understand the content.