Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8515655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:12:30+00:00 2026-06-11T05:12:30+00:00

Im trying to select data from oracle database and show it in DataGridView .

  • 0

I”m trying to select data from oracle database and show it in DataGridView. But it fails. It says Arithmetic operation resulted in an overflow. I’m not using any math operations so where this error can be?
Code snipped:

public MainForm()
{
    InitializeComponent();
    try
    {
        con = new OracleConnection(conStr);
        con.Open();
        query = "select * from CHECKINFO";
        da = new OracleDataAdapter();
        da.SelectCommand = new OracleCommand(query, con);
        dt = new DataTable();
        da.Fill(dt); // error occures here
        dataGridView1.DataSource = dt;
        con.Close();
    }
    catch (OracleException ex)
    {
        MessageBox.Show(ex.Message);
    }
}

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:12:32+00:00Added an answer on June 11, 2026 at 5:12 am

    Try this,

    In properties of your application project, the one with your Main method, set platform target from AnyCPU to X86. Hope it helps. And be sure that this configuration is used in Build -> ConfigurationManager.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load mysql data from my database from a html select
I' trying to get some data from Oracle via ODBC to mySQL database. And
I'm trying to insert a data into oracle database(version 11g xe).But when i'm trying
I am trying to select all data from oracle table where emp_id = emp_id_in
I'm trying to get some data from a remote Oracle Database, so I configured
I am trying to select data from two tables and insert it into another
I'm currently trying to copy data from table into another by using a SELECT
i'm trying the following MySQL query to fetch some data: SELECT m.*, t.* FROM
I am trying to remove duplicate data from my database. I found a nice
I am trying to merge records from an Oracle database table to my local

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.