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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:12:28+00:00 2026-05-12T00:12:28+00:00

I am running into an error I am having trouble figuring out. I have

  • 0

I am running into an error I am having trouble figuring out.

I have 2 tables and I’m trying to copy data from one to the other (simplified view):

MyTable
-------
ID varchar(11) do not allow nulls
Field01 numeric(6,0) allow nulls

MyTable_Temp
------------
ID varchar(11) do not allow nulls
Field01 numeric(6,0) allow nulls

My query looks like this:

DELETE FROM dbo.MyTable
INSERT INTO dbo.MyTable([ID],[Field01])
SELECT ID, Field01 FROM [dbo].MyTable_Temp WITH (NOLOCK)

However when I run my query it throws this error:

Msg 242, Level 16, State 3, Procedure TRG_MyTable, Line 6
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

If I comment out the Field01 part of the query it runs fine. How can a numeric field throw a datetime error?

  • 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-12T00:12:28+00:00Added an answer on May 12, 2026 at 12:12 am

    It looks to me like you’ve got some kind of trigger on the destination table that’s firing (TRG_MyTable is a giveaway) It’s probably doing something like inserting a timestamped record into an audit table somewhere and is getting confused.

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

Sidebar

Related Questions

I'm having trouble with my application running into out of memory errors. I'm fairly
After changing the import as a from-import i'm running into this error: from datetime
I'm trying to do some C++ exercises, but I'm running into a error on
I'm running into a pain of an error. I have a SherlockFragmentActivity, and at
I'm running into an issue upgrading a project to .Net 4.0...and having trouble finding
We have been having serious trouble getting an application we devlop running with UAC
I've been running into a problem while trying to delete uploaded images. The error
I'm having trouble finding or figuring out how to output a MySQL date field
I'm having a little trouble working out how to display a running total of
I'm having trouble executing the lessc compiler from PHP. I'm using Symfony, and have

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.