PDA怎么連接PC上的SQL數據庫
我剛剛接觸PDA編程﹐用的是C#+win ce平台﹐請問怎樣在PDA上面連接PC上的SQL 2000數據庫并更新其數據﹖
[解决办法]
rda
[解决办法]
rda put/get
[解决办法]
SqlCeRemoteDataAccess rda = new SqlCeRemoteDataAccess();
string sCon = @ "Provider=SQLOLEDB;Data Source= " + globalvalue.serverip + "; "
+ @ "Initial Catalog=IIMS_xVoltage_Branch;User Id=sa;Password =ABCD ";
rda.InternetUrl = @ "http:// " + globalvalue.serverip + "/Sqlce30/sqlcesa30.dll ";
rda.LocalConnectionString = @ "Data Source =\My Documents\IIMS_xVoltage_Branch.sdf ";
rda.Pull(tablename, "select * from " + tablename,
sCon);
/////
明白了吧?
[解决办法]
http://dev.yesky.com/322/2672322.shtml
这里有一篇文章是专门介绍这个方面的知识的。
或许对你有帮助