﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Errors making table/database modifications</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 04 Jul 2026 10:48:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1978.aspx</link><description>I am having an issue updating table/field structures in the DDT.&lt;/P&gt;&lt;P&gt;I know Trent you saw one instance where I was going from INT to BIGINT on a PK field and said you would look into it.&lt;/P&gt;&lt;P&gt;I have had a few more instances where changes would not take correctly.&lt;/P&gt;&lt;P&gt;On two occassions I was able to get the changes to publish by saving the package as a seperate step, closing and reopening DDT, then publishing.&lt;/P&gt;&lt;P&gt;On a few other occasions I had to undo my changes, or in one instance when I tried to remove the PK field (experiment) without first deleting the index referencing it I had to pretty much rebuilt the table.&lt;/P&gt;&lt;P&gt;Once you got me going with the framework, I sailed through all the tutorials and an sold on the value of the framework. The reliability of the DDT concerns me, please let me know if i am doing somthing procedurally wrong to cause these update issues.</description><pubDate>Sun, 30 Jul 2006 07:32:19 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1998.aspx</link><description>It depends on where you placed your code.&amp;nbsp; Also as for it "renaming" your business object, it doesn't have this ability.&amp;nbsp; It has to use the existing BO name.&amp;nbsp; The only way I could this something like this could have happened is if you attempted to assign a pre-existing project with a BO of that name to your current project.&lt;/P&gt;&lt;P&gt;If you place all of your code in the CustomersBO.vb file no code will be overwritten.&amp;nbsp; If you place code in the Customers.Designer.vb file, well...you will have a bery frustrating time because this code gets overwritten each time the partial is built.</description><pubDate>Sun, 30 Jul 2006 07:32:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1997.aspx</link><description>Well, the problem you ran into has is because the data within the field is NULL and you have not implemented any NULL functionality within your BO.&amp;nbsp; If you do not plan to support NULL data, which really is the best way, set the default value for a new field to ('')&amp;nbsp; those are single quotes and SQL Server requires the parens.&amp;nbsp; This will set the new field data to an empty string.&amp;nbsp; Likewise, for an integer field you would set the default value to (0).&amp;nbsp; If you plan to support NULL data, then you will need to go into the BO Mapper and for that particular field *** NULL support.&lt;/P&gt;&lt;P&gt;In our applications we generally never support any NULL data because it causes more problems than it resolves.&amp;nbsp; So when we add a new field we just set the default value to initialize the data for us like I mentioned above.</description><pubDate>Sun, 30 Jul 2006 07:28:45 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1994.aspx</link><description>Alright the problem was i think that the remapping using the Business Object Mapper removed my overrride for GetCustomBindablePropertyDescriptors() in my BO.&lt;/P&gt;&lt;P&gt;So..... what is the procedure to update table structures, deploy them to the databsse with existing data, and merge those changes into existing BO's without losing anything (custom properties, etc)?&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Sat, 29 Jul 2006 22:50:40 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1993.aspx</link><description>Ok so I decided to just remove my new field "email". I did that in DDT, repackaged and deployed. All went well.&lt;/P&gt;&lt;P&gt;I remapped using the "Business Object Mapper" , rebuilt partial, rebuilt project.&lt;/P&gt;&lt;P&gt;Well it renamed my BO from CustomerBO to Customer BO1 and that screwed up my code so now things dont work.. I am throughly frustrated. Please help me.</description><pubDate>Sat, 29 Jul 2006 22:44:20 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1991.aspx</link><description>Hmm it seems I still need some help modifying the structure of an existing table that contains data.&lt;/P&gt;&lt;P&gt;I had a table of structure primekey int (4), lastname varchar(20), firstname varchar(20)&lt;/P&gt;&lt;P&gt;I tried to add field email varchar (30).&lt;/P&gt;&lt;P&gt;When I selected "Allow NULLS" as suggested above the packaging and deplyment processes worked. I then remapped my BO, rebuilt my partial, and bound a textbox to my new field. Upon running I get this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/188b5fed-3a32-410c-951d-d18b.gif"&gt;&lt;/P&gt;&lt;P&gt;So I tried suggestion #2 above (set a default of&amp;nbsp;('') for the character field - using the ... provided) and get this when trying to deploy. Help please. It looks like it is trying to insert NULLS even though I have defined a default value?&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/80efda71-769f-4ab4-bfcf-330f.gif"&gt;</description><pubDate>Sat, 29 Jul 2006 22:28:01 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1981.aspx</link><description>I knew this one would be simple, thanks!</description><pubDate>Fri, 28 Jul 2006 22:50:24 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Errors making table/database modifications</title><link>http://forum.strataframe.net/FindPost1980.aspx</link><description>I did confirm that there was an issue with the PK not being dropped if you change the type from one to another.&amp;nbsp; This has already been add to the "ToDo" list.&amp;nbsp; As for some of your other problems, I think that you are probably just not doing something quite right.&amp;nbsp; Just FYI, we use this on a daily basis and there are a few things that you have to know about, such as adding new fields to a table that already has existing data.&amp;nbsp; You will need to either allow NULL or provide a default value, such as (0) or an integer field or ("") for a character field.&amp;nbsp; In a normal day, I change and post anywhere from 5 to 20 changes to a server using the DDT.&amp;nbsp; So it is well broken in.&amp;nbsp; One other thing, when you installed StrataFrame, all of our structures, and sample data, are deployed using the DDT as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So as for the reliability, I promise you it is there just like the framework.&amp;nbsp; &lt;/P&gt;&lt;P&gt;[quote]On a few other occasions I had to undo my changes, or in one instance when I tried to remove the PK field (experiment) without first deleting the index referencing it I had to pretty much rebuilt the table.[/quote]&lt;/P&gt;&lt;P&gt;To remove a field as a PK within the editor, simply uncheck the "Primary Key" check box, click Save and the index will be automatically removed.</description><pubDate>Fri, 28 Jul 2006 22:46:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>