How can I use ColdFusion to change the structure of database?

I have a project that requires me to import hundreds of PostgreSQL dBase tables.  Importing is quite simple.  However, I need to rename all the columns to meet my organization s naming conventions.  This forces me to precede a name data type the column name.

For example... I have three columns NAME, LOCATION, and BRIAN.  These columns are of type varchar, number and date.  These columns must be changed so that new names of columns are vchar_name, num_location and date_edop respectively.

Since there are thousands of columns, perform this task manually is not plausible.  I think I can use CF to perform the task for me, but I don't know how to do.

Has anyone done a similar task and would be willing to share some code example?

Thank you
Lee

IF you know how to make these translations with SQL, then you know how to do with ColdFusion.

If you know only hot to preform these trnalations with a Databasse management tool, you must first learn the SQL used by the tool really to do these translations.

You can pass ALL SQL instructions through a block of that includes your database management system, and the account used to connect to ColdFusion is allowed to use.

P. S. it's this last point is important BECAUSE the States of web security well the normal DSN connected to ColdFusion must never have unnecessary permissions, such as create, modify, or remove tables.  So you can very well, (I hope so at least) need to create a special DSN with the necessary permissions for this task.  And, of course, don't let this DSN not be used for other taskes where permissions are not necessary.

Tags: ColdFusion

Similar Questions

  • Can I use automator to change the modified time of a file as its content?

    I use automator to rename a series of images.

    The problem is whenever I change a change of time of amending records file.

    Can I use automator to change the modified time of a file as its content?

    I know that I can use the Terminal to change a date but I have no idea how to do to automate this process

    As you say you know the command to use in the Terminal, and then with Automator, use the Action run the Shell Script after the name change.  The new file name will be passed to the Action run a Shell Script, and from there, you can use touch - r to set the time of the file at the time the name of the new file

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft Web site, I clicked the options which mean that I would not need the CD (which was not provided with the laptop), but poartway through the service pack update, I get a request for the Office 2000 Professional CD.

    Any suggestions?

    Hello

    Did you mean an office or a note?
    As far as I know the a Note is part of the recovery Image and the CD is not supplied with the unit. In addition, Toshiba units are not delivered with the Office 2000 software.

    However, have you checked to aid either in Word update function?

    You will find an option called verification of updates
    http://Office.Microsoft.com/en-us/officeupdate/default.aspx

    Good bye

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • How can I use a video for the preview looks like instead of the fixed image?

    How can I use a video for the preview looks like instead of the fixed image? I use android lollipop.

    Hi Ali,

    Video preview for looks is not currently supported on Android. Your feature request was noted by the team.

    In the meantime, there is a video on the device you want to use as an overview, I would recommend taking a perforated CAP and still image as loading preview.

    Best,

    Bronwyn

  • Can I use actionscript to change the size of an object displayed according to the proximity of objects 2?

    Can I use actionscript to change the size of an object displayed according to the proximity of objects 2?

    As in the 2 closest objects get, plus another Gets?

    Yes, simply change the properties of scale based on the distance.

  • How can I use SQL to check the Version of Oracle Forms and object of the request?

    Hi all:

    How can I use SQL to check the Version of Oracle Forms and object of the request?





    Concerning
    Terry

    Terry,

    See the following threads/docs for the version of forms.

    How to find the developer version
    Re: How to find the developer version

    Note: 466890.1 - Script to find the Apache, Java, Jinitiator, version of forms and details of the JVM for Oracle E-Business Suite 11i
    Note: 392793.1 - how to get Forms Oracle Oracle Applications 11i Command Line Version
    Note: 468311.1 - Script to find the Apache, Java, JRE, Forms for Oracle E-Business Suite R12 version

    What purpose are you talking?

    Thank you
    Hussein

  • How can I use firefox to open the public sybercafe.

    How can I use firefox in open public sybercafe.and what precautions should be taken.

    Hi, you can use the Firefox private - browsing Mode navigate the web without saving the information on the sites you visit

    The incognito on Firefox for Android

  • How can satellite L650-170 - I change the language of Windows 7?

    Hello

    How can I change language Windows 7?

    I'm installing first in Dutch and I want to re - install in french.
    When I go to the recovery system, its installation still in Dutch.

    Please someone help me?

    Thanks, sorry for my English.

    Satellite L650-170

    Hello

    As far as I know that it is no longer possible.
    If you have selected the language, you will need to use the language that was chosen originally.

    I not quite sure of this workaround, but check if this m:
    -create a recovery disk (using the software creator on the laptop recovery disk)
    -use the recovery disk to reinstall new OS
    -Check if it would be possible to change the language.

    Welcome them

  • How can I use axis layer against the axis of the world to animate?

    Hi all

    I'm open to other ways to address the issue.

    I am trying to create a sphere using multiple images. Say, 200 images, arranged in 3d space, so they face outward and together form a large sphere. Pretty standard thing (like the sphere glowing apps blue droid in android ads, like this).

    I used red giant PlaneSpace quickly take a sphere. I want to "explode" the sphere for all images to move away from the centre of spheres, but in a staggered and random way rather than all at once.

    I thought it would be easier I see each orientation layers changed each axis of layers. So the layers of the z-axis of the Center points.

    Example:

    ex.jpg

    I tried to use a simple linear expression to update the Z axis over a period of 20 seconds to its current position minus 2000, like this:

    AMT = linear (time, index, index + 20, position [2], [2] position - 2000);
    Transform.position = [position [0], [1] position, amt];

    This updates the position of the z axis, but it is based on the world axis (or axis of the model), not the axis of layers. The axis of layer, I want to talk about is the widget of the axis that appears when you select a 3d layer and the axis 3 widget to see red/green/blue appears.

    How can I get the expression to use the axis layers rather than the world?

    Is there another approach to this? I'm certainly not up-to-date on 3d trig enough to write a formula to chart a course far from a specific 3d point. If all goes well, there is a simple way to do this that I forgot.

    I will add that I have attach all 200 pictures to a null value, scaled to null, and it grows not all photos now. I also added a reverse scale expression to keep them the same size they were initially instead of scaling upwards with a null value. However, I really want to blow way random and not "both" and I need to get out of the null concept for this scaling access to each photo.

    Thank you!

    Unplug the layers of the null value and try this:

    AMT = linear (time, index, index + 20, 0, -2000);
    toWorldVec ([0,0,1]) + value * amt

    Dan

  • How can we use iCloud password for the Sierra login account?

    Hello world

    How can we, iCloud password used for login user account Sierra?

    Kind regards

    Abdelaal

    Mine got to the last step of the download and request for administrator password I knew, I had. I went through all of the passwords, I've never used (had to hack attempts) and one of them worked after pressing 'Unlock' Have no idea why this worked, but it is now installing.

  • How can I use 2 iphones on the same iTunes

    I have 2 Iphones but currently, only 1 computer, so I need to use my iphone and iphone my wife on the itunes, how can I keep the content and separate backups?

    Not at the same time. but every iPhone has its own identification and iTunes will make two profiles, one for each. Do not do anything, there will be separate backups.

  • How can L750-154 satellite - I change the language of the keyboard?

    Hello

    I just bought a satellite L750-154 in the United Kingdom. Therefore, it came with an English keyboard (United Kingdom).

    However, I want to use to write in Portuguese (Brazil).

    I tried to change the configuration, but the letters and accents do not correspond to signals on the keyboard.
    How would he set up?

    Thank you

    Hi mate

    Here's a nice description of Microsoft:

    + How to change your keyboard layout.
    http://support.Microsoft.com/kb/258824
    Instead of Canadian French choose Portuguese

    > I tried to change the configuration, but the letters and accents do not correspond to signals on the keyboard.
    Well, you have a keyboard that does not support the English provision certain keys do not match with the language of the keyboard what to say in this case, you would need to buy a keyboard with a layout of the Portuguese language and would need to replace it

    Or you are using an external USB keyboard with a layout of the Portuguese language

  • Using Windows movie maker-how can I use Webcam instead of the digital camera

    How can I configure to use the Web cam so of digital camera. Vista uses as an ongoing program.

    Hello

    I suggest you to visit these links and check if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    http://Windows.Microsoft.com/en-us/Windows-Vista/import-video-files-pictures-and-audio-into-Windows-Movie-Maker

    http://Windows.Microsoft.com/en-us/Windows-Vista/importing-files-into-Windows-Movie-Maker-frequently-asked-questions

    It will be useful.

  • How can I use a Subvi in the background when a sequence is running in the main VI

    I want to do this

    When I press a button on the main VI, a Subvi (#1) must run and take the data.
    At the same time, must execute a sequence, in which there are some other subVIs.

    My problem is that the Subvi #1 does not run when I press the button. The sequence works well. How can I run the sequence and the Subvi in the simultaneously?

    Hi Hugo,.

    When the sequence and your Subvi have not all dependencies given, they will work in parallel...

    Mind to attach some code or images of block diagram?

Maybe you are looking for

  • Why my plugins are not auto update as I have it set to?

    I set up for my Add - ons for automatically updating but find that they are not always do that. for example, Java and Adobe. I know that I can do it manually, but don't want to and that's why I put it in place for the automatic update.

  • Downgrade IOS to IOS 8.4.1 9.1 (Ipad 2)

    Hello I need to downgrade 9.1 to 8.4.1. There are a lot of incompatible with 9.1 app and I wonder to return to 8.4.1. I tried with ipws 8.4.1, but iTunes gives me an error 3194. I have seen that in some circumstances people change hosts in Windows, b

  • dfsvc.exe has encountered a problem and needs to close.

    I had to down load a program to work on my computer at home and I get this message, the program is called RightNow CX: dfsvc.exe has encountered a problem and needs to close.  The assistance of technicians of office have no idea what it is or how to

  • I forgot to disable the subscription to Office 365 from the old account. Now the key cannot be used.

    I bought the Acer Aspire 10 Switch (SW5 - 012) on 13.07.2015 and indicés to Microsoft Office 365, that was in the box with the tablet. I have been indicés with the e-mail I deleted later. While 2 disabling month worked, I used Office with my new acco

  • SAMSUNG SSD thin uSATA 128 GB M firmware update

    Hello I have thin Samsung SSD 128 GB MLC, MMCQE28GTMUP-MVAD1, version of the software package VAM05D1Q uSATA. Could you please tell me where I can find the latest firmware for this drive? I searched the Samsung site without success. The drive came wi