Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Money Data Type

Status
Not open for further replies.

PhilEvelyn

Programmer
Feb 17, 2003
67
GB
Sadly I think the answer is "No", but if you don't ask, you don't get!

Once a NULL value in a money column has been given a value, is there ANY way of getting it to store a NULL value again?

And if not, can anyone tell me why I was so stupid as to use a money data type in the first place when I could just have converted the data in the app? (sorry, rhetorical question asked in frustration!).

Thanks
 
Hi,

How r u trying to set the value to NULL.. If u r trying to do it from Query Analyzer then u can write a SQL stmt like this

Update tblname Set moneyfld = NULL where moneyfld is not NULL

or if u r doing from enterprise manager.
just press "ctrl + 0" in the field u want to set to zero

Sunil
 

update t set moneyColumn = null where pkColumn = 4711

or am I missing something?
 
Oops, sorry, doing this from inside the app, which is written in VB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top