Why can't I insert data into local database (SQL Compact Edition) with C#?

后端 未结 3 524
青春惊慌失措
青春惊慌失措 2021-01-14 17:23

I am doing a project on Visual Studio. I am using a local database (empty sql server compact edition). I chose Dataset and created my table (Images). It has a primary autoin

3条回答
  •  攒了一身酷
    2021-01-14 17:57

    SqlCeConnection conn = new SqlCeConnection(@"Data Source = c:\FullPath") 
    

    How to get full path: in solution explorer Right click on .Sdf then get fullPath.

提交回复
热议问题