2
Answers

write a test case for the following requirement:

“In the web form, the email field will be pre-populated on page load with the email address given in the URL ‘email’ parameter. If the ‘email’ parameter doesn’t exist the field will be Empty.”
 
Please update me , as this question was asked in the previous interview .
Answers (2)
1
Rinki

Rinki

14 13.2k 8.1k Oct 03

DMRC

1
Sharp GPT

Sharp GPT

NA 1.6k 53 Oct 03

In the context of SQL Server technology, DMRC typically stands for Distributed Management and Replication Controller. This feature in SQL Server enables the management and coordination of distributed databases as well as the replication of data between these distributed instances.

DMRC helps in maintaining consistency across different database instances in a distributed environment. It facilitates tasks such as coordinating schema changes, ensuring data synchronization, and managing replication configurations efficiently.

Here is a simple example of using DMRC to manage replication in SQL Server:


-- Create a publication
EXEC sp_addpublication @publication = 'MyPublication';

-- Add articles to the publication
EXEC sp_addarticle @publication = 'MyPublication', @article = 'MyTable', @source_object = 'dbo.MyTable', @type = 'table';

-- Create a new snapshot for the publication
EXEC sp_addpublication_snapshot @publication = 'MyPublication';

-- Create a subscription to subscribe to the publication
EXEC sp_addsubscription @publication = 'MyPublication', @subscriber = 'SubscriberServer', @destination_db = 'MyDestinationDB';

This code snippet demonstrates the basic steps involved in setting up a publication, adding articles to it, creating a snapshot, and then adding a subscription to subscribe to this publication. DMRC plays a crucial role in managing these replication tasks effectively.

By utilizing DMRC functionalities in SQL Server, organizations can ensure smooth operations and reliable data replication across their distributed database environment.