Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sz1
Aged Yak Warrior
555 Posts |
Posted - 2012-03-22 : 12:49:58
|
HeyI need to create a currency column with a format value of £0.00whats the best way to do this?Create table Fees(FeeID int not null primary key,BandName varchar(40),Fee int smallmoney, foreign key (BandID) references Bands (BandID) |
|
Lamprey
Master Smack Fu Yak Hacker
4614 Posts |
Posted - 2012-03-22 : 13:19:52
|
You'd need to create a string-type column in order to store a formatted string. Formatting should be done in the front-end, so the best way is to NOT do that. |
 |
|
X002548
Not Just a Number
15586 Posts |
|
sz1
Aged Yak Warrior
555 Posts |
Posted - 2012-03-22 : 13:31:29
|
Ok take your point so just raw values in backend, is money type still ok to store though or should that be decimal or int?Ta |
 |
|
X002548
Not Just a Number
15586 Posts |
|
sz1
Aged Yak Warrior
555 Posts |
Posted - 2012-03-22 : 13:44:35
|
Ok thanks money it is. |
 |
|
|
|
|