Skip to content Skip to sidebar Skip to footer

Insert, Update, Delete Are Not Applied On SQL Server CE Database File For Windows Mobile

I am developing a Windows Mobile 6.5 application with C# using Visual Studio 2008, it's connected to a SQL Server CE database. I used this code to insert rows, the value of each c

Solution 1:

Select the releve.sdf database file in your project, go to the Properties section, and make sure Build Action = Content and Copy to Output Directory = Copy if newer.

screenshot

That should be all you need, but if there are other issues you may want to double check the file location:

    private void button_OK_Click_1(object sender, EventArgs e)
    {
        MessageBox.Show(pathDB, "Check Path Location!");
        // ... rest of your code
    }

Post a Comment for "Insert, Update, Delete Are Not Applied On SQL Server CE Database File For Windows Mobile"