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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:49:16+00:00 2026-06-11T00:49:16+00:00

I am using SSIS to move excel data to a temp sql server table

  • 0

I am using SSIS to move excel data to a temp sql server table and from there to the target table.
So my temp table consists of only varchar columns – my target table expects money values for some columns. In my temp table the original excel columns have a formula but leave an empty cell on some rows which is represented by the temp table with an empty cell as well. But when I cast one of these columns to money these originally blank cells become 0,00 in the target column.

Of course that is not what I want, so how can I get NULL values in there? Keeping in mind that it is possible that a wanted 0,00 shows up in one of these columns.

I guess I would need to edit my temp table to turn the empty cells to NULL. Can I do this from within a SSIS package or is there a setting for the table I could use?

thank you.

  • 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-11T00:49:18+00:00Added an answer on June 11, 2026 at 12:49 am

    For existing data you can write a simple script that updates data to NULL where empty.

    UPDATE YourTable SET Column = NULL WHERE Column = ''
    

    For inserts you can use NULLIF function to insert nulls if empty

    INSERT INTO YourTable (yourColumn)
    SELECT NULLIF(sourceColum, '') FROM SourceTable
    

    Edit: for multiple column updates you need to combine the two solutions and write something like:

    UPDATE YourTable SET 
    Column1 = NULLIF(Column1, '')
    , Column2 = NULLIF(Column2, '') 
    WHERE Column1 = '' OR Column2 = '' 
    

    etc

    That will update all

    • 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 copying data from MS Access to SQL Server using SSIS. Only one
I am using SSIS to do data transformation from excel to OLEDB SQL. I
I am using SSIS (SQL Server 2008) to lookup values from a table. I
I am using SSIS to insert a Excel file into a Sql Server Table.
I'm trying to move a table into SQL Azure using SSIS. I have an
When using SSIS to load data from a source table, we have a OLE
I am currently using SSIS to read the data from a table, modify a
We are using SQL Server 2000 and have to move data across servers to
I am using SSIS to copy data from a table in Oracle to a

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.