Different Default Date format for 2 SQL Server Instances
The ASP web site client is likely set up different. Go to that PC, open
up QA, and run the example above. The problem is that you are not using
a portable date format and are bound to run into these types of
problems. If you get rid of the hyphens in the date parameter, that will
probably fix the issue. Since you cannot easily change the code
executing the date procedure you wrote, why not just change the
procedure itself to strip the hyphens out using Set @MyDate =
REPLACE(@MyDate, '-', '')
--
David Gugick - SQL Server MVP
Quest Software
|