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)
 sql error

Author  Topic 

bayas
Starting Member

1 Post

Posted - 2009-08-04 : 04:20:06
Msg 8114, Level 16, State 1, Procedure InserttblInputFromNotes, Line 0
Error converting data type numeric to numeric.

USE [crab]
GO

DECLARE @return_value int

EXEC @return_value = [dbo].[InserttblInputFromNotes]
@client_id = 9,
@r_a_w = 1,
@tier_I_capital = 1,
@tier_II_capital = 1,
@off_bs_risk_weighted_asset = 1,
@general_provision_unclasified = 1,
@specific_provision_classified = 1,
@interest_suspense_account = 1,
@no_of_branches = 300,
@no_of_employees = 345,
@sma = 1111111111,
@substandard = 1111,
@doubtful = 11111111,
@bad_loss = 11111111.11111111,
@classified_loans = 11111111,
@import_business = 111111111,
@export_business = 1111111111.111111,
@eps = 12345678911,
@userid = NULL

SELECT 'Return Value' = @return_value

GO


if give 10 digint then it om but I need to insert more then 18 digit

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-08-04 : 04:38:32
What are the datatype for parameters @bad_loss and @export_business?

DECIMAL has two arguments; first is number of digits in TOTAL, and then number of DIGITS used from total, as decimal part.
If the value you try to assign doesn't meet that criteria you get an error as shown above.



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -