all groups > sql server replication > january 2007 >
You're in the

sql server replication

group:

Upload only for mobile device



Upload only for mobile device luke
1/10/2007 6:39:59 PM
sql server replication: Hi,

I wonder where can I set the UPLOAD ONLY parameter in the following codes in
CE (VB.Net CF), or where I should change the settings in the SQL server?

Try
Dim repl As New SqlCeReplication()
repl.InternetUrl = "http://developer/snapshot/sqlcesa30.dll"

repl.Publisher = "DEVELOPER"
repl.PublisherDatabase = "MyDB"
repl.PublisherSecurityMode = SecurityType.NTAuthentication
repl.Publication = "MyPub"
repl.Subscriber = "MySub"
repl.InternetLogin = "administrator"
repl.InternetPassword = "somewhere"
repl.SubscriberConnectionString = _
"Data Source='" + filename + "';Password='';" _
& "Max Database Size='128';Default Lock Escalation ='100';"

'repl.AddSubscription(AddOption.CreateDatabase)

repl.Synchronize()
Return True
Catch ex As Exception
MsgBox(Err.Description)
Return False
End Try


Thanks,

Luke


Re: Upload only for mobile device tdziemidowicz NO[at]SPAM gmail.com
1/15/2007 5:27:42 AM
Hi

There is no way to do this in code. In publication propertis there is
also no option for this.
You can do this by replication filter. Just add to Filter table whith
where statment like '1=2' (it shuld always have false value).

Tomek

[quoted text, click to view]
Re: Upload only for mobile device Hilary Cotter
1/15/2007 9:56:48 AM
Set ExchangeType to upload.

--
Hilary Cotter

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

AddThis Social Bookmark Button