Remove null value from a specific field from SQL 2005 databse

Answered Remove null value from a specific field from SQL 2005 databse

  • Sunday, September 09, 2012 2:42 AM
     
     
    I HAVE A TABLE NAMED ANIL AND A FIELD IN IT I STATUS AND I WANT TO REMOVE NULL FROM THAT FIELD. I DID IT MANUALLY BUT MY DATABASE IS INCREASING AND FACING TROUBLE TO MANUALLY REMOVE IT

    I am a System Administrator at Vadodara

All Replies

  • Sunday, September 09, 2012 3:19 AM
     
     
    Can you explain how you remove the NULL manually? Do you use a query? If yes, then please post your query.

    ClayM

  • Tuesday, September 25, 2012 1:30 AM
    Moderator
     
     Answered
    Hi Baiju EP, 

    It seems that you want to update the Status with other values, if in this case, you can using T-SQL like below:

    Update ANIL Set STATUS ='the vaule you needed' Where STATUS Is Null

    Thanks,
    Eileen

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.