D
david.brunning
I have a C# application in which I am allowing users that are members
of sysadmins on SQL Server to create publications. The first thing
that happens is the application sets up a loal distributor on the SQL
server if one doesn't exist and then tries to set up a merge
publication.
The command I am running is:
exec DBName..sp_addmergepublication
@publication = N'COL01',
@description = N'Merge publication (COL01) configured against
DBName',
@retention = 120,
@sync_mode = N'character',
@allow_push = N'true',
@allow_pull = N'true',
@allow_anonymous = N'true',
@enabled_for_internet = N'false',
@centralized_conflicts = N'true',
@dynamic_filters = N'true',
@snapshot_in_defaultfolder = N'false',
@alt_snapshot_folder = N'\\laptop022\repldata',
@compress_snapshot = N'false',
@ftp_port = 21,
@ftp_login = N'anonymous',
@conflict_retention = 120,
@keep_partition_changes = N'true',
@allow_subscription_copy = N'false',
@allow_synctoalternate = N'false',
@validate_subscriber_info = N'SUSER_SNAME()',
@add_to_active_directory = N'false',
@max_concurrent_merge = 0,
@max_concurrent_dynamic_snapshots = 0
The result is a SqlException: A severe error occurred on the current
command. The results,
if any, should be discarded.
If I run the same query through Query Analyzer using the same user
credentials the publication is created OK and I can add articles to it
etc.
I am running SQL Server Developer Edition (For now) with SP3a applied
on Windows XP with SP2 applied. I have run this application
successfully on many other machines running developer edition, standard
edition, personal edition and enterprise edition in my own organisation
and in client organisations and this is the first time I have seen this
error.
Any help gratefully received.
of sysadmins on SQL Server to create publications. The first thing
that happens is the application sets up a loal distributor on the SQL
server if one doesn't exist and then tries to set up a merge
publication.
The command I am running is:
exec DBName..sp_addmergepublication
@publication = N'COL01',
@description = N'Merge publication (COL01) configured against
DBName',
@retention = 120,
@sync_mode = N'character',
@allow_push = N'true',
@allow_pull = N'true',
@allow_anonymous = N'true',
@enabled_for_internet = N'false',
@centralized_conflicts = N'true',
@dynamic_filters = N'true',
@snapshot_in_defaultfolder = N'false',
@alt_snapshot_folder = N'\\laptop022\repldata',
@compress_snapshot = N'false',
@ftp_port = 21,
@ftp_login = N'anonymous',
@conflict_retention = 120,
@keep_partition_changes = N'true',
@allow_subscription_copy = N'false',
@allow_synctoalternate = N'false',
@validate_subscriber_info = N'SUSER_SNAME()',
@add_to_active_directory = N'false',
@max_concurrent_merge = 0,
@max_concurrent_dynamic_snapshots = 0
The result is a SqlException: A severe error occurred on the current
command. The results,
if any, should be discarded.
If I run the same query through Query Analyzer using the same user
credentials the publication is created OK and I can add articles to it
etc.
I am running SQL Server Developer Edition (For now) with SP3a applied
on Windows XP with SP2 applied. I have run this application
successfully on many other machines running developer edition, standard
edition, personal edition and enterprise edition in my own organisation
and in client organisations and this is the first time I have seen this
error.
Any help gratefully received.