Hey, I'm having an issue that appears to be related to collation, but I'm not sure.
I'm developing against a backup of my production database. The only difference in the SQL Server 2005 environments (that I'm aware of right now) is that my localhost has "SQL_Latin1_General_CP1_CS_AS" (Case sensitive) as the collation, and the production environment has "SQL_Latin1_General_CP1_CI_AS" (case insensitive).
When I execute the stored procedures locally, it is throwing "Must Declare Scalar Variable "@firstName"" errors.
The variable "@FirstName" has been declared.
Now, the database itself IS "SQL_Latin1_General_CP1_CI_AS" as the collation, so why are the stored procedures not running in a case insensitive context?
I've looked into this online, and they say basically that I have to rebuild my SQLserver.
Shouldn't the database context trump the server context for collation?
BTW, the master and tempdb are both "SQL_Latin1_General_CP1_CS_AS" Case Sensitive.