Community discussion forum

convert EMPTY fields to NULL?

  • 8 months ago

    how to insert null to an EMPTY cell in SQL SERVER...

    i.e, in a field, i enter some values and deleted it. so, it is considered as EMPTY field and not null. i need a query to make that field <NULL>

    can anyone help me?

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 7 months ago

    Hi Karan,

    From my experience you can insert the null value to sql server by using "DbNull.Value" or "null". So far it worked for me..

    Regards,

    Pramod.

     

     

     

     

  • 7 months ago

    can u post the query plz

  • 6 months ago

    Hmm, try this..

    update urTable set urField=NULL where urField=''

    Hope I can be of help... ü

Post a reply

Enter your message below

Sign in or Join us (it's free).