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 2005 Forums
 Transact-SQL (2005)
 error message 457

Author  Topic 

emrealic
Starting Member

3 Posts

Posted - 2008-12-22 : 02:52:56
hi
I have problem part of 'where'


Msg 457, Level 16, State 1, Procedure Proc_Atp_Sevkiyat_Irsaliye_sp3, Line 9

Implicit conversion of varchar value to varchar cannot be performed because the collation of the value is unresolved due to a collation conflict.

Create PROCEDURE [dbo].[Proc]

@param1 varchar(50)= '0',

@param2 varchar(50)= '0'

AS

BEGIN

SELECT .......


FROM dbo.ATP_SEVKIYAT_DETAY INNER JOIN

.......


WHERE ALAN1= @param1 AND ALAN2=@param2


UNION all


SELECT .....FROM ......WHERE ALAN1= @param1 AND ALAN2=@param2

END

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-22 : 03:41:57
Read about the COLLATE keyword in Books Online.

WHERE ALAN1 collate ... = @param1 collate ... AND ALAN2 collate ... = @param2 collate ...


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

emrealic
Starting Member

3 Posts

Posted - 2008-12-22 : 04:50:33
Thanks your answer but your solve not correct for me

And than I rezarch all area in tables and I saw different collate .I changed all of them by default.

Problem solved.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-22 : 04:55:15
Good for you!

You're welcome.


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

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-12-22 : 05:05:23
moved from Data corruption forum

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.1 out!
Go to Top of Page

emrealic
Starting Member

3 Posts

Posted - 2008-12-22 : 05:08:46
thanks for moving
Go to Top of Page
   

- Advertisement -