Hi,I've got a bunch of c# code that's supposed to create a replication subscription on the fly, from scratch. It mostly seems to work - certainly it sets up a distribution DB, a publication object and a subscription object under that.However the subscription object it creates does not seem to behave properly. If I right-click on it in SQL Server Management Studio and select properties I get the error:SQL Server is unable to complete the operation.An error occurred while attempting to access the subscription. (Subscription Properties)The subscription does not exist or you do not have sufficient privileges to access the subscription. (Subscription Properties)
Trying to get synchronization status yields:SQL Server is unable to complete the operation.An error occurred while attempting to access the subscription. (View Synchronization Status)The subscription does not exist. (View Synchronization Status)
And finally if I try to re-initialize:Microsoft SQL Server Management Studio could not reinitialize subscription '.\SQLEXPRESS2:Cache'.SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'MY_MACHINE_NAME\SQLEXPRESS'. (Replication.Utilities)
I'm not terribly familiar with replication - just trying to debug something a previous developer left behind. Can anyone help me by letting me know what's wrong with this subscription (it apparently doesn't exist, even though there's a node for it in Management Studio) and/or how I can go about finding out what's wrong with it?Cheers,Matt