Question : sql server types T-SQL and CLR parameter "@ note" do not match

OK MY FRIEND,
that problem is already solved. Thanks
Now I have this otherError in CREATE FUNCTION for "ConvertirNumerosALetra" because the types T-SQL and CLR parameter "@ note" do not match.

create function ConvertirNumerosALetra (@nota decimal(2,2)) returns nvarchar(500)
external name [Amag.ConvertNumberToText].[ConvertNumberToText.Utilities].GetStringFromNumber;
Related Solutions: sql server 2008 register dll

Answer : sql server types T-SQL and CLR parameter "@ note" do not match

Okay, from the other question you have:

GetStringFromNumber(double value)

That is not the same data type as decimal(2, 2) as the error is saying. You could look at float or real (http://msdn.microsoft.com/en-us/library/ms173773.aspx), but if you need the more precise decimal you can just alter the function's signature.

Note: decimal(2, 2) will allow values .00 to .99. It means 2 digit decimal with both digits being after the period. Hopefully that is what you want.

Okay to fix the issue in the function, you can use the SqlDecimal type.
http://msdn.microsoft.com/en-us/library/ms131092.aspx

Note also it shows that you can use SqlDouble in your function and then that will equate to float in SQL Server.
Random Solutions  
 
programming4us programming4us