web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Expanding a Custom Field Size in a Custom SQL Table

(0) ShareShare
ReportReport
Posted on by 685

Just checking to see if there is an easier way to do this:

I have a customer who needs a field size increase of a string field in one of my custom Dexterity applications.  The field is only used in a couple of SQL tables.  In the past, I would perform the following steps:  (1) Create a temporary duplicate table of the production table to be modified; (2) Copy the data from the production table to the temporary duplicate table; (3) Expand the field size in the production table; (4) Run SQL maintenance to initialize the production table; (5) Copy the data from the temporary duplicate table back to the newly modified production table.

Is there an easier way?  Am I overlooking some SQL utility that does this? 

Thanks

*This post is locked for comments

I have the same question (0)
  • Richard Whaley Profile Picture
    25,195 on at
    Re: Expanding a Custom Field Size in a Custom SQL Table

    I have had success in simply increasing the field size in the table definition.  Of course, I would back up the database first. But SQL seems to keep the data just fine if you simply increase the field size.

     

    But what do I know.....

    DON'T DO THIS TO GP TABLES....ONLY TO YOUR CUSTOM TABLES WHERE YOU CAN CONTROL THE CODE THAT READS THEM!!!!

  • Greg Frazier Profile Picture
    685 on at
    Re: Re: Expanding a Custom Field Size in a Custom SQL Table

    Thanks Richard, I'll try this as a test.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans