我有一个DBF file可以打开的单曲,Microsoft Visual FoxPro现在我需要将lnauage 数据添加到它Visual Studio 2012。C#
我收到此错误:Invalid authorization specification.
使用此代码:
DialogResult result = MessageBox.Show("Do you wish to submit?", "Potvrzení", MessageBoxButtons.YesNo);
    if (result == DialogResult.Yes)
    {
        odcCON.Open();
        OleDbCommand odc = new OleDbCommand("INSERT INTO netpokl.DBF (Castka,Akce) values(@castka,@akce)");
        odc.Parameters.AddWithValue("@castka",textBox2.Text);
        odc.Parameters.AddWithValue("@akce",test);
        odc.ExecuteNonQuery();
        odcCON.Close();
    }
OleDbConnection 是这样的:
 OleDbConnection odcCON = new OleDbConnection(" Provider=SQLOLEDB;Data Source=\\SERVER\\Transfer\netpokl.DBF");