While doing replication I received the following error message in Replication monitor
→ Agents
Access to the path 'D:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\repldata\unc\_DEMO_SAMPLE\20160602154451\' is denied.
If the folder is manually created, then the error is solved for some time. However, after some time the error occurs again because the timestamp (20160602154451
) has changed. How can I create a folder dynamically? Or can anyone suggest another solution to this problem?