Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Changing DataType of Field in table

Posts: 2
 
Changing DataType of Field in tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Oct 12 10:03 AM
fiogf49gjkf0d

How can change the datatype of a field in saleslogix database without dropping it and loosing all the data ?


 

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Changing DataType of Field in tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Oct 12 11:13 AM
fiogf49gjkf0d

SLX Doesn't store the data type anywhere. It knows what the datatype is by querying the db at runtime in order to know etc. So, you can simply change this via ALTER TABLE X ALTER COLUMN COL1 VARCHAR(20) NULL for example. Once this is done, restart the slxserver service and that change is then picked up (hint: if you don't want to do the restart, add a dummy field in Architect to any table and then commit/drop it). You can also add the above as a SQL Command and bundle it for installation to a live site. You can, even, if you have a single site, no remotes, don't use sync etc. just change it via SQL Studio.


Obviously, all rules about conversion of 1 datatype to another prevals. You can't convert a varchar to inteteger without potentially losing data for example.


 

[Reply][Quote]

Posts: 2
 
Re: Changing DataType of Field in tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 12 1:41 PM
fiogf49gjkf0d

Worked like a charm, I just had repopulate the DBManager and showed the change, since was change for Web Client, had to remove the field from Entity in Application Architect, rebuild interfaces >> Re-Add the field whose datatype was changed and reflected change for Entity in Web.


Else you get a type mismatch error if changes are not made in Application Architect.


Tongue out

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Changing DataType of Field in tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 12 1:45 PM
fiogf49gjkf0d

And in the web client there might be some control issues in a form......

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 4:53:25 AM