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

  • SEARCH
  • Home
  • 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 9250553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:28:11+00:00 2026-06-18T10:28:11+00:00

I am writing a VB.NET application that moves data from a MS SQL database

  • 0

I am writing a VB.NET application that moves data from a MS SQL database table to an Oracle database table.

A record in the MS SQL DB has a null date. The Oracle db table column is set to allow nulls. When I run the VB.NET application and step through the app, everything works fine until the record with the null date. VB.NET shows the null date as ’12:00 AM’ with no date, just the time.

The Oracle error I get is: ORA-01847: day of month must be between 1 and last day of month

Here is the SQL to pull in the date from the MS SQL DB:

convert(varchar(10),DATE_COLUMN,101) end as 'DATE_COLUMN'

Here is the PL/SQL I have for inserting into the Oracle DB:

to_date('" & tmp_DATE_COLUMN & "','mm/dd/yyyy')

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-18T10:28:12+00:00Added an answer on June 18, 2026 at 10:28 am

    Looks like your tmp_something_DATE variable is of type Date. Problem is that it cannot store NULL/Nothing values in a Date variable. If you try to assign a Date to Nothing, it is really assigned to Date.MinValue, which equals to #12:00:00 AM#. You either need Nullable(Of Date) or use DataTable column values directly.

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

Sidebar

Related Questions

I'm writing a .NET command-line application that will migrate users from an existing database
I'm writing a VB.Net WinForms application that has multiple data girds on any given
I am writing a .NET application that writes data to SQL Server 2008r2. I
I am writing an ASP.NET application that initializes some contextual data based on stuff
I have a basic VB.Net application that gets data from some websites and then
I'm writing a .NET 4.0 application that requires access to a SQL Server (v10.50.1600)
I am writing a .NET WinForms application that needs to display a list of
I'm writing a small .NET application that can produce SWF files, and I need
I'm writing an ASP.net application that uses Windows Identity Foundation. My ASP.net application uses
I currently have an application I'm writing in c# (using .NET) that requires me

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.