﻿<?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 Database Deployment Toolkit » Issues  » TableName property not being updated properly</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 06:04:17 GMT</lastBuildDate><ttl>20</ttl><item><title>TableName property not being updated properly</title><link>http://forum.strataframe.net/FindPost22650.aspx</link><description>I have a table named [b]"CardImages"[/b], the BO was created using the name "bizCardImages", later on I renamed the table name to [b]"CardImage"[/b] and the BO to "bizCardImage", everything was working fine until I tried to Insert a record, I got an error saying that the SP CardImages_Insert does not exist, so I went to the bizCardImage.Designer.vb and found out that the property TableName() was not updated with the new name of the table.&lt;br&gt;
&lt;br&gt;
I had to manually fix the TableName() property to return the table new name and that fix the problem.  Shouldn't the BOM take care of this property everytime a build partial is regenerated?</description><pubDate>Mon, 06 Apr 2009 08:28:31 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: TableName property not being updated properly</title><link>http://forum.strataframe.net/FindPost22657.aspx</link><description>I understand.  Since I started using the DDT I am binding the schema to the DDT.  Later on I will try to see if this can be duplicated by simply create a table, generate the partial, then change the table name in the DDT and regenerate.  Will let you know the results later today.</description><pubDate>Mon, 06 Apr 2009 08:28:31 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: TableName property not being updated properly</title><link>http://forum.strataframe.net/FindPost22656.aspx</link><description>Edhy, this sounds very suspect since this is&amp;nbsp;a feature that has always been supported by the framework.&amp;nbsp; When the BOM rebuilds the partial, it will rename the BO properties as well within the designer file.&amp;nbsp; If you are binding the schema to an SQL structure instead of the DDT (which is probably not likley) then I could see this happening.&amp;nbsp; Otherwise, I would be curious to see if this is reproducable on your side.</description><pubDate>Mon, 06 Apr 2009 08:19:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: TableName property not being updated properly</title><link>http://forum.strataframe.net/FindPost22655.aspx</link><description>[quote][b]Trent L. Taylor (04/06/2009)[/b][hr]No, it was your stored procedures that needed to be updated. When you change the name of a table in the DDT and you are allowing it to automatically create the INSERT, UPDATE, or DELETE sprocs, you will have to manually reset those sprocs names. Generally I will just go into the table properties of the table in the DDT, clear out the name of the sproc, then un-check and re-check the checkbox for each sprocs type and it will reset the name of the auto-generated sproc.&lt;br&gt;
&lt;br&gt;
Most likely this is what happened in your case. You still had the old sproc names.[/quote]&lt;br&gt;
Hi Trent,&lt;br&gt;
I am familiar with the process you outlined here, and for the record, that is not what happened.  I did all steps above and the names of the SPs where with the correct table name, in fact I followed your suggestion of not putting the SP names at the BO level and let the BO itself figured out the SP names, it was the name of the table in the BO.designer file that was left with the old table name and was not updated by the BOM.</description><pubDate>Mon, 06 Apr 2009 08:12:31 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: TableName property not being updated properly</title><link>http://forum.strataframe.net/FindPost22652.aspx</link><description>No, it was your stored procedures that needed to be updated.&amp;nbsp; When you change the name of a table in the DDT and you are allowing it to automaticaly create the INSERT, UPDATE, or DELETE sprocs, you will have to manually reset those sprocs names.&amp;nbsp; Generally I will just go into the table properties of the table in the DDT, clear out the name of the sproc, then un-check and re-check the checkbox for each sprocs type and it will reset the name of the auto-generated sproc.&lt;/P&gt;&lt;P&gt;Most likely this is what happened in your case.&amp;nbsp; You still had the old sproc names.</description><pubDate>Mon, 06 Apr 2009 08:00:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>