怎么样同步助手怎么样数据

最近访问:
05-13 21:38
我的电脑上的数据怎么不同步呢?提示的某段时间的最高价格和最低价格都是错的,。我该怎么办?
发贴请遵守
创建者:THSPM2013
中线不好说 短线可以高抛
你的问题就有毛病,买了第2天就涨那是神仙,不跌破我的止损,我就持有,我目前的股票还没有亏损过。。。
Copyright(C)Hithink RoyalFlush Information Network Co.,Ltd.查看: 7908|回复: 4
如何从Google服务器中删除Chrome同步数据?
RT,就是Chrome同步在Google服务器上的数据,想在服务器上清空这些数据然后重新同步,怎么做?
QQ截图31.png (30.5 KB, 下载次数: 1)
10:04 上传
登录谷歌账户。下面的地址。选择左边的''信息中心''。然后就找到''Chrome 同步''。就可以删除Chrome 同步数据啦。
photo510 发表于
登录谷歌账户。下面的地址。选择左边的''信息中心''。然后就找到''Chrome 同步''。就可以删除Chrome 同步数 ...
QQ截图30.png (9.63 KB, 下载次数: 1)
11:32 上传
是这个吗?这个试过了,只是从本地删除账户和数据,但是服务器上还在,再次登录同样的Google账户又会同步回来了
倾恋三生 发表于
是这个吗?这个试过了,只是从本地删除账户和数据,但是服务器上还在,再次登录同样的Google账户又会同 ...
首先你要在本地chrome浏览器那里退出谷歌账号。也就是取消同步。
然后关闭本地chrome浏览器,重新打开本地chrome浏览器。再访问上面的网站,删除谷歌账户中''chrome 的同步数据‘’。过一会才会清空的(因为网络有延迟的)。过一会再访问那个网站应该就显示没有chrome数据啦。在此期间不能用chrome的同步功能。否则又会自动同步啦(即本地chrome浏览器要一直处于不同步状态)
photo510 发表于
首先你要在本地chrome浏览器那里退出谷歌账号。也就是取消同步。
然后关闭本地chrome浏览器,重新打开 ...
ok,成功了,非常感谢
Copyright & KaFan & All Rights Reserved.
Powered by Discuz! X3.1( 苏ICP备号 ) GMT+8,如何: 以异步方式同步数据(以编程方式)
如何: 以异步方式同步数据(以编程方式)
SQL Server 2008 R2
本主题将介绍如何使用
类以异步方式同步订阅。 异步的数据同步允许应用程序在进行同步的同时执行其他操作。 有关使用 SqlServerCe 命名空间的详细信息,请参阅 SqlServerCe 命名空间参考文档。
对象。 必须在所有方法之外声明此对象,以便可以访问该对象。
private SqlCeR
在启动同步的方法内,创建
对象的实例,然后设置与发布服务器同步所必需的属性。
this.repl = new SqlCeReplication();
repl.InternetUrl = "http://www./sqlmobile/sqlcesa35.dll";
repl.InternetLogin = "MyInternetLogin";
repl.InternetPassword = "&password&";
repl.Publisher = "MyPublisher";
repl.PublisherDatabase = "MyPublisherDatabase";
repl.PublisherLogin = "MyPublisherLogin";
repl.PublisherPassword = "&password&";
repl.Publication = "MyPublication";
repl.Subscriber = "MySubscriber";
repl.SubscriberConnectionString = "Data Source=MyDatabase.sdf";
调用 BeginSynchronize 方法。 这将返回一个 IAsyncResult 对象。 调用 BeginSynchronize 时,必须传入一个 AsyncCallback 事件处理程序和
对象。 同步完成时将触发 AsyncCallback 事件。 您还可以为 OnStartTableUpload、OnStartTableDownload 和 OnSynchronization 事件传入事件处理程序。
IAsyncResult ar = repl.BeginSynchronize
(new syncCallback(this.SyncCompletedCallback),
new OnStartTableUpload(this.OnStartTableUploadCallback),
new OnStartTableDownload(this.OnStartTableDownloadCallback),
new OnSynchronization(this.OnSynchronizationCallback), repl);
唯一必需的事件是 AsyncCallback,该事件将 IAsyncResult 作为唯一的参数。
public void SyncCompletedCallback(IAsyncResult ar)
OnStartTableUpload
和 OnStartTableDownload 事件处理程序都将 IAsyncResult 和表名称(字符串)作为参数。
public void OnStartTableUploadCallback(IAsyncResult ar, string tableName)
public void OnStartTableDownloadCallback(IAsyncResult ar,string tableName)
OnSynchronization
事件处理程序将 IAsyncResult 和一个表示同步完成百分比的整数作为参数。
public void OnSynchronizationCallback(IAsyncResult ar, int percentComplete)
在 AsyncCallback 事件处理程序内,使用传入的
对象和 IAsyncResult 对象调用
SqlCeReplication repl = (SqlCeReplication)ar.AsyncS
repl.EndSynchronize(ar);
此示例说明如何实现异步数据同步。 在此示例中,应用程序使用 SyncStatus 在同步期间更新用户界面,以便用户了解同步进度。 无论何时触发同步事件以及在每次上载和下载表时,都将更新用户界面。 同步完成时,此应用程序从 __sysMergeSubscriptions 表获得上次成功同步的时间,并显示结果。
public class MyForm : Form
private string tableN
private int
private SyncStatus eventS
private SqlCeR
private EventHandler myUserInterfaceUpdateE
internal enum SyncStatus
PercentComplete,
BeginUpload,
BeginDownload,
SyncComplete
public MyForm()
// InitializeComponent();
this.myUserInterfaceUpdateEvent = new EventHandler(MyUserInterfaceUpdateEvent);
public void MyUserInterfaceUpdateEvent(object sender, System.EventArgs e)
switch (this.eventStatus)
case SyncStatus.BeginUpload:
//this.labelStatusValue.Text = "Began uploading table : " + tableN
case SyncStatus.PercentComplete:
//this.labelStatusValue.Text = "Sync with SQL Server is " + percentage.ToString() + "% complete.";
case SyncStatus.BeginDownload:
//this.labelStatusValue.Text = "Began downloading table : " + tableN
case SyncStatus.SyncComplete:
//this.labelStatusValue.Text = "Synchronization has completed successfully";
//this.labelLastSyncValue.Text = GetLastSuccessfulSyncTime().ToString();
public void SyncCompletedCallback(IAsyncResult ar)
SqlCeReplication repl = (SqlCeReplication)ar.AsyncS
repl.EndSynchronize(ar);
repl.SaveProperties();
this.eventStatus = SyncStatus.SyncC
catch (SqlCeException e)
MessageBox.Show(e.Message);
// NOTE: If you want to set Control properties from within this
// method, you must use Control.Invoke method to marshal
// the call to the UI otherwise you might deadlock your
// See Control.Invoke documentation for more information
this.Invoke(this.myUserInterfaceUpdateEvent);
public void OnStartTableUploadCallback(IAsyncResult ar, string tableName)
this.tableName = tableN
this.eventStatus = SyncStatus.BeginU
// NOTE: If you want to set Control properties from within this
// method, you must use Control.Invoke method to marshal
// the call to the UI otherwise you might deadlock your
// See Control.Invoke documentation for more information
this.Invoke(this.myUserInterfaceUpdateEvent);
public void OnSynchronizationCallback(IAsyncResult ar, int percentComplete)
this.percentage = percentC
this.eventStatus = SyncStatus.PercentC
// NOTE: If you want to set Control properties from within this
// method, you must use Control.Invoke method to marshal
// the call to the UI otherwise you might deadlock your
// See Control.Invoke documentation for more information
this.Invoke(this.myUserInterfaceUpdateEvent);
public void OnStartTableDownloadCallback(IAsyncResult ar, string tableName)
this.tableName = tableN
this.eventStatus = SyncStatus.BeginD
// NOTE: If you want to set Control properties from within this
// method, you must use Control.Invoke method to marshal
// the call to the UI otherwise you might deadlock your
// See Control.Invoke documentation for more information
this.Invoke(this.myUserInterfaceUpdateEvent);
private void ButtonSynchronize_Click(object sender, System.EventArgs e)
this.repl = new SqlCeReplication();
repl.SubscriberConnectionString = "Data Source=Test.sdf";
if (false == File.Exists("Test.sdf"))
repl.AddSubscription(AddOption.CreateDatabase);
repl.PublisherSecurityMode = SecurityType.DBA
repl.Publisher = "MyPublisher";
repl.PublisherLogin = "PublisherLogin";
repl.PublisherPassword = "&Password&";
repl.PublisherDatabase = "AdventureWorksDW";
repl.Publication = "AdventureWorksDW";
repl.InternetUrl = "http://www./sqlmobile/sqlcesa35.dll";
repl.InternetLogin = "MyInternetLogin";
repl.InternetPassword = "&Password";
repl.Subscriber = "MySubscriber";
repl.LoadProperties();
IAsyncResult ar = repl.BeginSynchronize(
new AsyncCallback(this.SyncCompletedCallback),
new OnStartTableUpload(this.OnStartTableUploadCallback),
new OnStartTableDownload(this.OnStartTableDownloadCallback),
new OnSynchronization(this.OnSynchronizationCallback),
catch (SqlCeException ex)
MessageBox.Show(ex.Message);
public DateTime GetLastSuccessfulSyncTime()
DateTime localDateT
SqlCeConnection conn = null;
SqlCeCommand cmd = null;
conn = new SqlCeConnection("Data Source = Test.sdf");
conn.Open();
cmd = conn.CreateCommand();
mandText = "SELECT LastSuccessfulSync FROM __sysMergeSubscriptions " +
"WHERE Publication=@publication";
cmd.Parameters.Add("@publication", SqlDbType.NVarChar, 4000);
cmd.Parameters["@publication"].Value = "AdventureWorksDW";
//Note: LastSuccessfulSync is stored in local time, not UTC time
localDateTime = (DateTime)cmd.ExecuteScalar();
return localDateT
conn.Close();
本文是否对您有所帮助?
需要更多代码示例
翻译需要改进
(1500 个剩余字符)
感谢您的反馈
页面加载速度够快吗?
您喜欢网页的设计吗?
请告诉我们更多意见

我要回帖

更多关于 同步助手怎么样 的文章

 

随机推荐