I try to deploy my .NET MVC Web Application. I have generated the package. When I try to import in IIS with Web Deploy, the SQL script throws a nice error message due to the datetime format of the destination database.
The format in my source database : 23/10/1960 00:00:00
It seems that my production SQLExpress database “culture” is not the same as my dev database
How can I manage this issue ? I really need to keep the data from my dev database.
In your script that creates the database, add the
COLLATEclause with your explicity collation that you need. Something like:This will force your explicit collation onto the database to conform to your dev database collation. This will override the instance collation (or the
modeldb collation).