G
Guest
hi,
I am using
VisualStudio2003,
Access2003
Vb.Net and ADO.Net for db access.
I get this message when i try to use ExecuteReader method :
IErrorInfo: GetDescription failed with E_FAIL( some hexvalue )
E_FAIL turns out is general failure of some component( accroding to msdn )
Now i tried MSDN it says GetDescription supposed to return description of
error that is generated by database.
This is what I am doing:
I have a table called section
g_AdoCon = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" + db)
//checked the db variable, it is valid path and everything and this
// conenction works in another class fine
If g_AdoCon.State = ConnectionState.Closed Then
g_AdoCon.Open()
End If
m_Command = New OleDbCommand
m_Command.Connection = g_AdoCon
query = "Select * from section where cls_id = 3"
m_Command.CommandText = Query
m_Reader = m_Command.ExecuteReader(CommandBehavior.CloseConnection)
the exception is raised when m_Command.ExecuteReader is executed.
Am really stuck on this, sionce MSDN didn't really help and i have no idea
what that exception means.
Pleas help!
I am using
VisualStudio2003,
Access2003
Vb.Net and ADO.Net for db access.
I get this message when i try to use ExecuteReader method :
IErrorInfo: GetDescription failed with E_FAIL( some hexvalue )
E_FAIL turns out is general failure of some component( accroding to msdn )
Now i tried MSDN it says GetDescription supposed to return description of
error that is generated by database.
This is what I am doing:
I have a table called section
g_AdoCon = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" + db)
//checked the db variable, it is valid path and everything and this
// conenction works in another class fine
If g_AdoCon.State = ConnectionState.Closed Then
g_AdoCon.Open()
End If
m_Command = New OleDbCommand
m_Command.Connection = g_AdoCon
query = "Select * from section where cls_id = 3"
m_Command.CommandText = Query
m_Reader = m_Command.ExecuteReader(CommandBehavior.CloseConnection)
the exception is raised when m_Command.ExecuteReader is executed.
Am really stuck on this, sionce MSDN didn't really help and i have no idea
what that exception means.
Pleas help!