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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-11-17 : 07:39:20
|
| Sapna writes "Hi,I am doing a bcp out from a table, which has a field with money datatype. I specify the format file for this field as1 SYBCHAR 0 15 "" 1 priceBut the bcp out data doesnot have the comma seperator at the thousands place. How do I get the commas as well when I do a bcp out???Any help would be very much appreciated.Thanks in advance" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-11-17 : 12:56:53
|
| You can use a query for the bcp and convert the data to character.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2003-11-17 : 13:18:30
|
It's really a presentation layer issue...USE NorthwindGOCREATE TABLE myTable99 (Col1 money)GOINSERT INTO myTable99 (Col1)SELECT 123456789 UNION ALLSELECT 123SELECT CONVERT(varchar(15),Col1,1) FROM myTable99DROP TABLE myTable99GO Brett8-) |
 |
|
|
|
|
|