string rdaOleDbConnectString = "Data Source=MyServer;Initial Catalog=MyDatabase;User Id=MyUser;Password=MyPassword"; SqlCeRemoteDataAccess rda = null; try { rda = new SqlCeRemoteDataAccess(); rda.InternetLogin = "MyUser"; rda.InternetPassword = "MyPassword"; rda.InternetUrl = "http://www.adventure-works.com/sqlmobile/sqlcesa35.dll"; rda.LocalConnectionString = @"Data Source=\Program Files\SmartDeviceProject8\ssce.sdf"; rda.Pull( "Table", "Select * from Table", rdaOleDbConnectString, RdaTrackOption.TrackingOnWithIndexes, "ErrorTable"); } catch (SqlCeException ex) { MessageBox.Show(ex.Message); } finally { rda.Dispose(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)