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.
Author |
Topic |
emrealic
Starting Member
3 Posts |
Posted - 2008-12-22 : 02:52:56
|
hiI have problem part of 'where'Msg 457, Level 16, State 1, Procedure Proc_Atp_Sevkiyat_Irsaliye_sp3, Line 9Implicit 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'ASBEGINSELECT ....... FROM dbo.ATP_SEVKIYAT_DETAY INNER JOIN ....... WHERE ALAN1= @param1 AND ALAN2=@param2 UNION allSELECT .....FROM ......WHERE ALAN1= @param1 AND ALAN2=@param2END |
|
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" |
|
|
emrealic
Starting Member
3 Posts |
Posted - 2008-12-22 : 04:50:33
|
Thanks your answer but your solve not correct for meAnd than I rezarch all area in tables and I saw different collate .I changed all of them by default.Problem solved. |
|
|
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" |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2008-12-22 : 05:05:23
|
moved from Data corruption forum___________________________________________________________________________Causing trouble since 1980Blog: http://weblogs.sqlteam.com/mladenpSpeed up SSMS development: www.ssmstoolspack.com <- version 1.1 out! |
|
|
emrealic
Starting Member
3 Posts |
Posted - 2008-12-22 : 05:08:46
|
thanks for moving |
|
|
|
|
|