Results 1 to 5 of 5

Thread: getting table details using oracle

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    153

    getting table details using oracle

    hi to all,
    i am using the following code for getting the table details.But i giving the error "ORA-00900: invalid SQL statement". the code is


    oledbcon = new OleDbConnection("Provider=OraOLEDB.Oracle;User Id=" + strusername + ";Password=" + strpassword + "");
    oledbcon.Open();

    oledbcmd = new OleDbCommand(query,oledbcon);
    oledbreader = oledbcmd.ExecuteReader();
    while (oledbreader.Read())
    {
    MessageBox.Show(oledbreader[0].ToString());
    }

    oledbreader.Close();
    oledbcon.Close();

    Plz somebody help me to solve the problem.

    thank u
    with thanks and regards
    mmary

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: getting table details using oracle

    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    153

    Resolved Re: getting table details using oracle

    thank u for ur kind help. its really working.thank u very much.


    with thanks and regards
    mmary

  4. #4
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: getting table details using oracle

    If this resolves your issue could you mark the thread as resolved using the thread tools menu.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  5. #5
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: getting table details using oracle

    Hey, could you post what the error was and the solution?

    Jen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width