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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:27:39+00:00 2026-05-29T07:27:39+00:00

I am using SSIS to insert a Excel file into a Sql Server Table.

  • 0

I am using SSIS to insert a Excel file into a Sql Server Table. I believe it uses the Bulk insert, and as a result it doesn’t insert into the ‘CreationDate’ and the ‘ModificationDate’ columns (both of which are computed columns with getdate() as the default).

Is there a way to get around this problem?

Also, just to be clear – both these date columns are not a part of excel. Here is the exact scenario:

My excel has two columns – code and description. My SQL Server table has 4 columns Code, Description, CreationDate, ModificationDate.

So, when the SSIS copies the data, it copies Code and Description, but the CreationDate and ModificationDate (which are SQL Server Computed Columns) are both empty.

  • 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-29T07:27:40+00:00Added an answer on May 29, 2026 at 7:27 am

    You should use a normal column with a default constraint if you want to log creation
    A computed column defined as GETDATE() will change every time you query it.

    It is also impossible for a computed column to not be populated

    So, assuming you mean “normal column with default”, then you need stop sending NULL from SSIS which overrides the default

    This is all demonstrated here:

    CREATE TABLE #foo (
       bar int NOT NULL,
       testCol1Null datetime NULL DEFAULT GETDATE(),
       testCol1NotNull datetime NOT NULL DEFAULT GETDATE(),
       testCol2 AS GETDATE()
       );
    INSERT #foo (bar, testCol1Null) VALUES (1, NULL);
    
    SELECT * FROM #foo;
    WAITFOR DELAY '00:00:00.100';
    SELECT * FROM #foo;
    WAITFOR DELAY '00:00:00.100';
    SELECT * FROM #foo;
    
    DROP TABLE #foo;
    

    Assuming you are using the Bulk Insert Task in SSIS, then you need to set “Keep nulls = off/unchecked” in the options page

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

Sidebar

Related Questions

I'm using SSIS to import data from Excel sheets into SQL Server 2005, the
I am trying to import email communication into a database table using Bulk Insert
I'm trying to upload Excel (2003) file into Sql server 2005. At present we
I am using SSIS to do data transformation from excel to OLEDB SQL. I
I am copying data from MS Access to SQL Server using SSIS. Only one
SQL Server 2008 provides the ability to script data as Insert statements using the
I am using SSIS on SQL Server 2005, VS 2005 SP2. I have created
we have intra-day Data Warehouse loads through the day (using SSIS, SQL Server 2005).
I'd like to use the Bulk Insert Task using a format file to a
I'm using SSIS on SQL Server 2005 and have run across an error. As

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.