MS Access Cfquery or Cfstoredproc parameters declaration?

How do you pass more than one argument to MS Access stored procedure (query) using either CFQuery or CFStoredProc?
Environment: MS Access 2007; Coldfusion 7 Std Edition.
Working example CFQUERY with 1 date value parameter:
<cfquery name="testStoredProc" datasource="cinci_events">
EXEC qry_MenuByDate '2/1/2011'
</cfquery>
(Access query parameter name is "@dtmDate", but its inclusion in EXEC statement creates error).
But an otherwise-same-as query using 2nd date value parameter fails
Error Executing Database Query.
Syntax error (missing operator) in query expression ''2/1/2011' '2/2/2011''.
The error occurred in D:\ciweb\scripts\reservations\cf\dsp_CaféMenu_StoredProcedure3.cfm: line 59
57 :  --->
58 : <p> datasource = {<cfoutput>cinci_events</cfoutput>}</p>
59 : <cfquery name="testStoredProc" datasource="cinci_events">
60 : EXEC qry_MenuByDateRange '2/1/2011' '2/2/2011'
61 : </cfquery>
Above query "knows" the existence of 2nd date value.  Without a 2nd date, query errors with message:
Error Occurred While Processing Request
Error Executing Database Query.
Parameter [EndDate?] has no default value.
The error occurred in D:\ciweb\scripts\reservations\cf\dsp_CaféMenu_StoredProcedure3a.cfm: line 59
57 :  --->
58 : <p> datasource = {<cfoutput>cinci_events</cfoutput>}</p>
59 : <cfquery name="testStoredProc" datasource="cinci_events">
60 : EXEC qry_MenuByDateRange '2/1/2011'
61 : </cfquery>
SQL
   EXEC qry_MenuByDateRange '2/1/2011'
DATASOURCE
  cinci_events
VENDORERRORCODE
  3088
SQLSTATE
Resources:
I would prefer to use a Cfstoredproc method. But help with declaring multiple inputs for either is very much appreciated.
Thank,  Guy

