TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
prabha
NA
1
2.9k
C# Replication
May 9 2011 10:43 PM
Hi ,
I am doing the replication programatically. It is working fine. But while adding the filter in the replication ,I have the following issue "You must return snapshot,because the snapshot are obsolete".I used the merge pull replication .For the filter i used the following code.
MergeArticle crewArticle = new MergeArticle();
string articleName = "tblAttendance";
// Set the required properties for the tblAttendance article.
crewArticle.ConnectionContext = publisherConnection;
crewArticle.Name = articleName;
crewArticle.DatabaseName = publisherConnection.DatabaseName;
crewArticle.SourceObjectName = articleName;
//crewArticle.SourceObjectOwner = hrSchema;
crewArticle.PublicationName = publicationName;
crewArticle.Type = ArticleOptions.TableBased;
// Define the parameterized filter clause based on Hostname.
crewArticle.FilterClause ="CrewID="+ mergePullSubscription.HostName;
if (!crewArticle.IsExistingObject) crewArticle.Create();
Thanks
Prabha
Reply
Answers (
1
)
How to use class as a data type?
What do you mean by 'Option Strict On' ?