Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done

后端 未结 4 689
遥遥无期
遥遥无期 2020-12-07 01:45

I am running following code

/*Fetchinch Last CustID from custMaster*/
int ID = 0;
try
{
     con.Open();
     da = new OleDbDataAdapter(\"select max(Id) from         


        
4条回答
  •  余生分开走
    2020-12-07 02:19

    I had a similar issue when opening a connection with the following connection string:

    Data Source=.\SQLEXPRESS;Initial Catalog=master;Integrated Security=True
    

    Changing Integrated Security=True to Integrated Security=SSPI in the connection string fixed the problem.

提交回复
热议问题