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 6799283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:49:49+00:00 2026-05-26T18:49:49+00:00

This migration seem to be really challenging. What i’m trying to do now is

  • 0

This migration seem to be really challenging. What i’m trying to do now is to execute simple queries to a oracle db table:

OBJECTID NOT NULL NUMBER,
DOUBLEVALUE NOT NULL FLOAT(126),
MODTIME DATE

when I use System.Data.OracleClient I can INSERT parametrized queries where parameter values are:

123, 
"123.123", 
DateTime.Now.ToString(). 

and DbParameter.DbTypes are:

DbType.Int32,
DbType.Double,
DbType.Date

If I use Oracle.DataAccess.Client this is not working:

For DOUBLEVALUE I get exception because in my system Convert.ToDouble (which is called by OracleParameter.PreBind_Double) expects that I use comma (“123,123”). I do not want to change all the values in all programs and files. Also OleDb can handle this without problems.

For MODTIME I get “ORA-01830: date format picture ends before converting entire input string.” This works if I change the value to DateTime.Now.ToShortDateString(). Possibly also if I change the parameter type. Also this OleDb can handle.

It seems ridiculous that Oracle.DataAccess.Client cannot handle these really basic situations which System.Data.OracleClient and System.Data.OleDb have no problems. Any recommendations?

Thanks & Best regards -Matti

  • 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-05-26T18:49:50+00:00Added an answer on May 26, 2026 at 6:49 pm

    Your problem with the comma comes from the default culture used by your processing thread. Try forcing en-US culture:

    Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a migration for a simple table that is just used
Ok, this is very weird. I'm trying to do a database migration, and all
I am currently trying to run this migration: class AddDroppedProjectsCountToUser < ActiveRecord::Migration def self.up
This must be something simple but it's driving me nuts! I have a migration
I've been beating myself over the head with this app migration for a few
If I have this in a migration: t.text :body How much text can I
i have this crazy label for each time i create a migration that use
So I'm working on this VB to C# web application migration and came across
This is going to be a really dumb question, I just know it, but
I can't seem to figure this one out by searching Google. I have an

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.