How do I add/update/delete data using ColdFusion Builder 3?

I feel like this is a really simple and stupid question and should be easy to figure out, but I can't.
I am relearning ColdFusion after 12 years out of the IT field.  I am using the ColdFusion 9 Getting Started:Volume 1 book.  In Chapter 7 it states that I need to edit the Application.cfc file so that I can edit the database rather than just selecting from the database.  I can't seem to find anything related to that file in any search.  In my ColdFusion 11 Administrator I have set this mySQL database to be able to be edited, but ColdFusion Builder 3 doesn't seem to allow any editing of the tables.  I have not had much luck searching for help regarding this on the internet either.  My biggest problem so far is getting ColdFusion Builder to talk with my mySQL database properly so I can actually get on with relearning ColdFusion and writing code.  Frustrating!!

I do have ColdFusion 11 Administrator installed.  When I go to Data and Services there and open the datasource (OWS) that I want to connect to and query off of, and go to Advanced Settings, I show that the following are selected:
SELECT
CREATE
GRANT
INSERT
DROP
REVOKE
UPDATE
ALTER
Stored Procedures
DELETE
If, in ColdFusion Builder 3, I open the RDS Query viewer and write the following basic update query (Server: default:local; Datasource: OWS):
insert into directors(FirstName, LastName)
Values ('Benjamin', 'Forta');
I get the following RDS error message:
java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
According to the book and some information I have seen online, the SQL Query Tool, for security's sake, by default allows execution of SELECT statements, but no other SQL statements.  According to the book, to change this behavior I need to edit the Application.cfc file in the ows/sql directory.  I have to change the THIS.select_only flag from the default of yes to no and save the file.  I cannot find this file anywhere.  I have seen an application.cfm, but I think this is different that what they want because I can't find anything in that file that says THIS.select.

Similar Messages

  • HOW CAN I ADD/UPDATE/INSERT IN A USER TABLE WITH MATRIX

    Hi All,
    I have one User table (Defined as No Object) and what i need to do is a form with a matrix to Add/Update/Delete data in my user table.
    I already create the form and the matrix that already give me the user table data. But now i have several problems to solve.
    First I try to add a new row but this new row get the data of the last row in the matrix. What i needed is a blank row to add new data in the user table.
    Second, when i change data in matrix and do update in the form, sap show me the message that the operation is successfully done but the data in the user table in not updated.
    I am trying to do one forma like whe can find in Setup-> General -> Freight.
    Can anyone help me?
    Best Regards,
    Luis Duarte

    Hi,
    If ur dealing with a simple form like that U can as well use the direct table form, and just provide a FMS to auto matically fill the code and name. U can directly use the form by.. Tools-->UserDefined Windows
    Or
    Comming to ur problem.... when ur adding a new row clear the data sources so that u'll get a blank row.
    And for update the best thing to do is delete all the records in the table and again insert all the records directly from the matrix.
    Hope it helps,
    Vasu Natari.

  • As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 also how we can insert,update,delete records in list using ECMA script.

    As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 step by step also how we can insert,update,delete records in list using ECMA script.
    Thanks and Regards, Rangnath Mali

    Hi,
    According to your post, my understanding is that you want to use JavaScript to work with SharePoint list.
    To create list items, we can create a ListItemCreationInformation object, set its properties, and pass it as parameter to the addItem(parameters) function
    of the List object.
    To set list item properties, we can use a column indexer to make an assignment, and call the update() function so that changes will take effect when you callexecuteQueryAsync(succeededCallback,
    failedCallback). 
    And to delete a list item, call the deleteObject() function on the object. 
    There is an MSDN article about the details steps of this topic, you can have a look at it.
    How to: Create, Update, and Delete List Items Using JavaScript
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How do I add or delete names in my address book

    How do I add or delete names and email addresses in my address book?

    Use these steps to remove saved (form) data from a drop down list:
    #click the (empty) input field on the web page to open the drop down list
    #highlight an entry in the drop down list
    #press the Delete key (on Mac: Shift+Delete) to remove it
    *http://kb.mozillazine.org/Deleting_autocomplete_entries

  • Add/Update/Delete XMP (PDF) metadata?

    I'm new to working with PDF. What I would like to do is add/update/delete XMP metadata to PDF documents. These documents will be indexed by our search engine, which I'm told can index this metadata. It's indexing Dublin Core so don't see why it could not index custom schema. Anyway, I've been researching this and as a non-programmer I'm confused.
    1) Can PDF metadata be added, updated and deleted?
    2) Can this be done via a template? (ie. get the PDF file, fill out a metadata form, and submit it or in the case of update/delete change or remove the data).
    3) Are there any developed applications (client or server based) that can do this or must they be developed? If they exist please tell me what and where they are ...
    4) Has anyone used the Java XMP parser?
    5) Anyone know of any online demos of adding/updating/deleting PDF XMP metadata?
    6) Can XML or XMP data be imported into a PDF file?
    Any help will be very much appreciated.
    Thank you

    1) Can PDF metadata be added, updated and deleted?
    PDF metadata is tricky - it consists of legacy doc info within the PDF structure and newer XMP metadata - Adobe is making the transition to supporting XMP across all its applications but we have to ensure not to break older workflows.
    Additionally, PDFs have the property of storing successive edits - meaning, changes are stored as add ons on top of the orginal when Saved - they are cleaned up when the PDF is Save As-ed.
    This has the added implication that XMP packets are duplicated - so scanning for the XMP maker will bring up multiple 'hits' even if one object is there. I've believe there are some heuristics that can be applied to find the 'right' packet using mod dates.
    In most cases it helps to have the PDFL to assist in the process.
    2) Can this be done via a template? (ie. get the PDF file, fill out a metadata form, and submit it or in the case of update/delete change or remove the data).
    Yes, within the application - under Advanced > Document Metadata...
    Outside of the application you will need to build your own workflow.
    3) Are there any developed applications (client or server based) that can do this or must they be developed? If they exist please tell me what and where they are ...
    PDF can be updated very easily using the Photoshop CS File Browser - multiple files can be selected and metadata templates applied. Additionally the File Info dialog in the File Browser can be customized - adobe.com/xmp for docs.
    Also, check out poundhill.com - they have plugins for customization and integration with FileMaker, AppleScript & PHP
    4) Has anyone used the Java XMP parser?
    I'd like to know the answer to this too!
    Check out:
    http://www.java-channel.org/query.jsp?cids=c_10807
    Looks like some there are XMP and PDF related java code.
    5) Anyone know of any online demos of adding/updating/deleting PDF XMP metadata?
    What would you like to see? Using the Acrobat application or from a developer perspective?
    6) Can XML or XMP data be imported into a PDF file?
    What were you looking to do? Again, this can be done using templates and the PS CS File Browser.
    Pound Hill may be able to provide the connectors that you could piece together.

  • How do I add or delete a quick link from Firefox's home page.

    How do I add or delete a quick link from Firefox's home page. I don't use most of the links and would like to add other quick links.

    You can change the order of the boxes on the about:newtab page and drag an item to a different slot to pin it to that position or you can remove a website by clicking the close X to block that URL.<br />
    You can drag a bookmark or history item and drop them in a slot on the about:newtab page to pin them and have your own favorites sites showing.
    Changes made manually on the about:newtab page are stored in the browser.newtabpage.pinned (default = [null]) and browser.newtabpage.blocked prefs that you can check/modify on the about:config page (Bug 791447).
    *http://kb.mozillazine.org/about:config
    See also this article about the New Tab page (about:newtab):
    *https://support.mozilla.org/kb/new-tab-page-show-hide-and-customize-top-sites

  • How do i add and delete photos from the screensaver preference window

    How do i add and delete photos from the screensaver preference window?

    Hello, sassy4sue. 
    Thank you for visiting Apple Support Communities. 
    Here is an article that you may find helpful when creating or editing iPhoto albums that you are using as a screen saver. 
    Mac Basics: Using Screen Saver when your screen is idle
    http://support.apple.com/kb/ht2485
    Cheers,
    Jason H. 

  • Updating spatial data USING JAVA

    I want to update spatial data using java.Does anyone know how can i do this;;;
    for example i have created the following table.
    CREATE TABLE customers (
    customer_id NUMBER,
    last_name VARCHAR2(30),
    first_name VARCHAR2(30),
    street_address VARCHAR2(40),
    city VARCHAR2(30),
    state_province_code VARCHAR2(2),
    postal_code VARCHAR2(9),
    cust_geo_location SDO_GEOMETRY);
    HOW CAN I UPDATE THE FIELD:cust_geo_location,
    WHICH TYPE IS: SDO_GEOMETRY;;;;;
    I wrote a programm in java, which updates the FIELD CUSTOMER_ID.
    ( rset.absolute(3);
    rset.updateInt("CUSTOMER_ID",2222 );
    CUSTOMER_ID = rset.getInt("CUSTOMER_ID");
    rset.next();
    rset.updateRow(); ).
    ---------- THE FULL JAVA PROGRAMM
    import java.sql.*;
    import java.io.*;
    import java.util.Date;
    public class update{
    public static void main (String args [])
    throws SQLException, IOException
    System.out.println ("Loading Oracle driver");
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    catch (ClassNotFoundException e)
    System.out.println ("Could not load the driver");
    e.printStackTrace ();
    System.out.println ("Connecting to the local database");
    try{
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:XE", "sp", "spgianna");
    Statement stmt = conn.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    // String LAST_NAME,FIRST_NAME ;
    int CUSTOMER_ID ;
    ResultSet rset = stmt.executeQuery("SELECT CUSTOMER_ID FROM CUSTOMERS");
    /* while ( rset.next() ) {
    CUSTOMER_ID = rset.getInt("CUSTOMER_ID");
    LAST_NAME = rset.getString("LAST_NAME");
    FIRST_NAME = rset.getString("FIRST_NAME");
    System.out.println( CUSTOMER_ID+""+LAST_NAME + " " +FIRST_NAME);
    rset.absolute(3);
    rset.updateInt("CUSTOMER_ID",2222 );
    CUSTOMER_ID = rset.getInt("CUSTOMER_ID");
    rset.next();
    rset.updateRow();
    System.out.println(CUSTOMER_ID);
    catch(SQLException sqle) {
    System.out.println("SQL Exception encountered: " );
    } catch(Exception e) {
    System.out.println("Unexpected Exception: " );
    HOW CAN I UPDATE THE FIELD:cust_geo_location,
    WHICH TYPE IS: SDO_GEOMETRY;;;;;;;;;;;;;;

    Hi Guys,
    Dont forget to close your stmt and connection after execution
    Use this as a template if you like:
    try{
         /**make connection**/
         ServerConnection sc = new ServerConnection();
    Statement stmt = sc.conn.createStatement();
    /**create statement & execute**/
    String insertstmt = "insert into .......";
    //execute
    stmt.execute(insertstmt);
    /**Close and catch exception**/
    stmt.close();
    sc.conn.close();
    catch(SQLException sqlE){
         sqlE.printStackTrace();
         System.out.println(sqlE.getMessage());
    As for the string "insertstmt" itself, this is where your standard SQL statement goes
    So get it working using a standard SQL editor first, then copy and paste it in to this string variable. The string should be a series of concatenated strings and variables to recreate the SQL atatement in Java. For example
    the SQL statement:
    insert into Mytable(SESSIONID, TIME1) values ('300', '4.45pm' );
    assuming the values are stored in variables called 'sessionnumber' and 'time'
    will become
    String stmt =
    "insert into Mytable(SESSIONID, TIME1) values ('"+sessionnumber+"', '"+time+"')";
    Hope this helps.
    E
    Ps. Do a system.out.println after you create the stmt. The statement printed out to the console should be a valid SQL statement that you can use in your editor. (minus the ;)
    ...keep working on the string until you can do this.

  • Need Sample Code in C#  to Insert,Update,Query data using W 2.0 wsdl

    Hi,
    Can anyone please share sample code in C# to Insert,Update,Query data using W 2.0 wsdl.
    Thanks in advance

    I have found solution.
    Need add following line for non string data type.
    objOutreachUpdateList.Opportunity[0].IndexedNumber0Specified = true;

  • How do I add to my data plan on the iPad once I have run out of time and no longer have an internet connection?

    How do I add to my data plan on the iPad once I have run out  and no longer have an internet connection? I am working out of the country and got a message that I was running low,followed immediatly by a you're out message.

    Should you not be asking your carrier? They are the people supplying your data plan.

  • How can you add a where clause using "OR" with applied ViewCriteria?

    [JDeveloper 10.1.3 SU4]
    [JHeadstart 10.1.3 build 78]
    I am using JHeadstart, but have a question probably more in the ADF area. On the JHeadstart forum I asked:
    "I am overriding JhsApplicationModule's advancedSearch in order to be able to search in childtables. I created transient attributes, display those in advanced search and in the overridden method I check if any of these are filled by the user and create a where clause like 'EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>)'. I add this whereclause using ViewObject.setWhereClause.
    So far so good and it works. However, if the user selects 'Result matches any criteria', combining setWhereClause and the normal advancedSearch QueryByExample implementation using ViewCriteriaRow do not provide the desired result, since the ViewCriteria and the setWhereClause are AND-ed together, which is fine if the user selects the (default) "Results match all criteria" (everything is AND-ed) but not the "Result matches any criteria", since then every criterium is OR-ed together, except for the setwhereclause criteria and the set of ViewCriteriaRows, they are AND-ed.
    I looked if I could specify that a WhereClause will be OR-ed to existing applied ViewCriteria, but no luck. Do I have to rewrite also advancedSearch's ViewCriteria implementation and write an entire setWhereClause implementation to be able to "OR" every criterium? Or any other suggestions? Can I look at the entire Where clause and rewrite it (after applyCriteria and setWhereClause are called on the VO)?
    Toine"
    Sandra Muller (JHeadstart Team) told me today: "This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. The question is: how can you add a where clause using "OR" if there are already one or more ViewCriteria applied?
    To simplify the test case, you could create a simple ADF BC test client class in a test Model project without JHeadstart (in the test class, use bc4jclient + Ctrl-Enter), in which you first apply a few ViewCriteriaRows to a View Object and also add a where clause.
    Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ? (This what I am doing now ;-))
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting"
    Anyone knowing the answer or am I asking for an enhancement?
    Toine

    Hi,
    Can you SET your whereclause as follows ?
    ('Y' = <isAnd>
    and EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>))
    OR ('N' = <isAnd>
    AND EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> OR <another column in childtable> LIKE '<value supplied by user>))
    )

  • How To... Update Master Data during upload of transaction data

    Can anybody let me know how this can be achieved.
    I have datasource (Legacy not R3) where I am getting both master data and text for number of infoobjects.
    I dont want separate datasources.
    The datasource is actually transactional datasource.
    I dont need text in the cubes or DSO I need the text tables of the infoobjects to be updated.
    I could find this on SDN but do anyone have document based on the below link.I was not able to find it.
    How To... Update Master Data during upload of transaction data
    Thanks.

    Dear Praveen
    I guess yr req is demanding the knowledge of Data Unification and Synchronization whose scope is a bit outer the area of BW.( its MDM actually )
    In BW we could very well fetch data out of different data sources (even across the different system) with no issues so why not u trying that. if there is any issue implementing that then please specify what kind of trouble you are interfacing...
    I got the below link which may be helpful
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e7bd6389-0a01-0010-eb95-d45835d446a8

  • How do I add the capture date and time to the bottom corner of a photo?

    How do I add the capture date and time to the bottom corner of a photo?

    Not to the bottom, that I'm aware of, but to the top right or left in Grid view or to the top left in Loupe view. It is in the View Options.

  • How do I add a delete website back in to the iWeb Program?

    How do I add a delete website back in to the iWeb program?
    I still have the files there are stored on the hard drive.

    If you deleted the site in iWeb and saved, then your site is lost.
    If you have not made a backup of the Domain.sites file before you deleted the site in iWeb, then you have nothing to fall back on.
    There is unfortunately no way of importing an existing site into iWeb - it just doesn't work that way.
    Your only option then is to cut and paste existing material from your published site back into iWeb.
    Michael
    iMac 20" Intel Core Duo 2GHz

  • How do I add and delete pages to a pdf document?

    How do I add and delete pages to a pdf document?

    Hi Paul,
    Adobe Acrobat has the features to add/delete/extract/crop/insert pages to your PDF files and are much more features.
    Adobe Reader has  a very limited features for editing to PDF files.
    Now you can subscribe to Acrobat Plus and see more information at https://www.acrobat.com/acrobatplus/en/home.html
    Or you can download Acrobat XI Pro for trial version from www.adobe.com.
    thank you.
    Hisami

Maybe you are looking for