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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Conversion error

Author  Topic 

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-09-21 : 02:07:17
When I try to insert a record to a money field in database it gives this error...what shouls be done to over come this error

Server: Msg 8152, Level 16, State 9, Line 3
String or binary data would be truncated.
The statement has been terminated.

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-09-21 : 02:11:21
data size you're trying to insert exceeds what was set for the field,
compare your field type and size, and data size
Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-09-21 : 02:18:38
The field is money field and iam trying to insert 12 and 30 as values
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-09-21 : 02:33:06
12 and 30 are money data type as well?

i think this is not the problem (i tried it and it worked), your record have other fields? have you checked them also?

--edit
can you provide your sql statement?
Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-09-21 : 02:41:55
Yes I got it thanks..there was one field which was char 1 and i was trying to insert values with 2 char...thanks a lot
Go to Top of Page
   

- Advertisement -