B
Bitcounter
Hello all,
I don´t know was is wrong on the code (I think all permissions are right on
the maschine)
Has anyone an idea??
Thanks for help.
Greetings
Detlef
private void button1_Click(object sender, System.EventArgs e)
{
if(! System.IO.File.Exists(@"\My Documents\Test.sdf"))
{
SqlCeEngine eng = new SqlCeEngine(@"Data Source=\My Documents\Test.sdf");
eng.CreateDatabase();
}
SqlCeRemoteDataAccess rda = new SqlCeRemoteDataAccess();
string sCon = @"Provider=SQLOLEDB; Data Source=notexp20; Initial
Catalog=Northwind;";
rda.InternetUrl = @"http://notexp20/PDACE/sscesa20.dll";
rda.LocalConnectionString = @"Data Source=\My Documents\Test.sdf";
try
{
rda.Pull("Products", "Select * from Products", sCon,
RdaTrackOption.TrackingOn, "rdaProductsError");
}
catch (SqlCeException SqlCeEx)
{
MessageBox.Show((SqlCeEx.ToString()));
}
rda.Dispose();
I don´t know was is wrong on the code (I think all permissions are right on
the maschine)
Has anyone an idea??
Thanks for help.
Greetings
Detlef
private void button1_Click(object sender, System.EventArgs e)
{
if(! System.IO.File.Exists(@"\My Documents\Test.sdf"))
{
SqlCeEngine eng = new SqlCeEngine(@"Data Source=\My Documents\Test.sdf");
eng.CreateDatabase();
}
SqlCeRemoteDataAccess rda = new SqlCeRemoteDataAccess();
string sCon = @"Provider=SQLOLEDB; Data Source=notexp20; Initial
Catalog=Northwind;";
rda.InternetUrl = @"http://notexp20/PDACE/sscesa20.dll";
rda.LocalConnectionString = @"Data Source=\My Documents\Test.sdf";
try
{
rda.Pull("Products", "Select * from Products", sCon,
RdaTrackOption.TrackingOn, "rdaProductsError");
}
catch (SqlCeException SqlCeEx)
{
MessageBox.Show((SqlCeEx.ToString()));
}
rda.Dispose();