We help IT Professionals succeed at work.
Get Started

Easiest way to go through database and convert empty strings to NULL

tmss_it_dept
tmss_it_dept asked
on
259 Views
Last Modified: 2012-05-11
Hello all.  I have a database that has a lot of data in it already,and just realized that some of the empty fields are zero-length strings and some are NULL values because of some of my code in my ASP pages.  I have corrected my code, but now need to fix the data that is already in the database.  What is the easiest way to go though all my tables and replace all empty strings with NULL values?

Thanks in advance,

Mike
Comment
Watch Question
Top Expert 2011
Commented:
This problem has been solved!
Unlock 2 Answers and 6 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE