• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Empty Cell in Excel to Null Value in SQL

Hello,
I am using DTS to upload an excel spreadsheet into the database. I have several cells that are empty and it gets uploaded as "NULL" value into the database. I want the fields to remain empty in the dba, meaning nothing at all, not for it to read "NULL" in all the empty fields. Can someone help please?
0
JessyRobinson1234
Asked:
JessyRobinson1234
1 Solution
 
Pratima PharandeCommented:
ypu can update the NULL value afterwords with blank
something like this

Update tablename
set col = ""
where col = 'NULL'

0
 
AlokJain0412Commented:
You can Update with this single Action

Update tablename
set col = null
where col = 'NULL'
0
 
JessyRobinson1234Author Commented:
I had to tweak it just a little to:

Update table
set col = ''
where col is NULL
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now