When trying to import a SP it fails and says 'must declare the variables @day @month @year'. If I change these to @Day, @Month @Year then it's ok. However this procedure is still giving me problems that lead me to believe it is case sensitive. I had changed the collation of the db to SQL_Latin1_general_CPI_CI_AS which helped for all the tables and most of the SP's except a rogue few. What could be the problem?