Using CF to integrate data from MS Access with MS SQL Server

I use query of RDS in Flex Builder to create scripts to extract data from and eveuntually perform updates Microsoft Access tables.

Problem - this error when I run the very simple code (under the error box).  I use the wrong ODBC driver? How to do this?  Curiously, it has worked in Flex/RDS Query Builder against the MS Access data source.

Run database query error.

[Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Syntax error (missing operator) in query expression ' ordDate > = 2009-08-01 00:00:00 '.
The error occurred in C:\Inetpub\wwwroot\ws\micheOrderVerification1.cfm: line 14
12 :             SELECT    ordID, ordDate, ordName
13 :             FROM      orders
14 :                  WHERE ordDate >= #rptDate#
15 :             ORDER BY ordID      
16 :            

< cfset rptDate = ' 2009-08-01 00:00:00 ' >

< = 'results' datasource cfquery name = "eCommerce" >

SELECT ordID, ordDate, ordName
Orders
WHERE ordDate > = #rptDate #.
ORDER BY ordID

< / cfquery >

< cfset rowcount = 1 >
< cfloop query = 'results' >
(< cfoutput > #rowcount #) #results.ordID #, #results.ordDate #, #results.ordName # < / cfoutput > < br >
< cfset rowcount = rowcount + 1 >
< / cfloop >

cfqueryparam is your friend.

So are proper date objects.

Tags: ColdFusion

Similar Questions

  • Possibility to integrate data from Oracle EBS in Amazon cloud Cloud of planning via FDMEE

    Hi experts,

    I just entered a case more about FDMEE.

    I want to know is it possible to integrate data from Oracle EBS on Amazon cloud TO cloud of planning by FDMEE.

    Oracle EBS (Amazon Cloud)-> FDMEE-> planning and budgeting of the Cloud Services

    Please let me know about the opportunity and the necessary measures to be taken for the integration of the data.

    ~ Thank you

    They are separate environments first - an existing one in Amazon Cloud and another within the Oracle offer. Oracle allows not currently SEEP for connections to a system of source book, the only option available is a function file upload.

    I think, in part because they do not want to expose SEEP to the external environments for reasons of maintenance and security.

  • VIX file in the user interface designer receives the data from the Web service application that communicates with the SQL server database

    I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.

    This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.

    Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?

    There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")

    Please help me ASAP!

    Thank you

    Ivan

    I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.

    It's important to create the system DSN if you want your VI of web service to communicate with the database.

    PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.

  • How to export data from the table with the colouring of cells according to value.

    Hi all

    I use jdeveloper 11.1.1.6

    I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?

    You can find us apache POI-http://poi.apache.org/

    See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html

  • data from 3 tables with later dates

    Hello
    Need help with the PL/SQL code, I need to write a code that will get the data from 3 tables with the most recent date.

    For an individual ACT_CODE the output of the SQL query should display the data including the last dates back to 3 tables, if there is no
    Date of the table, it should show the remaining data (think that the left join will do here)

    Names of tables:
    Institution_UPDT aiu
    AC ASQ_CONTACT
    GR_AUTHORIZE gr

    All 3 tables have ACT_Code in common

    Column names

    INSTITUTION_UPDT IAU - IAU. ACT_CODE, AIU.project_id as proj, IAU. UPDT_TYPE_ID, IAU. User_id, IAU. UPDT_DATE

    ASQ_CONTACT ac - ac. ACT_CODE as contact_code, ac.project_id, ac.first_name, ac.middle_initial, ac.last_
    Name, AC.title, AC. Status, AC.status_date

    GR_AUTHORIZE gr - GR ACT_CODE as grad_code, gr.name, gr.title AS grad_title, gr.submit_date


    Are the names of the columns date
    AC.status_date,
    IAU. UPDT_DATE and
    Gr.submit_date

    Thanks to you all
    appreciate your help

    Jesh

    Hi, Ngoumba,

    If a given ACT_Code couldn't miss from any of the tables, then you will use better full outer joins, not a join left outer.

    Perhaps it would be more effective to make a UNION of the three tables, then rotate the results in three datecolumns.

    You can use the GROUP BY aggregation to get the last date for each ACT_Code in each table.
    If you need other columns in the row which is the last date, you can use the ROW_NUMBER analytic function, like this:

    SELECT  ACT_Code
    ,     updt_date
    ,     ROW_NUMBER () OVER ( PARTITION BY  ACT_Code
                              ORDER BY          updt_date     DESC
                      ) AS r_num
    FROM    institution_updt
    

    The lines with r_num = 1 are the most recent

    This is a technique of ot the UNION-PIVOT example:

    WITH     union_data     AS
    (
         SELECT    ACT_Code
         ,       MAX (updt_date)     AS last_date
         ,       1                  AS table_id
         FROM       institution_updt
         GROUP BY  ACT_Code
    UNION ALL
         SELECT    ACT_Code
         ,       MAX (status_date)     AS last_date
         ,       2                  AS table_id
         FROM       ASQ_Contact
         GROUP BY  ACT_Code
    UNION ALL
         SELECT    ACT_Code
         ,       MAX (submit_date)     AS last_date
         ,       3                  AS table_id
         FROM       GR_Authorize
         GROUP BY  ACT_Code
    )
    SELECT       ACT_Code
    ,       MAX (CASE WHEN table_id = 1 THEN last_date END)     AS aiu_updt_date
    ,       MAX (CASE WHEN table_id = 2 THEN last_date END)     AS ac_status_date
    ,       MAX (CASE WHEN table_id = 3 THEN last_date END)     AS gr_submit_date
    FROM       union_data
    GROUP BY  ACT_Code
    ORDER BY  ACT_Code
    ;
    

    Published by: Frank Kulash, on September 16, 2009 15:02
    Added UNION-pivot example

  • Import Access DB to SQL Server

    I'm trying to set up a SQL Server database.

    Currently I use Access and my own plan which is very close to the "generic" Recordset

    I tried several things.

    * Band my .mdb so that it contains only the tables but no data.

    * Import to SQL Server.

    * Database .mdb complete, including the import data.

    My tablenames in SQL Server always gets the prefix 'dbo '. This means that they use a schema "dbo" - right?

    Can I export my plan (.ini) TestStand, , but how do I get that in SQL-SERVER?

    Currently, I get the error below: (what is the result of not having the correct implement schema?)

    An error occurred calling "LogMultipleResults" in "ITSDBLog" of "ZNIUGOL TestStand database logging"

    An error has occurred by executing a statement.

    Statement: UUT_RESULT.

    Description: Cannot insert the value NULL in the column 'ID', table 'PTA_DR2_COMMON.dbo.UUT_RESULT '; column does not allow NULL values. INSERTION fails.

    Number:-2147217873

    NativeError: 515

    SQLState: 23000

    Reported by: Microsoft SQL Server Native Client 11.0Description: the statement has been terminated.

    Number:-2147217873

    NativeError: 3621

    SQLState: 01000

    Reported by: Microsoft SQL Server Native Client 11.0Description: operation errors generated several OLE DB steps. Check each OLE DB status value, if available. No work has been done.

    Number:-2147217887

    NativeError: 0

    SQLState: 01000

    Reported by: Microsoft SQL Server Native Client 11.0

    Under the 'data link property"in TestStand I've set up to use a"specific name and user password"which is implemented in SQL Server.

    I choose to save the "Password."

    Test the connection is OK.

    If I close the window, but right after the reopening, the password properties are gone... which means it is not saved!   Why?

    If I use NT integrated security, access to the database works.

    I found a 'Solution' by exporting each table access rather than import it on SQL Server.

    Now, it seems to be OK

  • How to export a .sql file, I created from Oracle Application Express of SQL Server Management 2012?

    Hello

    I was wondering if you could help me.

    I'm trying to find out how to export a .sql file, I created from Oracle Application Express of SQL Server Management 2012? I'm not very technical, but it seems that the Oracle code does not work with SQL Management Studio when I drag the file inside.

    I need the database Oracle express and its data to enter in SQL Management Studio, so any help would be much appreciated!

    Thank you.

    Hello

    Your question is beyond the scope of this community.

    Please repost your question in the SQL Server TechNet Forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    See you soon.

  • corresponding data types n/b oracle and sql server

    everyone here knows that if there is a list of the data types supported by oracle and sql server (no matter releases and versions?

    an immediate response would be appreciated.

    Thank you.

    Hello

    Next post might be useful for you:

    http://msdn.Microsoft.com/en-us/library/ms151817.aspx

    If that's what you're looking for, then mark the question answered and closed.

    Kind regards
    Naveed.

  • What pins to use to receive the data from the PDS ELITE RS485 with the PXI-8431/2?

    Hello!

    I use the PXI-8431/2 to read data from the flow meter PDS ELITE (Modbus RTU). Receiving data, the RS485 protocol request to terminals 4 and 5, but this configuration does not seem to work. When I connect the RS-485 converter USB of Microflex I get the data correctly, so somehow between the PIN lay and PXI this problem there.

    Can someone help me?

    See you soon,.

    Steven

    Hello Steven,

    I think that what was Hossein trying to send you is the following:

    How to connect and configure a device with RS-485 2-wire

    Can you also tell me a little more what you use to read the data? What environment. You have 2-wire or 4-wire Modbus RTU?

    Kind regards

  • How can I use notifications to send data from different sources for the same chart?

    Hello

    I use the model of 'Continuous measurement and logging' project comes with LV 2013.

    It is extremenly helpful in understanding the messaging between the acquisition, graphic and loops of newspaper. (Thank you NEITHER!)

    I ran into a snag though.

    I want to change so that my graphic loop receives notifications of data from two sources of acquisition by the declarant.

    I have trouble getting the data from the two sources to display on one graph.

    I've isolated the problem in the attached vi.

    Here's what happens:

    1. I create 2 parallel loops data and send the data to a third parallel loop with the notifiers.

    2. the third loop receives data from one of the loops because one of the authors of just receiving notifications is to expire instead of receive data.

    Can anyone suggest how can I fix?

    Thank you.

    -Matt

    Here's my modification of your VI. I put notes on the block diagram to explain the changes. He uses a queue for data transfer to avoid data loss. It uses a notifier to stop loops. All local variables and value property nodes have been eliminated.

    The way loops are arrested probably let some data in the queue. No more of one or two iterations of each of the loops of data acquisition. If you need ensure that all data has been displayed (or recorded in a real application), then you must stop acquiring loop first and read the queue until you know it's empty and both other loops stopped. Then stop the render loop and release the queue and the notifier.

    Lynn

  • Strange behavior when using Labview to collect data from Tektronix oscilloscope tds8200

    I hit a wall in trying to understand this one. The problem I have is that my application will not start the oscilloscope when it should.

    I use an oscilloscope Tektronix TDS8200. My goal is to collect data from the oscilloscope using Labview waveform. First of all, my program initializes and configures the oscilloscope; This part of the program works very well.

    The second part of the program begins the acquisition of data with the function 'Tktds8k Start or Stop Aquisitions.vi', which is to press the button run on the scope. The function "tktds8k to Waveform.vi" is used and should ideally return data, which I connected to a waveform playback graph.

    When I run my program, the first part runs without a problem, but as soon as the program comes to the service get the waveform, the run button in the scope, which is green when running, turns off; the program then expires, and no data is collected.

    Here is where it gets weird. I went through the debugging to try to understand this point, and I put breakpoints on the beginning and get shape wave functions so that I could scroll through the last part of the program. The program continues with the departure function, and the button run in scope is green. The breakpoint for the function get the waveform is reached and when I press on continue, turns the Run button and turns it off then back on almost immediately. data are collected, the waveform graph appears and the program ends without error.

    I thought that the timetable could be the problem, so I did the program wait as long as five seconds between the functions of start and get the waveform and that did not work. I also tried to move the start function to before the configuration functions and remove start completely; no method worked.

    is there any ideas on why, the program works when I enabled breakpoints and isn't when breakpoints are disabled? I'm sure there is an easy solution, but I was not able to find a solution.

    I have attached a pdf that contains information about the functions of the Oscilloscope (tktds8k.pdf), and I have also attached my program.


  • How to use OATS fall back data from DB and insert data to DB

    Hi all

    My requirement is bit different.

    I'll explain the scenario,

    I'm working on the application of the OTM, I read OAST supports OTM and already test the scripts are ready.

    My situation is as follows below,

    1. I need to extract data from a field for 18 000 shipments.
    2. I have an excel sheet in the formula below

      Shipment_Number Stop_Number Planed_Arrival_Date Planed_Departure_Date
      1

      1

      12
      13
      21
      22
    3. I could write the script in OATS while he logins OTM and research for specified shipping number and capture the Planed_Arrival_Date and the Planed_Departure_Date for the specific stop.
    4. But the problem is that I am not able to record the date in excel.

    Expected solution:

    1. One way to save the captured data back to Excel.
    2. A way to backup the data captured to a column in a table. If it is possible then to way to make OATMEAL reade the shipment of a database column number.

    Thank you

    Vishwamber Shetty

    Hi Vishwamber,

    Try to use Datatable in OATS. Using datatable, you can read and write to Excel.

    Kind regards

    Dembélé Muraleedharan

  • Can we use Source accounting entity group to load the data from multiple entities with a single rule to load?


    Page 79 of erpi_admin_11123200.pdf says that "reporting entity groups are used to extract data from several reporting entities in a single data rule execution.  I use standard EBS adapter to load data in HFM application, I created a group of entity made up of several accounting entities, but I can't find a place in FDMEE where you get to select/use this group... When you define an import format you type the name and select Source (e, g. EBS) system you can select Map Source (for example EBS11 I adapter) or the accounting entity (it is what I select to define data load maps), but not both.  Note that there is no place to select the Group of accounting entity...  Location check menu group entity drop-down but it doe not my group of accounting entity which I believe is anyway something different... and creating a location and pointing to a format compatible with the selected Source adapter is no not good either... I'm confused, so is it possible to load data from several reporting entities in one rule to load or am I misreading the documentation?  Thank you in advance.

    Do not leave the field blank in the Import Format. If leave you empty to the place, when you set the rule to load data (for the location with EBS as a Source system), you will be able to select a single accounting entity or a group of accounting entity.

    You can see here

    Please mark this as useful or answer question so that others can see.

    Thank you

  • How to transfer data from 2 HDD with RAIDO to Windows 8?

    Old Pavilion Elite fried by lightning. (2) disc HARD 320 with RAIDO which do not appear to be damaged. New computer has a single 2 TB HDD. (Bay 3) The device manager says that I have "Microsoft storage controller" and a family of chipsets Intel® 8 series/C220 SATA AHCI controller.

    1. can I connect my 2 HARD drives on my new computer to transfer data? If this is not the case, do you have a suggestion?

    2. I have reformat the old HARD drive, can I add them to the new computer?

    Thanks in advance.

    Jim

    Jim,

    It is not possible to recover data from the HARD drive if your connection from hard drive to a different processor because the data stored on the drive will be through the RAID configuration.

    You can use your favorite search engine to find if there are any third-party software that could help recover the stored data readers.

    Also post your question in the Technet forums to check if there is any other way to retrieve the data. http://social.technet.Microsoft.com/forums/Windows/en-us/home

    If you want to format the hard drive and use it on the new computer, you can do it.

    If you have any questions, let us know.

  • Passes data from leaf of great pl/sql procedure as a parameter.

    Hello
    I use ORACLE Database 11 g and RHEL 5.

    I have a procedure in my database that will update the table required for a single value, which before the end users (Java). Now I want to change it to update several records in 'BULK'.

    I studied the SQL Loader and knowledge. But this time I want to insert data into an oracle table excel, if I want to pass data from excel to a procedure as a parameter. I also do this process in BULK mode.

    Here is an example of code that take input for a front end value and updates the table...
    PROCEDURE TAB_UPDATE (SYMBOL     IN SYMBOL_INDEX.SYMBOL%TYPE,
    END_DATE IN SYMBOL_INDEX.END_DATE%TYPE)
     IS
     BEGIN
         V_QRY1 := '';
         V_QRY2 := '';
         V_QRY1 := 'UPDATE SYMBOL_INDEX';
         V_QRY2 := 'SET END_DATE = '''||END_DATE||''' WHERE SYMBOL_IDENTIFIER = '''||SYMBOL||''' AND END_DATE IS NULL';
         PRO_EXEC(V_QRY1,V_QRY2);
     EXCEPTION
      -----------
     END TAB_UPDATE ;
    Now this simple plsql code of the procedure updates a record at a time, whenever the user needs to insert a new value of front end to update its value.

    Please suggest me how to perform this procedure to take value of parameter of an excel sheet and also update all records in BULK.

    Should I use varrays? If possible, please give some links or code samples...


    Thanks in advance!

    I don't know, because I can't test it now, but you say STAGE_ID (the last column) ends by "," while in your data there is no comma after the last value. You can try to add a comma and load again?

    Marcus

Maybe you are looking for