<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MassDataHandler Work Item Rss Feed</title><link>http://www.codeplex.com/WorkItem/List.aspx?ProjectName=MassDataHandler</link><description>MassDataHandler Work Item Rss Description</description><item><title>Commented Issue: Problem with Non-nullable nvarchar columns</title><link>http://www.codeplex.com/MassDataHandler/WorkItem/View.aspx?WorkItemId=9008</link><description>We are having trouble with a database table that contains non-nullable nvarchar columns. When you try to load data with the InsertManager, an exception is thrown in TableBase.CreateTableObjectFromDatabase.&lt;br /&gt;&lt;br /&gt;What seems to be happening is&amp;#58;&lt;br /&gt;&lt;br /&gt;    &amp;#42; The routine is trying to load all of the required fields into a dictionary&lt;br /&gt;    &amp;#42; The SQL query to find the columns returns duplicate rows because nvarchar and sysname have the same &amp;#34;systemtypeid&amp;#34;&lt;br /&gt;    &amp;#42; The routine tries to add the column to the StringDictionary twice, which throws an exception&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Is there any possibility that this will get fixed&amp;#63; Could I submit a patch&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: ondrejsv ** &lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I came across this bug also but when I tried to get existing rows in a table with an nvarchar column. The exception being thrown was coming from the CreateTableObjectFromDatabase method and the framework was added the same value twice.&lt;/p&gt;&lt;p&gt;Fortunately, this bug is very easy to fix.&lt;/p&gt;&lt;p&gt;Open the DateUtilities.cs, find the GetColumnSchemaInfo method and change the SQL in the first line to this&amp;#58;&lt;/p&gt;&lt;p&gt;        string strSql &amp;#61; &amp;#64;&amp;#34;&lt;br /&gt;          select&lt;br /&gt;            C1.Name as &amp;#34;&amp;#34;ColumnName&amp;#34;&amp;#34;, &lt;br /&gt;            TP.name as &amp;#34;&amp;#34;SystemTypeName&amp;#34;&amp;#34;, &lt;br /&gt;            C1.is_Nullable, &lt;br /&gt;            C1.max_length, &lt;br /&gt;            C1.is_Identity &lt;br /&gt;          from Sys.tables T1, Sys.columns C1, Sys.types TP&lt;br /&gt;          where&lt;br /&gt;            C1.object_Id &amp;#61; T1.object_id&lt;br /&gt;            and C1.user_type_id &amp;#61; TP.user_type_id&lt;br /&gt;          and T1.Name &amp;#61; &amp;#39;&amp;#34; &amp;#43; strTableName &amp;#43; &amp;#64;&amp;#34;&amp;#39;&lt;br /&gt;          order by C1.name&lt;br /&gt;        &amp;#34;&amp;#59;&lt;/p&gt;&lt;p&gt;The only change is using user_type_id instead of system_type_id to join sys.columns and sys.types to get the type for a column. System_type_id is not a primary key of the sys.types view and beside nvarchar type there is one more row with the same id &amp;#40;sysname type&amp;#41;, hence the loaded schema was incorrect.&lt;/p&gt;</description><author>ondrejsv</author><pubDate>Wed, 13 Aug 2008 07:05:24 GMT</pubDate><guid isPermaLink="false">Commented Issue: Problem with Non-nullable nvarchar columns 20080813070524A</guid></item><item><title>CREATED ISSUE: Problem with Non-nullable nvarchar columns</title><link>http://www.codeplex.com/MassDataHandler/WorkItem/View.aspx?WorkItemId=9008</link><description>We are having trouble with a database table that contains non-nullable nvarchar columns. When you try to load data with the InsertManager, an exception is thrown in TableBase.CreateTableObjectFromDatabase.

What seems to be happening is:

    * The routine is trying to load all of the required fields into a dictionary
    * The SQL query to find the columns returns duplicate rows because nvarchar and sysname have the same "systemtypeid"
    * The routine tries to add the column to the StringDictionary twice, which throws an exception


Is there any possibility that this will get fixed? Could I submit a patch? </description><author>enicholson</author><pubDate>Mon, 19 Mar 2007 15:34:19 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Problem with Non-nullable nvarchar columns 20070319033419P</guid></item><item><title>CREATED ISSUE: Make database install script more robust</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=MassDataHandler&amp;WorkItemId=2910</link><description>Currently, DB install script has hard-coded install paths like "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\MassDataHandlerTest.mdf". Extract these to the SetupUI form. Also, the script throws an error if "MassDataHandlerTest.mdf" already exists (perhaps from a previously bad install). Need to make it delete such files such that the install always runs. </description><author>timstall</author><pubDate>Tue, 05 Sep 2006 15:46:51 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Make database install script more robust 20060905034651P</guid></item><item><title>CLOSED TASK: Create Initial Release</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=MassDataHandler&amp;WorkItemId=2107</link><description>Create Initial Release Comments: Done</description><author>timstall</author><pubDate>Tue, 22 Aug 2006 02:06:16 GMT</pubDate><guid isPermaLink="false">CLOSED TASK: Create Initial Release 20060822020616A</guid></item><item><title>CREATED TASK: Add more documentation</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=MassDataHandler&amp;WorkItemId=2384</link><description>Add more documentation: (1) documentation for GUI, (2) FAQ, (3) Conceptual doc. </description><author>timstall</author><pubDate>Tue, 22 Aug 2006 02:03:34 GMT</pubDate><guid isPermaLink="false">CREATED TASK: Add more documentation 20060822020334A</guid></item><item><title>COMMENTED ISSUE: Create Initial Release</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=MassDataHandler&amp;WorkItemId=2107</link><description>Create Initial Release Comments: ** Comment from web user: timstall ** Uploaded release</description><author>timstall</author><pubDate>Tue, 22 Aug 2006 02:01:28 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Create Initial Release 20060822020128A</guid></item><item><title>CREATED ISSUE: Create Initial Release</title><link>http://www.codeplex.com/WorkItem/View.aspx?ProjectName=MassDataHandler&amp;WorkItemId=2107</link><description>Create Initial Release </description><author>timstall</author><pubDate>Tue, 15 Aug 2006 02:33:14 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Create Initial Release 20060815023314A</guid></item></channel></rss>