We have SQL Server 2008 R2 running on our Windows 2008 R2 server that is the Publisher and the Distributor. We have SQL Server 2008 R2 express (Windows 7) running on our desktops/laptops with Pull Subscriptions running. We have 6 subscriptions configured/running and one of those is getting the error below. We are using the default distribution manager profile and it is not designating OLEDB streaming. Windows Sync Center on the laptop/desktop is being used to Sync the subscriptions. Subscriptions can be reinitialized successfully but the pull of updates results in the error.
Here is the TSQL used to build the subscription:
use [DMLR]
GO
exec sp_addpullsubscription @publisher = N'WSQ00796', @publisher_db = N'DMLR', @publication = N'DmlrEnf', @independent_agent = N'true', @subscription_type = N'anonymous', @description = N'Transactional publication of DMLR database from Publisher WSQ00796.',
@update_mode = N'read only', @immediate_sync = 1
exec sp_addpullsubscription_agent @publisher = N'WSQ00796', @publisher_db = N'DMLR', @publication = N'DmlrEnf', @distributor = N'WSQ00796', @subscriber_security_mode = 1, @distributor_security_mode = 1, @frequency_type = 64, @frequency_interval = 1, @frequency_relative_interval
= 1, @frequency_recurrence_factor = 0, @frequency_subday = 4, @frequency_subday_interval = 5, @active_start_date = 0, @active_end_date = 0, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @enabled_for_syncmgr = N'true', @use_ftp = N'false',
@publication_type = 0, @dts_package_location = N'subscriber', @offloadagent = N'false'
GO
In the past, the subscription has been an MSDE subscription interfacing w/SQL 2000.
The distribution agent failed to create temporary files in 'C:\windows\system32' directory. System returned errorcode 5. (Source: MSSQL_REPL, Error number: MSSQL_REPL21100)
Error messages: