Ciao a tutti houn problema dovrei inserire un file in un db sql server ed uso il seguente codice:

System.Data.DataSet
l_dataset = new System.Data.DataSet();
NS_Ole.OleDbDataAdapter
l_adapter = new NS_Ole.OleDbDataAdapter ( sQuery, m_oledb );

try
{ // Esegue la Query sulla connessione aperta
l_adapter.Fill(l_dataset);
l_dataset.Tables[0].TableName = "Upload_RefertoDettaglio";
l_dataset.Tables["UPLOAD_REFERTODETTAGLIO"].Rows[0]["REF_File"] = aFile;
NS_Ole.OleDbCommandBuilder l_builder = new NS_Ole.OleDbCommandBuilder ();
l_builder.DataAdapter = l_adapter;
l_adapter.Update(l_dataset,"Upload_RefertoDettagli o");

return true;
}
catch (System.Exception Errore)
{ // Gestione Errore
sErr=Errore.Message ;
return false;
}

ma mi da sempre il seguente errore:No data exists for the row/column.Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.

non ho idea di come fare se conoscete anche altri modi è tutto accetto

grazie mille