Emil Haukeland Mostly for myself, but maybe something useful for you too?

10Apr/10

How to extend a table column size

Computer Associates

While this post is trying to explain how to extend the description for Change Orders, this method can be used to extend just about any database-column for CA SDM. The SDM I change in this post is running on Windows servers, but it should be little or no difference if you're running any other supported platform.

Order Description contains 5184 characters, but its maximum size is 4000

As you see we cannot save this post due to limitation of the Order Description column.

Note that the String Length is only capable of storing 4000 characters

This limitation is not set on the web-page, but in the Change_Request description column. You can review yout current String Length by starting Web Screen Painter and click the Schema Designer button. To the right is a screenshot of the default setting - limiting String Length to 4000 characters.

In order to change this column we need to create a sch-file. This will contain a syntax which tells pdm_configure to extend the database column.

pdm_configure will try to read and perform all actions on all sch-files located in:

"drive:\path\to\CA\Service Desk\site\mods\"

How you choose to organize your sch-files are entierly up to you, but for this example I'll create a file called"zChangeRequest.sch" because I like to keep changes on a "per table"-basis.

To extend the description column size; type or paste the following line into your sch-file and save:

// Extend the description column in the Change_Request
// table to hold up to 25000 characters
TABLE Change_Request {description STRING 25000;}

As I assume you have already guessed, we need to run pdm_configure to apply our changes to the database. NOTE: Remember to stop your SDM prior to running pdm_configure.

Note that the String Length has been extended to 25000 characters

When pdm_configure has done it's work we can fire up SDM again and check our changes. Lets start the Web Screen Painter again and click on the Schema Designer-button. You chould see that the String Length property has been set according to your wishes.

At last we do need to test our changes on the website:

Save successful. Hooray! :)