SQLScholar
Programmer
Hey all.
I am getting a collation conflict - but every thread i look at it seems to be caused by have 2 DB`s or 2 servers running different collation. Difference is - i am only querying one DB on one server. Here is my code:
Any ideas what this could be?
Many thanks
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
I am getting a collation conflict - but every thread i look at it seems to be caused by have 2 DB`s or 2 servers running different collation. Difference is - i am only querying one DB on one server. Here is my code:
Code:
select
[policy_num], [Optional Life],
[Tax Rate],
Papolicy.[Level Of Cover],
Papolicy.[Range of Cover],
Papolicy.[Monthly_Amount],
Papolicy.Cover_Type,
AnnualNetPrem,
cast(ISNULL(Monthly_Amount,0) as float) - (CAST (ISNULL(AnnualNetPrem,0) as float)) as [derived monthly PA prem],
[last transaction type],
VwFFPAPrems.cost,
VwFFLifePrems.cost
from
Papolicy
inner join
VwFFPAPrems
on
VwFFPAPrems.[range of cover] = papolicy.[range of cover]
and
VwFFPAPrems.[level of cover] = papolicy.[level of cover]
and
VwFFPAPrems.[cover_type] = papolicy.[cover_type]
inner join
VwFFLifePrems
on
VwFFLifePrems.[cover_type] = papolicy.[cover_type]
and
VwFFLifePrems.[level of cover] = papolicy.[level of cover]
WHERE
Papolicy.policy_type= 'FF'
AND
Papolicy.[Life cover]= 'yes'
and
Papolicy.[level of cover] = 7
and
Papolicy.[range of cover] = 'STANDARD'
and
Papolicy.[tax rate] = '0.05'
and
Papolicy.[cover_type] = 'Single'
order by [monthly_amount]
Any ideas what this could be?
Many thanks
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------