SQL Server CE 2.0 自带了一个配置工具,这是1.0版本中没有的。配置工作基本上可以用这个工具完成。但如果你想知道它到底都干了些什么,可以按照下面的步骤自己做一次。其实那个工具就是完成以下功能。
1) 在c:\inetpub\wwwroot\下建一个目录,比如c:\inetpub\wwwroot\northwind。其实你在别的目录建也是没有问题的,这里只是为了方便。
2) 把 sscesa20.dll 文件从安装目录中拷贝到上面那个目录中。省缺的安装目录应该是:c:\Program Files\Microsoft SQL Server CE 2.0\Server
3) 打开一个命令窗口,执行以下命令:
regsvr32 C:\Inetpub\wwwroot\NorthWind\sscesa20.dll
4) 打开Internet Services Manager 建立名字为'Northwind'的虚拟目录,将其指向 C:\Inetpub\wwwroot\northwind。在 Access Permissions list 中选择 'Execute'。
5) 再来配置额外属性。右键点击 'Northwind',选择 'Properties'
选择 Directory Security 页,在Authentication Methods 选择 Anonymous user account - it is usually something like IUSR_PCNAME. If you are running IIS and the SS CE Server agent on the same PC then we can use the default settings as shown here:
Now let's configure the SQL Server CE Server Agent permissions - we need to configure directory authorisation & file permissions
File Permissions
Even though IIS authenticates the client you still need to configure the NTFS permissions on the 'SSCESA10.DLL'. Using Windows Explorer navigate to the virtual directory you created in step #4 (C:\Inetpub\wwwroot\northwind) - right click the file, choose Properties and click the Security tab. You need the following user permissions:
Administrators - Full Control
System - Full Control
Anonymous Authentication (the IUSR_PCNAME) identified above - Read and Execute permissions
If you are using Integrated Windows Authentication, grant the client's user or group read and execute permissions. Note this is not necessary if you are running IIS and SQL 2000 on the same PC.
Directory Authorisation
Using Windows Explorer navigate to the virtual directory that contains the file we have just set permissions on above - 'C:\Inetpub\wwwroot\northwind' - right click the directory, choose Properties and click the Security tab. You need the following user permissions:
Administrators - Full Control
System - Full Control
Anonymous Authentication (the IUSR_PCNAME) - Modify
Again if you are using Integrated Windows Authentication, 'Modify' for the appropriate client - not necessary if you are running IIS and SQL 2000 on the same PC
That's it then we are done with the desktop configuration.
最后要测试一下配置是否成功
打开一个IE,url输入:
http://192.168.138.88/northwind/SSCESA20.DLL
回车,如果看到显示:
SQL Server CE Server Agent
那就是成功了。恭喜!!!
这里的192.168.138.88是我的机器ip地址,你要换成你的ip。不知道自己的ip?开个命令窗口,输入ipconfig命令就看到了。
打印 | 张贴于 2003-09-15 23:46:00 | Tag:暂无标签
留言反馈
好
好帖
很好帖
确实好帖
少见的好帖
真 TMD 好帖
难得一见的好帖
千年等一回的好帖
好得不能再好的好帖
惊天地且泣鬼神的好帖
让人阅毕击掌三叹的好帖
让人佩服得五体投地的好帖
让人奔走相告曰须阅读的好帖
让斑竹看后决定加精固顶的好帖
让人看后在各论坛纷纷转贴的好帖
让人看后连成人网站都没兴趣的好帖
让人看完后就要往上顶往死里顶的好帖
让人看后不断在各种场合重复引用的好帖
让人一见面就问你看过某某好帖没有的好帖
让人半夜上厕所都要打开电脑再看一遍的好帖
让个读过后都下载在硬盘里详细研究欣赏的好帖
让人走路吃饭睡觉干什么事连做梦都梦到它的好帖
让人翻译成36种不同外语流传国内外世界各地的好帖
让人纷纷唱道过年过节不送礼要送就送某某帖子的好帖
让国家领导人命令将该帖刻在纯金版上当国礼送人的好帖
让网络上纷纷冒出该帖的真人版卡通版搞笑版成人版的好帖
让人在公共厕所里不再乱涂乱化而是纷纷对它引经据典的好帖
让某位想成名的少女向媒体说她与该帖作者发生过性关系的好帖
让人根据它写成小说又被不同导演拍成48个不同版本的电影的好帖
让某名导演跟据此帖改拍的电影在奥斯卡上一连拿了11个奖项的好帖
让人大代表们看完后联名要求根据该帖的内容对宪法做适当修改的好帖
让人为了谁是它的原始作者纷纷地闹上法院打官司要争得它的版权的好帖
让各大学府纷纷邀请该帖作者去就如何发表优秀网络文学为题目演讲的好帖
让人为了该帖而成立了各种学会来研究并为不同的理解争得眼红脖子粗的好帖
让美国警察于今后逮捕人说你有权保持沉默还有权阅读某某帖子要不要啊的好帖
让本拉登躲在山洞里还命令他手下冒着被美军发现的危险去上网下载来阅读的好帖
让萨达姆被捕时被发现他随身携带的除了一把手枪之外还有的就是它的复印件的好帖
让比尔盖茨在懂事会上发给与会者人手一份该帖命令仔细阅读后才讨论其他事宜的好帖
让诺贝儿奖理事会破天荒地因该帖的出现而开会讨论一直决定今后设立最佳帖子奖的好帖
让联合国安理会决定将它译成宇宙语由中国神州六号升空后不断播放看有没有外星人的好帖
让人看完后IE锁死连瑞星诺顿都没法修复只好格式化硬盘重装启动后主页显示的还是它的好帖