3
Answers

how to clear database SQL server 2005

Loeurt

Loeurt

15y
5.3k
1
I'm a new learner..Please our member tell me how to write script to Clear data in a specific column ?
Example In table TblStudent(ID, Name, Sex,Address)...
I want to Clean all record in column address..Please help me..
( I Use Sqlserver 2005 databae and C# 2005 application)
Answers (3)
0
Albertto Lie

Albertto Lie

NA 309 0 15y
maybe this help..

 update TblStudent set address = null

this will hit all record because no criteria given.
Accepted
0
Loeurt

Loeurt

NA 5 10.5k 15y
thank you so much..
0
Subramanyam Rompicherla

Subramanyam Rompicherla

NA 371 186k 15y
Hi, below script will be helpful for this problem use the Update command for clean a particular column data. "Update your-tablename set delete-column = null;" if you have any issues please let me know