---
title: "Set up an On-demand Sharer Agent"
canonical: "https://docs.perspectium.com/space/Krypton/720938/Set%20up%20an%20On-demand%20Sharer%20Agent"
format: markdown
---
The Perspectium DataSync for ServiceNow Agent supports the replication of database rows to ServiceNow based on on-demand (or command) SQL statements from your database. You can set up your  config.xml  and  agent.xml  configuration files so that your DataSync Agent will listen for these  command SQL statements , generate data messages from your database based on these SQL statements, and then place those messages in a queue for consumption by a subscribing ServiceNow instance. Prerequisites  First, you will need to  install the DataSync for ServiceNow Agent  and  configure your  agent.xml  configuration file .   You should also  stop running your DataSync for ServiceNow Agent  before making any Agent configuration changes. Procedure To configure your DataSync Agent to run as an On-demand Sharer Agent, follow these steps: