How do I add UK Dates to SQL Server?
This FAQ shows you how to set SQL Server to allow UK Date format using a simple stored procedure call.
This has been troubling me for ages and I finally found the answer. I know there are a lot of people that had been looking for it too.
If you want to make SQL Server accept UK Dates and Deliver UK dates then you need to excecute a stored procedure. Its very easy to do. Just open you SQL Server query analyser and hook in to your server. Then add this code:
----
EXEC sp_defaultlanguage 'username', 'british'
----
Where "username" is the login you use to access your SQL Server from your ASP pages. Then run your query. If it was succesful you will be informed that the users default language has changed.
If you want to change it back then use:
----
EXEC sp_defaultlanguage 'username', 'us_english'
----
And that will do it.
Nic Skitt
Comments
where exactly
Thanks!!!
RE: where exactly
Problem with Host
Great tip - works for my development machine, but my internet SQL Server host will not let me alter his application (shared clients)!
You must me logged in to write a comment.