Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
QuestionHow to Set Widths of Columns in a DataGrid, Anyone? Pin
Khang Nguyen10-Jul-03 6:17
Khang Nguyen10-Jul-03 6:17 
AnswerRe: How to Set Widths of Columns in a DataGrid, Anyone? Pin
Heath Stewart10-Jul-03 9:11
protectorHeath Stewart10-Jul-03 9:11 
GeneralRe: How to Set Widths of Columns in a DataGrid, Anyone? Pin
Khang Nguyen10-Jul-03 11:50
Khang Nguyen10-Jul-03 11:50 
GeneralExport Unmanaged DLL's classes instead of just function using PInvoke Pin
Anonymous10-Jul-03 5:40
Anonymous10-Jul-03 5:40 
GeneralRe: Export Unmanaged DLL's classes instead of just function using PInvoke Pin
leppie10-Jul-03 7:10
leppie10-Jul-03 7:10 
GeneralRe: Export Unmanaged DLL's classes instead of just function using PInvoke Pin
Anonymous10-Jul-03 7:36
Anonymous10-Jul-03 7:36 
GeneralRe: Export Unmanaged DLL's classes instead of just function using PInvoke Pin
leppie10-Jul-03 11:24
leppie10-Jul-03 11:24 
GeneralError Reading from MDB System Table Pin
SD310-Jul-03 5:17
SD310-Jul-03 5:17 
I have problem. When I try to read the records of the 'MSysObjects' table in my access db, I receive this error message:

Run-time error '3112':
Record(s) can't be read; no read permission on 'MSysObjects'

I know that MSysObjects is a system table, but I don't know why I can't read its records.

I write this code:

/**************************************************************************/
m_oleDBConnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+szMDBFileName+";";
m_oleDBConnection.Open();

string t_Clause = "SELECT * FROM MSysObjects WHERE Flags = 0 AND Type = 1";

System.Data.OleDb.OleDbCommand t_Select = new System.Data.OleDb.OleDbCommand(t_Clause, m_oleDBConnection);

try
{
System.Data.OleDb.OleDbDataReader t_Reader = t_Select.ExecuteReader();
}

catch (OleDbException e)
{

string errorMessages = "";

for (int i=0; i < e.Errors.Count; i++)

{
errorMessages += "Index #" + i + "\n" +
"Message: " + e.Errors[i].Message + "\n" +
"NativeError: " + e.Errors[i].NativeError + "\n" +
"Source: " + e.Errors[i].Source + "\n" +
"SQLState: " + e.Errors[i].SQLState + "\n";
}

/**************************************************************************/

Can you tell me please what's the problem ?
Thank you very much for all answer.
QuestionWhy DataSet Not Updated, Any Gurus? Pin
Khang Nguyen10-Jul-03 5:14
Khang Nguyen10-Jul-03 5:14 
AnswerRe: Why DataSet Not Updated, Any Gurus? Pin
Heath Stewart10-Jul-03 9:14
protectorHeath Stewart10-Jul-03 9:14 
GeneralRe: Why DataSet Not Updated, Any Gurus? Pin
Khang Nguyen10-Jul-03 11:54
Khang Nguyen10-Jul-03 11:54 
GeneralC#, Java and memory Pin
albean10-Jul-03 4:52
albean10-Jul-03 4:52 
GeneralRe: C#, Java and memory Pin
Ylis10-Jul-03 5:01
Ylis10-Jul-03 5:01 
GeneralRe: C#, Java and memory Pin
KingTermite11-Jul-03 7:44
KingTermite11-Jul-03 7:44 
Generalaccessing the key buffer Pin
Ylis10-Jul-03 4:51
Ylis10-Jul-03 4:51 
GeneralRe: accessing the key buffer Pin
Heath Stewart10-Jul-03 11:00
protectorHeath Stewart10-Jul-03 11:00 
GeneralRe: accessing the key buffer Pin
Ylis11-Jul-03 12:51
Ylis11-Jul-03 12:51 
GeneralWindows Application Startup Pin
bcox10-Jul-03 4:34
bcox10-Jul-03 4:34 
GeneralCombo Box Pin
totig10-Jul-03 4:23
totig10-Jul-03 4:23 
GeneralDisplay a form in a windows service Pin
Anonymous9-Jul-03 23:38
Anonymous9-Jul-03 23:38 
GeneralWebservice error: underlying connection was closed Pin
BigAndy9-Jul-03 22:39
BigAndy9-Jul-03 22:39 
GeneralRe: Webservice error: underlying connection was closed Pin
Kannan Kalyanaraman10-Jul-03 0:40
Kannan Kalyanaraman10-Jul-03 0:40 
GeneralContextMenu &amp; TextBox Pin
almigrp9-Jul-03 20:27
almigrp9-Jul-03 20:27 
GeneralRe: ContextMenu &amp; TextBox Pin
Heath Stewart10-Jul-03 3:32
protectorHeath Stewart10-Jul-03 3:32 
GeneralRe: ContextMenu &amp; TextBox Pin
KingTermite11-Jul-03 7:49
KingTermite11-Jul-03 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.