Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Changing the Length of the TabName in the Tabs Database TableChanging the Length of the TabName in the Tabs Database Table
Previous
 
Next
New Post
8/25/2009 1:43 PM
 

How do you change the length of the TabName in the Tabs Database Table?

The current length property is set to nvarchar(50) and I need to change it to nvarchar(100).

Here is the message I receive after trying to save the change in Microsoft SQL Server Management Studio 2008:

Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.

Tabs

 
New Post
8/25/2009 8:22 PM
 

like the message says, you might be able to increase size in database, however, you will most likely need to increase size of DNN business object property as well (and recompile).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/25/2009 11:45 PM
 

To get by that error you need to export the data out of the table, truncate it (delete all records), then make the changes and load the data again.  However, there are probably some business rules in code that you will need to change.  Don't take this lightly as it means you will have significant extra steps each time you update DNN to the latest version.  It seems to me that there might be another solution or two to your problem.  You only asked for a specific solution - can you tell us what the problem is that you are trying to solve?  I realize you need longer tab/page names, but can you provide a description of the requirement?  If you had the longer names how/where will they be visible?  Will they have additional uses, etc?


- Accuraty / Jeremy
 
New Post
8/25/2009 11:51 PM
 

I found the answer here:
http://www.sql-server-performance.com/faq/saving_changes_not_permitted_p1.aspx 

After I followed those directions I also had to change the TabName text box width setting in the ~/Admin/Tabs/managetabs.ascx file.

Here is what I changed:
<asp:TextBox ID="txtTabName" CssClass="NormalTextBox" runat="server" MaxLength="100"
                                            Width="300"></asp:TextBox>

Finally I opened up Microsoft SQL Server Management Studio 2008 and went to the Tabs Table and right clicked and selected design. I then was able to change the length of the TabName from nvarchar(50) to nvarchar(100).

 
New Post
9/13/2009 4:13 PM
 

I also need to make this longer and followed these directions.  The TabName column now is a nvarchar(100) and I changed the input on the manage page.  However it still seems to be cutting my page names short.  I can enter more than 50 characters but when I save the name is still get chopped off.  I ran 'sp_columns Tabs' under Host->SQL and verified that column is now nvarchar(100)...

TABLE_OWNER TABLE_NAME COLUMN_NAME DATA_TYPE TYPE_NAME
dbo Tabs TabName -9 nvarchar

Any ideas?

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Changing the Length of the TabName in the Tabs Database TableChanging the Length of the TabName in the Tabs Database Table


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out