当前位置: 代码迷 >> Windows Mobile >> vs2005+sql2000 同步获取数据失败
  详细解决方案

vs2005+sql2000 同步获取数据失败

热度:111   发布时间:2016-04-25 07:54:00.0
【求助】vs2005+sql2000 同步获取数据失败
在模拟器中访问   http://192.168.1.150/sqlce/sscesa20.dll   一切正常,IIS没有设置密码,  

创建数据成功了。pull时提示错误!  

   

    public   FormMain()
    {
      InitializeComponent();  

      //
      //   TODO:   Add   any   constructor   code   after   InitializeComponent   call
      //
                        strDBFile   =   string.Format(@ "{0}\Northwind.sdf ",
                                                Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase));
                        strConnLocal   =   string.Format(@ "Data   Source   =   {0} ",   strDBFile);
    }  

   

            private   string   strConnRemote   =   "Provider=sqloledb;   "
                                                                      +   "Data   Source=192.168.1.150;   "  
                                                                      +   "Initial   Catalog=Northwind;   "
                                                                      +   "User   Id=sa;   "
                                                                      +   "Password=sa;   "  
                                                                      +   "Integrated   Security=SSPI; ";  

            //     The   URL
            private   string   strURL   =
                            "http://192.168.1.150/sqlce/sscesa20.dll ";  

   

            private   void   cmdPull_Click(object   sender,   EventArgs   e)
            {  

   

                            SqlCeRemoteDataAccess     rdaNW   =  
                                  new   SqlCeRemoteDataAccess(strURL,   strConnLocal);
  相关解决方案