Separating CFQUERY arguments with a comma corrects the error. I thought (?) I had tried comma separation in my  iterations. Thanks.
Many unsuccessful iterations tried with CFSTOREDPROC. For example:
Error Occurred While Processing Request
Error Executing Database Query.
Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.
The error occurred in D:\ciweb\scripts\reservations\cf\dsp_CaféMenu_StoredProcedure23.cfm: line 65
63 : <cfstoredproc procedure = "qry_MenuByDate" DATASOURCE="cinci_events">
64 : <cfprocparam type="in" cfsqltype="CF_SQL_DATE" dbvarname="dtmDate" value='2/1/2011'>
65 : <cfprocresult name="testStoredProc">
66 : </cfstoredproc>
67 : <p>testStoredProc.RecordCount = {<cfoutput>#testStoredProc.RecordCount#</cfoutput>}</p>
SQL
  {call qry_MenuByDate( (param 1) )}
DATASOURCE
  cinci_events
VENDORERRORCODE
  3092

Similar Messages

  • Need to access TestStand Sequence Step Parameters from Excel Macro

    Trying to create an EXCEL spreadsheet containing a list of all steps in a TestStand Sequence including Parameter names and types. How can I access the parameter names and types from EXCEL Visual Basic? It seems the API provides access to sequence parameters, but not step parameters.

    mmghost,
    Unfortunately, in TestStand 2.0, it is not possible to access the step parameter information.
    In TestStand 3.0, there are a few more APIs exposed that give you access to the step parameters. In TestStand 3.0, these are the steps you would take to get that information:
    1) Get a hold of the step object of interest. There are many ways to do this. For instance, starting with the Sequence Context you can get the Sequence object, and then get a step object from the sequence.
    2) From the Step object, get the Module object.
    3) At this point, you need to cast the Module object to the specific adapater type module you are using. For this example, we will assume that we are using the CVI adapter, so we would cast the Module object to a CVIModule o
    bject.
    4) The CVIModule object contains a Parameters collection of type CVIParameters, which contains the type information.
    For different adapter types you would just cast the Module object to a different specific module (LabVIEWModule, ActiveXModule, etc).
    Matt P.
    NI

  • How to access/identify components in JSF Declarative Components?

    Hi,
    I am beginner on ADF. Trying to build first Declarative Components.
    Use Case is as follows -
    I have put 2 InputTexts in Declarative Component.
    Want to set some value in second InputText (txtAddressLine2) in Validator/ValueChangeListner method of first InputText(txtAddressLine2).
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <af:componentDef var="attrs" componentVar="component">
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>Test</display-name>
    <attribute>
    <attribute-name>
    AddressLine2
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    </attribute>
    <component-extension>
    <component-tag-namespace>Address3</component-tag-namespace>
    <component-taglib-uri>/Address3</component-taglib-uri>
    </component-extension>
    </component>
    </af:xmlContent>
    <af:inputText label="Address Line 1"
    binding="#{backing_Address3.txtAddressLine1}"
    id="txtAddressLine1"
    validator="#{backing_Address3.txtAddressLine1_validator}"
    autoSubmit="true" immediate="true" rendered="true"
    valueChangeListener="#{backing_Address3.txtAddressLine1_valueChangeListener}"/>
    <af:inputText label="Address Line 2" binding="#{backing_Address3.txtAddressLine2}"
    id="txtAddressLine2"
    validator="#{backing_Address3.txtAddressLine2_validator}"
    autoSubmit="true" immediate="true"/>
    </af:componentDef>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Address3-->
    </jsp:root>
    This is sample I am working on.
    I am trying following approaches in bean of Component itself.
    Approach I: This does not give any error, value is not set in txtAddressLine2
    this.getTxtAddressLine2().setValue("Some Value");
    Approach II: Not able to access txtAddressLine2 using findComponent() method
    UIViewRoot uiViewRoot = facesContext.getViewRoot();
    RichInputText inputText;
    inputText = null;
    if (uiViewRoot.findComponent("txtAddressLine2") != null) {
    System.out.println("Found ");
    inputText = (RichInputText)uiViewRoot.findComponent("txtAddressLine2");
    inputText.setValue("my value");
    } else {
    System.out.println("Not Found "); //Always not found
    Can anybody tell me correct way to access components and set their values inside Declarative Components itself?

    Thanks buddies....its resolved!
    This is how I have done it -
    Components have these 2 Input Texts :
    <af:inputText label="Label 1" id="txt1" autoSubmit="true" immediate="true"
    binding="#{DC2.txt1}" validator="#{DC2.txt1_validator}"/>
    <af:inputText label="Label 2" binding="#{DC2.txt2}" id="txt2"
    immediate="true" autoSubmit="true" partialTriggers="txt1"/>
    Code in Component Bean setting value is as follows:
    RichInputText txt22;
    txt22 = getTxt2();
    txt22.setSubmittedValue("Some Value");

  • Need sysdba access to edit initialization parameters

    When I log into enterprise manager, go to database, then initialization parameters..
    it says 'You are not logged on with sysdba privilege'
    my preferences - credentials has sys and password in the sysdba fields..
    what needs to be done

    What you need to do is logout, and log back in with a user that has sysdba privileges.
    After you click on Logout, you will see the options:
    - Log out of Database: database_name
    - Display database login page after logout
    Use this option to reconnect to the database as a different user
    Log out of Enterprise Manager and all other targets
    (Logged in As YOURUSER)
    Select - Log out of Database and Display database login page after logout.
    You will then get the option to connect as sysdba. Change Connect as "Normal" to SYSDBA.
    HTH

  • Accessing receiver communication channel parameters in mapping

    Hi,
    I have an XI sender to HTTP receiver scenario with mapping to set the value of the target URL, which is set as an Adapter Specific Message Attribute (TargetURL).
    The mapping is responsible for adding hashed authentication credentials to the end of the URL string.
    Ideally I'd like to be able to read the values of the host, port and path from the receiver communication channel configuration than hardcode these in the mapping class.
    Does anyone know whether it is possible to read receiver communication channel values within mapping?
    I could store the full URL string in the communication channel but this would not be secure hence the preference for doing this in mapping.
    Thanks,
    Alan

    try using Dynamic confiuration
    please check HTTP rec doc: http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    ○       URL: TargetURL
    ○       HTTP Destination: HTTPDest

  • Function module parameters declare BOR Object

    I dont know if this is even logical...
    I need to create a function module which will be used in my  program..
    Can I create an object of BOR object type say 'Sales Order'  and pass it as an export parameter in Function Module..
    i.e i will pass the obj key and obj type as import..
    I want to instantiate that Sales Order.. and pass the whole Sales oRder as export/tables  parameter..
    I know swc_object_create is supposed to create an object but as i can see it only has the handle.. and it is of type swc_object..
    But i want to export  the whole Instance .. so that i can call the methods of the object  in my original program..
    Regards,
    krishna

    Hi Ravi ,
    I simplified my requirement but my actual requirement is with workflows...
    I have a scenario in workflow where,
    1.Activity step to fill internal table with sales order numbers
    2.loop at sales order numbers internal table
    3.Activity Step to Instantiate  based on order numbers
    4. Activity Step to Edit these sales orders
    5.end the loop
    For the above logic in workflows i have separate Activity step for instantiation..What I am thinking of is to instantiate the sales orders and fill the instances in the internal table in Step 1 instead of just order numbers..In the BOR method/F.M  of Step 1 I need to export the Instance of the Sales Orders (this is my actual question/problem, how do i instantiate while coding??swc_object_create, creates only a ref to object ...If I am able to create the object what should the type be in export /tables parameter)
    This way i can remove the loop and offer parallel processing (from miscellaneous tab in activity step) and send multiple Edit workitems to user  at Once instead of one after the other..
    Please let me also know how you would handle the above situation, i am very new to workflows and BOR.

  • Accessing Human Task output parameters

    Hi all.
    I have encountered a problem that I find to be
    quite irritating. I have already searched the
    forum, and read through the threads regarding
    this topic, but still haven't been able to solve
    the issue.
    I have a simple type String variable
    ({[http://www.w3org/2001/XMLSchema]}string)
    called "myName".
    First, I'm initializing this variable with the
    String "none":
    {color:#333333}&lt;assign name = "setVariable"&gt;
    &lt;copy&gt;
    &lt;from expression = "string('none')"/&gt;
    &lt;to variable = "myName"/&gt;
    &lt;/copy&gt;
    &lt;/assign&gt;{color}
    Next, I'm passing this variable as an argument
    to a Human Task called "provideName", that has an
    modifiable attribute called "userName":
    {color:#333333}&lt;copy&gt;
    &lt;from variable = "myName"/&gt;
    &lt;to variable = "initateTaskInput" part = "payload" query = "/taskservice:initiateTask/task:task/task:payload/task:userName"/&gt;
    &lt;/copy&gt;{color}
    Finally, right after the Human Tasks receive activity,
    I'm fetching the alleged modified value, and copy it
    back to my variable:
    {color:#333333}&lt;copy&gt;
    &lt;from variable = "provideName_1_globalVariable" part = "payload" query = "/task:task/task:payload/task:userName"/&gt;
    &lt;to variable = "myName"/&gt;
    &lt;/copy&gt;{color}
    After deploying and starting the process, I claim the task
    on the worklist interface, modify the text field next to the
    label "userName" from "none" to "Tim", select "APPROVE" and
    hit the "GO"-button. I get the "your request was processed
    successfully"-notice, and the flow is reported to have
    completed, BUT: looking at the Audit Trail, I find that the
    variable "myName" actually hasn't changed it's value. It's
    still "none".
    What am I doing wrong? I'd be grateful for your help.
    Thanks!
    Tim
    Edited by: Tadhg207 (-&gt; format)

    No, I did not. Frankly, I didn't know you had
    to save the form before you submit it. I literally
    tried everything, but that.
    Thank you for answering both my questions, James,
    I've spent ages trying to resolve these issues.
    I'd promote you to Guru right away, but, alas, I
    only got a mere 20 points at my disposal. Those
    are yours, though.
    Thanks again. :)
    Question answered.

  • Access fo Method parameters to Anonymous Class ?

    Can somebody please provide some more information on the statement below? I am also searching for some sample code implementations of it. It would help the cause better.
    +"Methods of the object of the anonymous class need access to final local variables and method parameters belonging to the method in which the anonymous class is defined. "+
    Thanks in Advance

    We're concerned here with "local" classes, i.e. classes defined inside methods (not all anonymous classes are local, and not all local classes are anonymous).
    The thing about local classes is that, unlike local variables etc., instances of a local class may survive the method returning. For example a local class might be a listener which gets added to a swing component, it could be a Runnable that get's launched as a thread.
    Local classes get to access local variables and parameters of the method in which they are declared but the variables or parameters have to be declared final because, since the class needs to be able to access the value of the local variable even after the method exits, and the variable ceases to exist, what actually happens it that the value of the variable is copied into a special field of the anonymous class, and if the variable could be changed after the class was defined, the two copies would then disagree.

  • PCSuite : unable to access to Sync Parameters !

    Hello everybody,
    here is some informations which can help
    Windows Vista Business
    Nokia PC Suite 6.83.14.1 (french version)
    Nokia N70 Music Edition
    (Microsoft Outlook 2007)
    I use PC Suite mainly to sync my Outlook Calendar&Contacts with my N70. It is very useful indeed.
    The first version of PC Suite I used was 6.82.22.0
    After, I updated to the 6.83.14.1.
    I had some difficulties with the first version to make it work well but after some days ... no problem !
    I upated so to the 6.83.14.1 and everything worked well yet.
    Few days ago, I updated to the 6.84.10.3 as advised at the bottom right of the PC Suite Window. Since that, the Sync stopped to work !
    The strange thing is after uninstall/reinstall/install PCSuite and every Nokia software, Sync Parameters still remain unavailable, like if the "Parameters" button didn't work.
    Other components of PC Suite seem to work (my mobile is "connected" as usual) BUT Sync is down.
    Why can't I access to the Sync Parameters (where I can choose my mail application, how to resolve conflicts, ...) ?
    I'm presently on PC Suite 6.83.14.1, because it was the last working but it changes nothing.
    If anyone can help me, you're welcome.
    Martin

    Side note: The link was broken (altough I copied it to the address field).
    To the sync problem, can you check do you have an INI file in this folder :
    C:\Documents and Settings\your user name if any\Application Data\Nokia\PCSync\SynchData\XXXXXXXXXXX
    XXXXXXXXXXX= your phone IMEI code.
    (If you only use one NOkia phone with that PC, there should be only one IMEI code present, but if there are several phones you sync with that PC, they all have different sync settings, separated by phone IMEI)
    OK, if you can find 2 files: .SML and .lml in that folder, you should be OK, the data about your latest Sync with the PC and phone is reserved although you have updated PC Suite.
    What you can try is to right click with mouse the small jyngjang icon in your windows task bar (bottom right area) nd select exit.
    Then open PC Suite from Start - Programs and "reopen" PC Sync. Now connect the phone with USB cable. Does the PC Sync Settings button become active now ?

  • Access the report parameters as array

    we need a way to access the various dynamic parameters of the report. Regardless of the number of parameters that contains the report.
    Something like:
    params [0] .value
    Thanks in advance.

    BrianO,
    Although it's been a while, I thought I'd provide the code to do this for you. It works for me in CF8, and probably will in CF7.
    Here I create a structure called My, and provide that one parameter to my CFReportParam tag.
    <CFSet My = {
    Client = "Client Name",
    ReportDateFrom = DateFormat(ThisStartDate, DateMask),
    ReportDateTo = DateFormat(ThisEndDate, DateMask),
    PageHeaderImage = ImagePath & "\Logos\Page_Header.png",
    WatermarkImage = ImagePath & "\Logos\Watermark.png",
    GetBarSummary = GetBarSummary,
    GetPieSummary = GetPieSummary
    }>
    <CFReport Template="#ReportPath#\SpendSummary.cfr" Format="PDF" Query="GetSummary">
    <CFReportParam Name="My" Value="#My#">
    </CFReport>
    Inside the report itself, reference the given parameter as Param.My.PageHeaderImage for example. It can be referenced that way from any expression inside the report builder. You can even use the queries as the data source for charts (using the Data From a Query -> Query Builder -> Advanced) by entering "Param.My.GetPieSummary" where it says "Variable containing query object".
    HTH
    Swift

  • Error accessing method in 3rd party dll

    already asked for help a few weeks ago but no one answered and i still wasn't able to figure out what the problem...
    i have a 3rd party dll and im trying to access some methods (USING JNI)- i have no problem accessing methods with no parameters and they work fine but a method with parameters just wwont work.
    i guess that its something with my syntax - probably incorrect data type when converting from java type to native type...
    i dont have any previous expirience with c so help would be appriciated...
    heres my java code:
    package pavel2.javay;
    class Test {
        native String VersionGet();
        native String loadDll();
        native String LogInMT4(int account,String  pass,String server,String a,String v,String c,String d);
        static {
            System.loadLibrary("pavel2");
        public static void main(String args[]) {
            Test t = new Test();
            System.out.println(t.loadDll());
            System.out.println(t.LogInMT4(230622,"qd1bvvs","Orion-DEMO","","","",""));
    }and the dll wrapper:
    #include <windows.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\jni.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\win32\\jni_md.h>
    typedef char*   (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);
    HINSTANCE hOle2Dll;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_loadDll(JNIEnv * env, jobject jobj){
         hOle2Dll = LoadLibrary(TEXT("D:\\pavel2\\tzmt4api.dll"));
         return  (*env)->NewStringUTF(env, "tzmt4api.dll loaded!!");
         /*if (OleInitialize(NULL) == S_OK)
              if ( hOle2Dll >= 32 )
                   //FreeLibrary ( hOle2Dll ) ;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_LogInMT4(JNIEnv * env, jobject jobj,jint login, jstring password, jstring server,jstring proxyserver,jstring proxytype,jstring proxylogin,jstring proxypassword){
                   LogIn_MT4 fnc ;
                   fnc = (LogIn_MT4)GetProcAddress ( hOle2Dll , "LogIn_MT4" ) ;
                   if ( fnc == NULL )
                        MessageBox(NULL, TEXT("Error loading Method"), TEXT("Error"), MB_OK);
                   else
                   const char *pass = (*env)->GetStringUTFChars(env, password, NULL);
                   const char *ser = (*env)->GetStringUTFChars(env, server, NULL);
                   const char *proxyserv = (*env)->GetStringUTFChars(env, proxyserver, NULL);
                   const char *proxyt = (*env)->GetStringUTFChars(env, proxytype, NULL);
                   const char *proxylog = (*env)->GetStringUTFChars(env, proxylogin, NULL);
                   const char *proxypass = (*env)->GetStringUTFChars(env, proxypassword, NULL);
                   int a=fnc(login, pass, ser, proxyserv,proxyt,proxylog,proxypass);
                   (*env)->ReleaseStringUTFChars(env, password, pass);
                   (*env)->ReleaseStringUTFChars(env, server, ser);
                   (*env)->ReleaseStringUTFChars(env, proxyserver, proxyserv);
                   (*env)->ReleaseStringUTFChars(env, proxytype, proxyt);
                   (*env)->ReleaseStringUTFChars(env, proxylogin, proxylog);
                   (*env)->ReleaseStringUTFChars(env, proxypassword, proxypass);
                   //return  (*env)->NewStringUTF(env, empty);
                   return  (*env)->NewStringUTF(env, "logged");
                             //int c = fnc(login, *password, *server, "", "", "", "");
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
         switch (ul_reason_for_call)
         case DLL_PROCESS_ATTACH:
         case DLL_THREAD_ATTACH:
         case DLL_THREAD_DETACH:
         case DLL_PROCESS_DETACH:
              //todo: unregister class here
              break;
         return TRUE;
    }this is the output:
    tzmt4api.dll loaded!!
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xcccccccc, pid=3792, tid=3824
    # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C 0xcccccccc
    # An error report file with more information is saved as:
    # C:\Program Files\TradeZone\TZMT4APInew\Work\hs_err_pid3792.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Process finished with exit code 1
    p.s - it looks like the login method works but when returning to java the VM crashes
    can anyone help me?

    jschell - tried this already and got the same ..
    ejp - i cant do this bucause i dont have a .lib and this proccess can run only on windows unfortunately...
    my problem is that i dont know the how to create the correct type for the method:
    this is the signature:
    typedef int  (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);how do i create in c this var types?
    int a=fnc(1531, "asas", "asd", "","","","");how do i create
    const char *xxx type? and its okay for the int just to write a number or i also need to declare it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Query works in Access but not CF

    I wrote this query initially in access to extract the data I
    wanted out of my table. In MS Access, the query works fine, returns
    the desired data. When I run the query from my CF page, i get the
    following error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Too few
    parameters. Expected 2.
    Can anyone tell me why? Below is my query

    As the IIF function is a valid CF function, it may not be
    getting passed as 'plain text' to Access, instead CF
    may be attempting to compile the function and pass the
    result. If you can turn on debugging and for a short time set it to
    include the SQL being passed in error messages, you can see what is
    really going on.
    Another option is to create/save the query in the Access
    database and reference that instead of a table in your CFQUERY
    call. Since you are just running a staright query and not passing
    anything from CF (unless I am mistaken), calling the Access query
    for your results would work fine.
    <CFQUERY ...>
    SELECT * FROM myQueryName
    </CFQUERY>
    HTH,
    CR

  • Access the URL Parameter from a Adaptermodule

    Hi,
    I need to implement an adaptermodule to create a SOAP-Header element. I use the SOAP Adapter (receiver) in this case with the flag "Not use SOAP env.) One element within this header element will be the URL of the Webservice with I declare in the Adapterconfig.
    How can I access this config within a Adaptermodule or must I implement a modul parameter ?
    Regards,
    Gerald

    Hi,
    You can access the comm. channel parameters in the module.
    here is the sample code:
    cid = moduleContext.getChannelID();     
                        ch =(Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL,cid);
                        String dir = ch.getValueAsString("file.targetDir");
    this is to get the value of target directory in file adapter module.
    try something similarly.
    hope this helps.
    regards,
    P.Venkat

  • Insert records into an Access

    I am trying to insert records into an Access document but
    when trying to execute the action page I get the following:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Too few
    parameters. Expected 1.
    The error occurred in
    C:\ColdFusion8\wwwroot\ASK\AskAction.cfm: line 17
    15 :
    16 :
    17 : values ('#trim(form.qname)#', '#trim(form.email)#',
    #DateVariable2#, #Val(form.Mathques)#, '#(form.quest)#')
    18 :
    19 : </cfquery>
    SQLSTATE 07002
    SQL insert into table1 (qname,
    email,qdate,recipient,question) values ('bill', '[email protected]',
    13-Oct-08, 0, '45x9 ')
    VENDORERRORCODE -3010
    DATASOURCE ques
    Resources:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
    SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506;
    InfoPath.2)
    Remote Address 0:0:0:0:0:0:0:1
    Referrer
    http://localhost:8500/ask/ASKform.cfm
    Date/Time 13-Oct-08 09:07 PM
    Stack Trace (click to expand)
    thanks,
    Steve

    what are your data types for the recipient and qdate columns?
    - you could try putting quotes around the date object, i always
    forget if they're needed or not with date objects

  • Passing jsf parameters to a jsp page

    how to access the parameters declared in jsf page from a jsp page.
    in the jsp page I need to access the paramaters something like request.getParameter("age");
    how to declare the same in the jsf page in h form.
    <h:form>
    <h:inputText value="" id = "age" />
    </h:form>
    and in the jsp page i should access this parameter like request.getParameter("age");
    how to accomplish this.
    Please help.

    Please don't doublepost. Continue here: http://forum.java.sun.com/thread.jspa?threadID=5252759

Maybe you are looking for