S
smallfox
Unregistered / Unconfirmed
GUEST, unregistred user!
我运行了如下的代码,为什么不能下载数据呢?
string rdaOleDbConnectString = @"Provider=SQLOLEDB;
Data Source=192.168.1.33;Initial Catalog=pubs";
SqlCeRemoteDataAccess rda = null;
rda = new SqlCeRemoteDataAccess();
//rda.InternetLogin = "sa";
//rda.InternetPassword = "<password>";
rda.InternetUrl = @"http://192.168.1.33/sqlce/sscesa20.dll";
rda.InternetProxyServer = "ppp_peer:81";
rda.LocalConnectionString = @"Data Source=lance_xc.sdf";
try
{
rda.Pull("authors","Select * from authors",rdaOleDbConnectString,RdaTrackOption.TrackingOnWithIndexes,
"ErrorTable");
}
catch(SqlCeException sqlCeEx)
{
}
finally
{
rda.Dispose();
}
}
string rdaOleDbConnectString = @"Provider=SQLOLEDB;
Data Source=192.168.1.33;Initial Catalog=pubs";
SqlCeRemoteDataAccess rda = null;
rda = new SqlCeRemoteDataAccess();
//rda.InternetLogin = "sa";
//rda.InternetPassword = "<password>";
rda.InternetUrl = @"http://192.168.1.33/sqlce/sscesa20.dll";
rda.InternetProxyServer = "ppp_peer:81";
rda.LocalConnectionString = @"Data Source=lance_xc.sdf";
try
{
rda.Pull("authors","Select * from authors",rdaOleDbConnectString,RdaTrackOption.TrackingOnWithIndexes,
"ErrorTable");
}
catch(SqlCeException sqlCeEx)
{
}
finally
{
rda.Dispose();
}
}