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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:22:28+00:00 2026-06-03T14:22:28+00:00

I have a source with 0000-00-00 in a datetime field. When I try to

  • 0

I have a source with 0000-00-00 in a datetime field. When I try to copy that to an SQL destination the error pops up.

Im trying a derived column to fix it. When it’s 0000-00-00 change it to NULL.
Here’s the pic.

enter image description here

Why isn’t it working? I’ve tried changing the 0000-00-00 00:00:00 to 0000-00-00 and still, it won’t work.

  • 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-03T14:22:30+00:00Added an answer on June 3, 2026 at 2:22 pm

    Explanation:

    Try the following expression to resolve the issue. Since your incoming field is of DATETIME data type and you want to ignore all the values that have zeroes in them. You can find the DAY of the given datetime value and check whether if it is zero or not. If it is zero, you need to use the NULL function NULL(DT_DBTIMESTAMP) else you can simply use the field name, which contains the valid date and time value. Then, type cast the whole expression into data type DT_DBTIMESTAMP

    Expression:

    (DT_DBTIMESTAMP)(DAY([FechaHoraCorteAgente]) == 0 ? NULL(DT_DBTIMESTAMP) : [FechaHoraCorteAgente])

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

Sidebar

Related Questions

I have a library that I got from a proprietary source and I'm trying
I have source XMLfiles that come in with multiple root elements and there is
Have a source xml document that uses namespace containing prefixes and a default namespace.
I have a source XML file that is used to create C# files that
I have a source directory that includes a mix of different languages and files.
I have a source code that is needed to be converted by creating classes,
I have this source code from 2001 that I would like to compile. It
I have a SSIS package that runs on a SQL Server 2005 instance that
My team is trying to run a script that is in source control to
I have one source directory in which I am trying to create separate cod

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.