Error while data comparie
reval_pradeep
Posts: 5
When I was comparing data between 2 database. I was getting following error
" The following error message was returned from the SQL Server:
[131] The size (6000) given to the convert specification 'nvarchar' exceeds the maximum allowed for any data type (4000).
The following SQL command caused the error:
SELECT [SpecElementID], [SpecElementIDLbDependent], [StructureId], convert(nvarchar(6000),[Formula]) COLLATE Latin1_General_BIN , [ParentStructureId]
FROM [dbo].[tbCoElementSpecRefLinkBase] WITH (NOLOCK) ORDER BY [SpecElementID], [SpecElementIDLbDependent], [StructureId] "
and same error occure while comparie text datatype. Anybody could give me a solution
" The following error message was returned from the SQL Server:
[131] The size (6000) given to the convert specification 'nvarchar' exceeds the maximum allowed for any data type (4000).
The following SQL command caused the error:
SELECT [SpecElementID], [SpecElementIDLbDependent], [StructureId], convert(nvarchar(6000),[Formula]) COLLATE Latin1_General_BIN , [ParentStructureId]
FROM [dbo].[tbCoElementSpecRefLinkBase] WITH (NOLOCK) ORDER BY [SpecElementID], [SpecElementIDLbDependent], [StructureId] "
and same error occure while comparie text datatype. Anybody could give me a solution
Comments
Pete
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
The Schema was identical but collation was different between SQL_Latin1_General_CP1_CI_AS and Arabic_100_CI_AS in that 2 tables.
Pradeep
Are you able to send these across?
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569