G
Guest
Language is C++ and my code is pretty much right out of the documentation
example, yet I'm not ending up with any generated commands. In the following,
assume the relevant objects are members of a form class and this is happening
on the form's load event:
m_SqlConnection = gcnew SqlConnection( strConnection );
m_SqlAdapter = gcnew SqlDataAdapter( strQuery, m_SqlConnection );
m_SqlCommandBuilder = gcnew SqlCommandBuilder( m_SqlAdapter );
m_DataSet = gcnew DataSet();
m_SqlAdapter->Fill( m_DataSet, "SomeTable" );
My dataset is correctly populated; I can see the data both in the debugger
and in the controls I bind to the dataset. My adapter, however, has
"undefined value" for every command except the SelectCommand, which I
provided myself in the constructor with strQuery.
Does anyone know why this might be the case? No exceptions are thrown from
the above code so there's no indication why the thing failed.
example, yet I'm not ending up with any generated commands. In the following,
assume the relevant objects are members of a form class and this is happening
on the form's load event:
m_SqlConnection = gcnew SqlConnection( strConnection );
m_SqlAdapter = gcnew SqlDataAdapter( strQuery, m_SqlConnection );
m_SqlCommandBuilder = gcnew SqlCommandBuilder( m_SqlAdapter );
m_DataSet = gcnew DataSet();
m_SqlAdapter->Fill( m_DataSet, "SomeTable" );
My dataset is correctly populated; I can see the data both in the debugger
and in the controls I bind to the dataset. My adapter, however, has
"undefined value" for every command except the SelectCommand, which I
provided myself in the constructor with strQuery.
Does anyone know why this might be the case? No exceptions are thrown from
the above code so there's no indication why the thing failed.