InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How Does Notification Services Work? |
|
Answer» SUBSCRIPTION data can be added using (SMO) Subscription Management Objects to NOTIFICATION Services application. Events get populated to events table with the help of Event providers. When events are populated into events table, the GENERATOR wakes up and STARTS processing rules that are attached with subscriptions. The generator checks to see if any events match them. The generator starts creating notifications and FILLS the Notifications table, if matches are found. When notifications arrive in Notifications table, the distributor wakes up and starts processing each notification, formats it and delivers them using specified channel. Subscription data can be added using (SMO) Subscription Management Objects to Notification Services application. Events get populated to events table with the help of Event providers. When events are populated into events table, the generator wakes up and starts processing rules that are attached with subscriptions. The generator checks to see if any events match them. The generator starts creating notifications and fills the Notifications table, if matches are found. When notifications arrive in Notifications table, the distributor wakes up and starts processing each notification, formats it and delivers them using specified channel. |
|
| 2. |
What Are Notification Services? |
|
Answer» Notification Services are services which send notifications to the interested entities based on what they WOULD like be NOTIFIED on. It is ONE of the FEATURES of the SQL SERVER. Notification Services are services which send notifications to the interested entities based on what they would like be notified on. It is one of the features of the SQL Server. |
|
| 3. |
Explain Architecture Of Sql Server Notification Services? |
|
Answer» Notification Services consists four components Subscription Subscription data can be ADDED using (SMO) Subscription Management Objects to Notification Services application. Events get populated to events table with the help of Event providers. When events are populated into events table, the generator wakes up and starts processing rules that are attached with subscriptions. The generator CHECKS to see if any events match them. The generator starts creating notifications and fills the Notifications table, if matches are FOUND. Delivery (notifications) When notifications arrive in Notifications table, the distributor wakes up and starts processing each notification, formats it and delivers them using specified channel. Notification Services consists four components Subscription Subscription data can be added using (SMO) Subscription Management Objects to Notification Services application. Events Events get populated to events table with the help of Event providers. Generator When events are populated into events table, the generator wakes up and starts processing rules that are attached with subscriptions. The generator checks to see if any events match them. The generator starts creating notifications and fills the Notifications table, if matches are found. Delivery (notifications) When notifications arrive in Notifications table, the distributor wakes up and starts processing each notification, formats it and delivers them using specified channel. |
|
| 4. |
What Are The Basic Components Of Notification Services? |
|
Answer» The following TERMS are the components of Notification Service: Event: an action that occurred affecting the SPECIFIED data. Subscriber: an ENTITY that wants being notified on occurrence of an event. Subscription: an act by which subscriber DESCRIBES when and what he wants to be notified as. Notification: a channel of communication. The following terms are the components of Notification Service: Event: an action that occurred affecting the specified data. Subscriber: an entity that wants being notified on occurrence of an event. Subscription: an act by which subscriber describes when and what he wants to be notified as. Notification: a channel of communication. |
|
| 5. |
What Are The Restrictions Applicable While Creating Views? |
Answer»
|
|
| 6. |
Define Primary And Unique Key? |
|
Answer» Primary Key
Unique key
Primary Key Unique key |
|
| 7. |
Explain The Difference Between A Primary Key And A Unique Key? |
| Answer» | |
| 8. |
Define Distributed Query And Linked Server? |
|
Answer» Distributed Query:
LINKED Server:
Distributed Query: Linked Server: |
|
| 9. |
What Is Distributed Queries? |
|
Answer» DISTRIBUTED queries can access DATA from different data SOURCES. These sources can RESIDE on the same server or a different server. This means that distributed queries can query multiple databases. Distributed queries can access data from different data sources. These sources can reside on the same server or a different server. This means that distributed queries can query multiple databases. |
|
| 10. |
What Is A Linked Server? |
|
Answer» A linked server ALLOWS remote access. They have the ability to ISSUE DISTRIBUTED queries, update, commands, and TRANSACTIONS across different data sources. A linked server has an OLE DB provider and data SOURCE. A linked server allows remote access. They have the ability to issue distributed queries, update, commands, and transactions across different data sources. A linked server has an OLE DB provider and data source. |
|
| 11. |
Explain Openquery Function And Openrowset Function? |
|
Answer» OPENQUERY: - Used to execute the query passed on the linked server. SYNTAX: OPENQUERY (Linked_server_identifier, query). It can also be refernced from a FROM clause of selecte query. e.g. Select * from OPENQUERY (Oracleserver, ‘select fname, FROM EMPLOYEE); OPENROWSET: - Used to access tables in a linked server. It can be used one TIME for accessing REMOTE data by using OLE DB. It includes all the INFORMATION required to access the remote data. Syntax: OPENROWSET ( { 'provider_name' , { 'datasource' ; 'user_id' ; 'password' | 'provider_string' } , { [ catalog. ] [ schema. ] object | 'query' } | BULK 'data_file' , { FORMATFILE = 'format_file_path' [ ] | SINGLE_BLOB | SINGLE_CLOB | SINGLE_NCLOB } } ) OPENQUERY: - Used to execute the query passed on the linked server. Syntax: OPENQUERY (Linked_server_identifier, query). It can also be refernced from a FROM clause of selecte query. e.g. Select * from OPENQUERY (Oracleserver, ‘select fname, FROM Employee); OPENROWSET: - Used to access tables in a linked server. It can be used one time for accessing remote data by using OLE DB. It includes all the information required to access the remote data. Syntax: OPENROWSET ( { 'provider_name' , { 'datasource' ; 'user_id' ; 'password' | 'provider_string' } , { [ catalog. ] [ schema. ] object | 'query' } | BULK 'data_file' , { FORMATFILE = 'format_file_path' [ ] | SINGLE_BLOB | SINGLE_CLOB | SINGLE_NCLOB } } ) |
|
| 12. |
Define Transaction And Transaction Isolation Levels? |
|
Answer» Transaction A transaction is a set of operations that works as a single unit. The TRANSACTIONS can be CATEGORIZED into explicit, autocommit, and implicit transactions. Every transaction should follow four properties called the ACID properties i.e. atomicity, consistency, isolation, and durability. Atomicity Transaction ensures either modification is committed or not committed. Consistency The data should be in consistent state when transaction process is completed. This means that all related tables are updated. Isolation SQL server supports concurrency when mean that data can be access or shared by many USERS. A transaction works in isolation and doesn't allow other transaction to work concurrently on the same piece of data. Durability Data is permanent once transaction is completed and it can be recovered even if system fails. There are four transaction isolation levels:
Read committed isolation levels
Transaction A transaction is a set of operations that works as a single unit. The transactions can be categorized into explicit, autocommit, and implicit transactions. Every transaction should follow four properties called the ACID properties i.e. atomicity, consistency, isolation, and durability. Atomicity Transaction ensures either modification is committed or not committed. Consistency The data should be in consistent state when transaction process is completed. This means that all related tables are updated. Isolation SQL server supports concurrency when mean that data can be access or shared by many users. A transaction works in isolation and doesn't allow other transaction to work concurrently on the same piece of data. Durability Data is permanent once transaction is completed and it can be recovered even if system fails. There are four transaction isolation levels: Read committed isolation levels |
|
| 13. |
What Is Isolation Levels? |
|
Answer» Isolation keeps the transactions of multiple users isolated from each other. Transaction isolation level controls the degree of locking which OCCURS when SELECTING data. This is necessary to avoid situations like: Lost updates:when two transactions read the same data. Dirty read: Occurs when a transaction reads data that has not been updated. Non repeatable reads: occur when different results are read multiple times. Phantoms: Occurs when row data matches the FIRST time but does not match subsequent times. Isolation keeps the transactions of multiple users isolated from each other. Transaction isolation level controls the degree of locking which occurs when selecting data. This is necessary to avoid situations like: Lost updates:when two transactions read the same data. Dirty read: Occurs when a transaction reads data that has not been updated. Non repeatable reads: occur when different results are read multiple times. Phantoms: Occurs when row data matches the first time but does not match subsequent times. |
|
| 14. |
Define Data, Entity, Domain And Referential Integrity? |
|
Answer» Data Integrity Data Integrity validates the data before getting STORED in the columns of the table. SQL SERVER supports FOUR type of data integrity: Entity Integrity Entity Integrity can be enforced through indexes, UNIQUE constraints and PRIMARY KEY constraints. Domain Integrity: Domain integrity validates data for a column of the table. It can be enforced using: Foreign key constraints, Check constraints, Default definitions NOT NULL. Referential Integrity FOREIGN KEY and CHECK constraints are used to enforce Referential Integrity. User-Defined Integrity It enables you to create business logic which is not possible to develop using system constraints. You can use stored procedure, TRIGGER and functions to create user-defined integrity. Data Integrity Data Integrity validates the data before getting stored in the columns of the table. SQL Server supports four type of data integrity: Entity Integrity Entity Integrity can be enforced through indexes, UNIQUE constraints and PRIMARY KEY constraints. Domain Integrity: Domain integrity validates data for a column of the table. It can be enforced using: Foreign key constraints, Check constraints, Default definitions NOT NULL. Referential Integrity FOREIGN KEY and CHECK constraints are used to enforce Referential Integrity. User-Defined Integrity It enables you to create business logic which is not possible to develop using system constraints. You can use stored procedure, trigger and functions to create user-defined integrity. |
|
| 15. |
What Are The Lock Types? |
|
Answer» SQL server supports following locks: Shared lock
Update locks This lock is used with the resources to be UPDATED. Exclusive locks This kind of lock is used with data MODIFICATION operations like update, insert or delete. SQL server supports following locks: Shared lock Update locks This lock is used with the resources to be updated. Exclusive locks This kind of lock is used with data modification operations like update, insert or delete. |
|