﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>German/Spanish SQL Server installation problems</title><link>http://www.aspplayground.net/forum/</link><description /><copyright>(c) ASP Playground Support Forum</copyright><ttl>30</ttl><item><title>German/Spanish SQL Server installation problems (Samuel)</title><description>  &lt;font color="#cc0000"&gt;&lt;font size="4"&gt;Q:&lt;/font&gt;&lt;/font&gt; When I install the software on the a German/Spanish SQL server, I get a lot of SQL errors about datetime value conversion, similar to the following:  &lt;br&gt; &lt;blockquote class="quote"&gt;&lt;div style="width:50%;font-weight:bold; padding-bottom:4px;"&gt;&lt;/div&gt;converting datatype char to date-time, value out of range&lt;/blockquote&gt;  &lt;br&gt;  &lt;br&gt; &lt;font color="#006600"&gt;&lt;font size="4"&gt;A:&lt;/font&gt;&lt;/font&gt;In our software when we communicate with the database or whenever we need to use date literals, we standardize the format to ISO-8601 datetime format: &lt;b&gt;yyyy'-'MM'-'dd HH:mm:ss &lt;/b&gt;However, certain versions of the SQL server do not understand this format, and so far they have been the German and Spanish versions.  &lt;br&gt;  &lt;br&gt; &lt;a href="http://www.aspplayground.net/forum/showProfile.aspx?memid=4047" target="_blank"&gt;Wolfram&lt;/a&gt; provided the following info that will solve this problem on the server side without having to modify our software at all (I slightly modified the info he provided):  &lt;br&gt;  &lt;br&gt; &lt;p align="center"&gt;&lt;font size="5"&gt;Solution &lt;/font&gt;  &lt;br&gt; &lt;/p&gt; &lt;br&gt; When creating a new database on the SQL Server, it takes the default country settings - also when creating a new (security) user for the forum db. This means when creating the forum with the 'SQL Server Enterprise Manager' in a German environment, the 'datetime' fields of the tables will act in the format 'dd.MM.yyyy HH:mm:ss' -&amp;nbsp;but the forum sw tries to write date/time information just like 'yyyy-MM-dd HH:mm:SS' - an exception is thrown.   &lt;br&gt;  &lt;br&gt; To solve this problem, you &lt;b&gt;have to change the default language of the (security) db user access&amp;nbsp;to 'english' only&lt;/b&gt;. Here's the procedure to start a new installation if you are using the German version of the SQL Server:   &lt;br&gt; &lt;ul&gt;&lt;li&gt;start 'SQL Server Enterprise Manager' &lt;li&gt;select the sql server &lt;li&gt;select 'database': create a new database (example: 'dbForum') &lt;li&gt;select 'security / user': create a new database user (example: 'dbAdminForum') with 'SQL-Server authentification' &lt;li&gt;change 'Database' to the new database&amp;nbsp; name (example: 'dbForum') &lt;li&gt;&lt;b&gt;change 'Language' to 'English'&lt;/b&gt; &lt;li&gt;&amp;nbsp;ignore the message box &lt;li&gt;select the new database (example: 'dbAdminForum') &lt;li&gt;add the new user to your database an select 'db_owner', 'db_accessadmin', 'db_securityadmin', 'db_ddladmin', 'db_backupoperator', 'db_datareader', 'db_datawriter' (actually you can get by with just &lt;i&gt;'db_datareader' and 'db_datawriter'&lt;/i&gt;) &lt;li&gt;set the database permissions for the user (right click the new database entry, under 'Properties') &lt;li&gt;start 'SQL Query Analyser' for the new database &lt;li&gt;open the sql create script (for example: '2.5.5Unicode_Full.sql') &lt;li&gt;with F5 the script executes &lt;li&gt;close SQL Query Analyser and SQL Server Enterprise Manager &lt;li&gt;change the 'masterinclude.aspx' entries for&amp;nbsp;the forum &lt;li&gt;start the 'default.aspx' in your forum folder &lt;/ul&gt; &lt;br&gt;  </description><link>http://www.aspplayground.net/forum/fb.ashx?m=388578</link><pubDate>Fri, 01 Jul 2005 11:38:54 GMT</pubDate></item></channel></rss>
