I have issue with collation on a stored procedure, I think the issue is in this section but I don't know enough about collation to resolve it, ive tried adding it into various sections but it hasn't worked. If it shouldn't go in this section then I can look at the rest of the query as I it should be added anywhere that I have used the temp table?
The collation issue I have is:
conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS"
create table #tmp_NoRotadayOff (DayOfYear datetime, Rota varchar(10), RotaTemplate varchar(50)) Note: I modified my original answer to remove some of my code, only the bit left was actually affected and caused the issue