Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: File types Pin
viciouskinid25-May-09 10:19
viciouskinid25-May-09 10:19 
GeneralRe: File types Pin
harold aptroot25-May-09 10:42
harold aptroot25-May-09 10:42 
GeneralRe: File types Pin
viciouskinid25-May-09 19:05
viciouskinid25-May-09 19:05 
GeneralRe: File types Pin
harold aptroot25-May-09 23:42
harold aptroot25-May-09 23:42 
GeneralRe: File types Pin
viciouskinid26-May-09 7:02
viciouskinid26-May-09 7:02 
GeneralRe: File types Pin
harold aptroot26-May-09 7:13
harold aptroot26-May-09 7:13 
GeneralRe: File types Pin
viciouskinid27-May-09 0:25
viciouskinid27-May-09 0:25 
QuestionOracle DB Querry Application Error Pin
al3xutzu0025-May-09 4:07
al3xutzu0025-May-09 4:07 
Hi Guys,
I want to insert in a list view all the Table Names from a Oracle DB. I started by learning how from Syed M Hussain 's post :
A Very Simple Oracle Query Tool[^]

        <br />
using Oracle.DataAccess.Client;<br />
using Oracle.DataAccess.Types;<br />
.....<br />
        static private OracleConnection orcCon;<br />
        private static OracleCommand cmd;<br />
        private static OracleDataAdapter da;<br />
        private static OracleCommandBuilder cb;<br />
        private static DataSet ds;<br />
        private static String sql;<br />
.....<br />
 public static DataTable GetUserTables()<br />
        {<br />
            sql = "SELECT TABLE_NAME FROM USER_TABLES";<br />
            cmd = new OracleCommand(sql, OrcCon);<br />
            cmd.CommandType = CommandType.Text;<br />
            da = new OracleDataAdapter(cmd);<br />
            cb = new OracleCommandBuilder(da);<br />
            ds = new DataSet();<br />
            da.Fill(ds);<br />
<br />
            return ds.Tables[0];<br />
        }<br />
...........<br />
                dtTable = Code.ConectareOracle.GetUserTables();<br />
                for (int i = 0; i < dtTable.Rows.Count; i++)<br />
                {<br />
                    MessageBox.Show(dtTable.Rows[i].ToString());<br />
                }<br />
....<br />

..and the error i get is that da.Fill(ds) has : "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Any ideea?

Kind regards,
Alex

“Be the change you want to see in the world.”

AnswerRe: Oracle DB Querry Application Error Pin
Rajesh Anuhya25-May-09 4:18
professionalRajesh Anuhya25-May-09 4:18 
QuestionDxText for Offline VideoWatermarking Pin
anki12325-May-09 3:49
anki12325-May-09 3:49 
AnswerRe: DxText for Offline VideoWatermarking Pin
Manas Bhardwaj25-May-09 3:53
professionalManas Bhardwaj25-May-09 3:53 
Questioninsert into database with foreach Pin
h_floppy25-May-09 3:44
h_floppy25-May-09 3:44 
AnswerRe: insert into database with foreach Pin
Manas Bhardwaj25-May-09 3:51
professionalManas Bhardwaj25-May-09 3:51 
QuestionHelp Me Pin
Nabende25-May-09 2:55
professionalNabende25-May-09 2:55 
AnswerRe: Help Me Pin
OriginalGriff25-May-09 4:34
mveOriginalGriff25-May-09 4:34 
QuestionSpecial thanks to all members Pin
Nabende25-May-09 2:40
professionalNabende25-May-09 2:40 
AnswerRe: Special thanks to all members Pin
EliottA25-May-09 3:28
EliottA25-May-09 3:28 
QuestionAbort a suspended thread Pin
yesu prakash25-May-09 1:56
yesu prakash25-May-09 1:56 
AnswerRe: Abort a suspended thread Pin
Luc Pattyn25-May-09 2:04
sitebuilderLuc Pattyn25-May-09 2:04 
GeneralRe: Abort a suspended thread Pin
Fahad Sadah25-May-09 2:07
Fahad Sadah25-May-09 2:07 
AnswerRe: Abort a suspended thread Pin
Fahad Sadah25-May-09 2:05
Fahad Sadah25-May-09 2:05 
QuestionDelegates and Parallel.For Pin
Fahad Sadah25-May-09 1:25
Fahad Sadah25-May-09 1:25 
AnswerRe: Delegates and Parallel.For Pin
S. Senthil Kumar25-May-09 3:38
S. Senthil Kumar25-May-09 3:38 
GeneralRe: Delegates and Parallel.For Pin
harold aptroot25-May-09 3:39
harold aptroot25-May-09 3:39 
GeneralRe: Delegates and Parallel.For Pin
S. Senthil Kumar25-May-09 3:52
S. Senthil Kumar25-May-09 3:52 

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.