博客园 :: 首页 ::  ::  ::  :: 管理

2007年4月7日

加上昨天晚上都在研究合并复制的配置。我需要的环境是这样的,服务器端的数据库采用SQL Server 2000.PPC客户端采用的精简数据库是Sql Server Mobile Edition。
      时下大多采用的数据库配合方式基本上是sql server 2005和Sql Server Mobile Edition。其实,我也想这样采用。但是考虑到原有的数据库系统是采用2000的版本,很难让原来的研发人员去花费时间整迁移。
本来,精简数据库要选择sql ce 2.0。但在安装过程中总是无法成功解决Server Tool的安装先觉条件。(可能,跟我安装过VS2005或Sql2005有关,中间我还没有时间测试过没有Vs2005和Sql2005干扰下的安装环境。)
如果要和MSsql2000进行合并复制的操作,安装Sql Server Mobile Edition前必须要做的是安装针对MSsql 2000的sp3和针对sqlce的sp3。只有两个补丁都安装了,Sqlce 3.0的安装程序才能检测出sql 2000已经具备复制组件。
      当这一步结束后,接下来的创建快照文件夹,创建发布,设置访问权限,安全参数,Web同步向导配置,以及最后的编程测试。都可以参考MSDN中的这篇文章。虽然这篇文章针对的是2005版本,但里面提到的术语和概念在Sql server 2000中都能找到对应的。因此,按部就班就可以。
      最后需要注意的是,订阅的步骤可以省略掉不要。在Sql Server 2000 中无法配置符合sql ce的订阅。(至少本人是认为无法配置)。测试是否可以实现合并复制的途径只有编程实现。即编程添加订阅,然后实现同步。
      在测试用例程序时,我们可能会碰到异常。捕获异常消息,它如果是提示快照消息过时,需要重新建立快照之类。这个问题在于代理程序的调度设置上有问题。可能这个快照还没有生成,换句话说代理程序还未被调度。解决它,那就是修改调度的参数。为了最好把调度直接设置为1min/次;
      至此,这个配置就结束.成功了.同步也正常中.

posted @ 2007-04-07 19:19 Paker Liu 阅读(3012) 评论(1) 编辑

SQL Server Mobile System Requirements
Environment Requirements

Development Environment

Microsoft Visual Studio 2005

One of the following operating systems: Microsoft Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional, Windows XP Tablet PC Edition, Windows 2000 Professional SP4 or later versions, Windows 2000 Server SP4 or later versions

Microsoft Internet Explorer 6.0 or later versions required to access SQL Server Mobile Books Online

Microsoft ActiveSync 4.0 or later versions required to debug and deploy applications

Client Environment

Any device that runs Microsoft Windows CE 5.0, Microsoft Windows XP Tablet PC Edition, Windows Mobile 2003 Software for Pocket PC, or Windows Mobile 5.0

From 2 to 3 megabytes (MB) of available storage space, depending on processor type and components installed

Server Environment

Microsoft SQL Server 2000 SP3a or later versions

SQL Server 2005: Intel or compatible Pentium 600 megahertz (MHz) or greater processor (recommended processor speed is 1 gigahertz (GHz) or greater), 256 MB RAM minimum (recommended RAM is 512 MB or more), 250 MB hard disk space

IIS 5.0 or later versions: Supported on 32-bit Windows Server 2003, 32-bit Windows XP, and Windows 2000 SP4; 120 MB of available disk space on the server

Microsoft ActiveSync 4.0 or later versions required when you use Management Studio to manage SQL Server Mobile databases on connected devices

Microsoft Internet Explorer 6.0 or later versions

Note: Microsoft Outlook 98 or a later version is required for synchronization of e-mail, calendar, contacts, tasks, and notes to the desktop or portable computer (Outlook 2003 recommended).

1 SQL Server Mobile supports both remote data access (RDA) and merge replication to the SQL Server system.
2 SQL Server Mobile RDA and merge replication communicate with SQL Server through IIS. You can run IIS and SQL Server on the same computer.
3 This is the device on which your Windows Mobile–based application is deployed.

posted @ 2007-04-07 00:32 Paker Liu 阅读(246) 评论(0) 编辑