I was creating this SQL function from SQL SERVER 2008 R2 to WINDOWS AZURE, but I don\'t how to resolve this problem.
Msg 468, Level 16, State 9, Proce
You have a collation mismatch between the database collation (@RtnValue.Data) and the collation used in Objectives.LearningSysten.
Quickest solution may be to explicitly declare the collation in @RtnValue:
DECLARE @RtnValue table
(
ColumnName VARCHAR(50),
Data VARCHAR(50) COLLATE [insert required collation name]
)
This is a quick fix, however, you should check correct use of collations on database and table column level.