A question using the setString to pass parameter

Hello, there:
part of my SQL statement is like this:
p_table.user_id in (?)
In my JDBC code, I wrote
String str = "usr1";
ps.setString(1, str)
to pass the parameter to the SQL statement - it works fine;
However, if I wrote (in order to select from multi-users)
String str=" 'usr1', 'usr2', 'usr3' ";
ps.setString(1, str);
the code will throw a SQLException; I heard the SQL statement will automatically add single quotes on both side so I changed to:
str = " usr1', 'usr2', 'usr3 ";
but it didn't work either, the same SQL Exception is thrown.
Do any people experience this and guide me what to do?
Thanks a lot,
Sway

I've never done that, but presumably the problem is that you're trying to use one string parameter to set multiple SQL strings.
You probably want where... in (?, ?, ?) and then call setString 3 times.
If the number of parameters is not fixed at compile time, you could build the "?, ?, ?" part of the query one "?" at a time in a loop, and likewise call setString N times in a loop. There may be a cleaner, more direct way to do this, but if there is, I don't know anything about it. Dig around the java.sql javadocs a little.

Similar Messages

  • Using Go URL to Pass parameter between dashboard

    Hi All,
    I am trying to pass parameter using GO URL functionality from one dashboard analysis field to another dashboard.
    The navigation is working properly but the parameter is not getting passed, I am not sure why.
    The Called dashboard has a analysis which has IS PROMPTED filter attached to it for the passing filter. I tried various ways to make this work
    Option 1
    In the calling analysis, I am using a Narrative View and inside I have used the below code.
    <a href="saw.dll?Go&Path=/shared/MI/_portal/Client-MI&Page=Supplier%20Detail%20Tab&Action=Navigate&P0=1&P1=eq&P2=Dim%20Supplier.Supplier%20Name%20Current&P3=1+%22STR%20LTD%22"> @2[br/]
    This one navigate but filtering is not happening
    Option 2 (My first preference will be this option)
    Also I tried to provide custom Data Format under the column Properties
    [html]"<font class="nav" onclick=\"JavaScript:GoNav(event, '/shared/MI/_portal/Client-MI/Supplier Detail Tab','Dim Supplier','Supplier Name Current','"@"');\">"@"</font>
    This ends up giving error
    Type mismatch of catalog object /shared/MI/_portal/Client-MI/Supplier Detail Tab -- expected , got .
      Error Details
    Error Codes: UVWDR6UA 
    Also, both the tabs (Called and Calling are under the same Dashboard)
    Can anyone please let me know, were I am making mistake. I tried refereeing Oracle documentation but still no result.
    Thanks

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

  • Add Multiple Detail Items Using the Same Query String Parameter

    I am using InfoPath 2010 and SharePoint 2010. 
    I have 2 forms libraries - Expense and Expense Details. 
    The 2 libraries are linked via a custom site column Expense ID. 
    The Expense form contains the main header type info you would typically find on an expense report; e.g., name, purpose, department, etc. 
    The Expense Details form contains multiple detail expenses related to the main expense report such as airfare, rental car, etc. 
    I have created a page that displays an expense report with all of the related expense detail items. 
    The page contains a link to add a new expense detail and passes the Expense ID of the Expense form to the Expense Detail form. 
    This all works fine.  The problem comes in after the first expense detail form is submitted. 
    I can successfully submit the first detail item.  However, the expense detail form loses the Expense ID that was passed to it after the first expense detail form has been submitted. 
    The parameter still shows in the URL but the detail form no longer shows the value of the parameter. 
    What do I need to do in order to be able to add multiple expense detail items using the same Expense ID that was passed to the form? 
    I have tried using a Submit Behavior of Open a new form, Close the form, and Leave the form open. 
    None of these options give me what I need.  Thanks for your help.
    pam

    Laura Rogers Blog
    In case anyone stumbles upon this looking for an answer. Laura Rogers has the answer found in the comments section of her blog above.  It’s not the best but it
    does work. You have to add an extra Info Path Web Form for it to work. I know, you can roll your eyes.<o:p></o:p>
    Steps.<o:p></o:p>
    1. Add Query String<o:p></o:p>
    2. Add the extra Info Path form to the page. This form will be a hidden on the page and will receive the value from the query string.<o:p></o:p>
    3. Add your original Info Path form and have it receive a parameter from the hidden Info Path form.<o:p></o:p>
    Now, when you hit save and it opens a new form the 3 Info Path form will function properly. <o:p></o:p>

  • Newbie question: Using the pen tool

    Hi, I drew a shape with the pen tool in Flash CS4. When I double click on  the line it highlights the entire shape, but I can't fill for some  reason.  If I single click, only part of the line is highlighted (before it  changes angle). How can I get this line to connect as a shape to invoke  fill on it?
    Thanks, Mike

    also check out the "close large gaps" option when using the paintbucket tool
    http://www.wonderhowto.com/how-to-close-large-gaps-fill-color-adobe-flash-cs4-305979/

  • A simple question: Using the user-folders differently

    Hello,
    I'm still getting started with my mac, that's why I have a pretty basic question:
    There are these user-folders on every mac: Documents, Music, Pictures etc.
    But since I sort my photos and videos by date, I often have pictures and videos in one single folder and don't want to seperate them in these user-folders pictures and movies.
    That's why I'd like to create a new folder next to Documents, Music... called "Photo_Video" (or something like that) where I can put all my photos and videos in.
    So, my first (stupid) question: Is it ok to create a new folder in /Users/NAME/_____ ? I'm asking this because the existing folders seem to be kind of special (system folders?). Sorry about this, but I want to get everything right.
    My second question: Is there a downside of NOT using "Movies" and "Pictures" for my media? I've heard somewhere that these folders are in some way protected against external usage.
    Thank you!
    -Lemon17.

    Yes, you can create folders inside your Home. The folders there are not terribly special, but the Finder does treat them as such by putting that badge on the folders.
    If you have multiple users and want to keep the folders private, you'll need to change the user permissions on the folders you create. When you create a new folder, it inherits the permissions of the enclosing folder. Your Home is set to allow other users to see directly inside so that they can see your Public folder and so the Web server can see into the Sites folder.  Because of that, the new folder you create will allow others to see inside of it.
    To change the permissions, select the new Folder and Get Info on it. The info window will open and the permissions are at the bottom. The list of permissions will have you as the owner and you will have read/write access. It will also have a group (I think Staff), and Everyone. Select any Groups (icon with two silhouettes) and delete them (- button). For Everyone, set it to No Access. If you are the only user and you don't share out folders over the network, then it isn't likely necessary to change the permissions.
    I can't think of a downside of using other folders. The potential downside of not using iPhoto is you won't have the media browser to select photos from. But, that's not a really big deal if you can easily identify your photos in the file structure.

  • How to handle the date attribute,passing parameter from one page to another

    hi Friends,
    i want to pass data attribute from one page to another page-
    i am passing like below ,in jdev log window i am getting below error.
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
    params.put("StatusUpdateDate",StatusUpdateDate)
    Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
    Suppose i am passing like below , while moving one page to another i am getting below error in application
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
    Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
    please can any suggest me how to handle this error.
    Thanks and Regards,
    vamshi

    Hi Pratap, Thanks for your help
    it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
    AM CODE-
    public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
    DetailVOImpl vo1=getDetailVO1();
    vo1.initQuery2(Name);
    Row detailRow = vo1.createRow();
    detailRow.setAttribute("Name", Name);
    detailRow.setAttribute("Email", Email);
    detailRow.setAttribute("Product", Product);
    detailRow.setAttribute("Region", Region);
    detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
    vo1.last();
    vo1.next();
    vo1.insertRow(detailRow);
    detailRow.setNewRowState(Row.STATUS_INITIALIZED);
    Controller- Process Form Request- Source page
    if (pageContext.getParameter("Detail")!= null)
    String Name=row.getAttribute("Name").toString();
    String Email=row.getAttribute("Email").toString();
    String Product=row.getAttribute("Product").toString();
    String Region=row.getAttribute("Region").toString();
    DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
    HashMap params =new HashMap();
    params.put(" Name", Name);
    params.put("Email",Email);
    params.put("Product",Product);
    params.put("Region",Region);
    pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
    pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    another page Controller-Process request-Destination page-
    String Name = pageContext.getParameter("Name");
    String Email = pageContext.getParameter(" Email");
    String Product = pageContext.getParameter("Product");
    String Region = pageContext.getParameter("Region");
    DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
    Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
    System.out.println("tstmpStatusDate"+tstmpStatusDate);
    Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
    am.invokeMethod("xxselection", parameters1);
    Error - getting at while running the application page to page
    No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
    every thing is getting passed except DATE Attribute, please check the code and update me
    Thanks in Advace-
    vamshi

  • How to use the checkbox for bapi parameter ?

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

    Dear All,
        Now, i find some code as below.
    The BAPI is uesd to create or update the sales order; but  checkbox for bapi parameter have not been give values 'X'. why?
    take the first bapi for example, i think table order_items_inx (table parameter) should be given value 'X' for the field which will be update.
      Could you teach what happed?
    case gt_all_hd-sd_doc_cat.
          when 'C'.
            call function 'BAPI_SALESORDER_CREATEFROMDAT2'
              exporting
                order_header_in     = gs_order_hd
              importing
                salesdocument       = gv_vbeln
              tables
                return              = gt_return
                order_items_in      = gt_items
                order_partners      = gt_partners
                order_schedules_in  = gt_schedules
                order_conditions_in = gt_conditions.
          when others.
            call function 'BAPI_SALESDOCU_CREATEFROMDATA1'
              exporting
                sales_header_in     = gs_order_hd1
              importing
                salesdocument_ex    = gv_vbeln
              tables
                return              = gt_return
                sales_items_in      = gt_item1
                sales_partners      = gt_part1
                sales_schedules_in  = gt_sch1
                sales_conditions_in = gt_cond1.
        endcase.

  • HT201363 I cant reset my security questions using the rescue eamil. Can you help me please!

    Omg , help please !

    Answered by Niel many times thus:
    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    Best of luck.

  • Problem when using the Http TimeOut system parameter in JDK 1.4

    Hi,
    The JDK 1.4 URLConnection class seems to be caching the timeout values in JDK 1.4. Hence this result in a inflexibility of setting the timeout value once for the entire functioning of the JVM. The sample code is below
    public class TestUrlConnection {
         * main method
         * @param args
         public static void main(String[] args) throws Exception {
              try {
                   System.setProperty("sun.net.client.defaultReadTimeout","1000");
                   System.out.println("Testing Connection Timeout Parse I");
                   URL url =
                        new URL("http://localhost:9080/StrutsApplicationWeb/timeOutTest.do");
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   System.out.println("Conn Type:" + conn.getContentType());
                   System.out.println("Conn Encoding:" + conn.getContentEncoding());
                   System.out.println("Conn Resp Code:" + conn.getResponseCode());
              } catch (SocketTimeoutException se) {
                   System.out.println("Timeout parse I");
              try {
                   System.setProperty("sun.net.client.defaultReadTimeout","25000");
                   System.out.println("Testing Connection Timeout Parse II");
                   URL url =
                        new URL("http://localhost:9080/StrutsApplicationWeb/timeOutTest.do");
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   System.out.println("Conn Type:" + conn.getContentType());
                   System.out.println("Conn Encoding:" + conn.getContentEncoding());
                   System.out.println("Conn Resp Code:" + conn.getResponseCode());
              } catch (SocketTimeoutException se) {
                   System.out.println("Timeout parse II");
    The server is a URL that produces an delay of 20 secs. Hence as per above code the first parse should fail but the second one should succeed. As URLConnection is caching the timeout value, the code is not functioning properly. Do you guys think, it is ok for URLConnection to cache timeout values???

    that is odd. I thought I saw the source to
    HttpURLConnection once, and the default timeout is
    hardcoded in the code, so there was no way of setting
    the time out. maybe right, i saw that setting a system property the second time dint seem to alter the value, but made the mistake of assuming that the connection picked up the timeout value first time from the system property the first time it was defined
    >
    1.5 changes this.setConnectionTimeout(int)

  • Using the "highlight" parameter in an URL to open a PDF

    I have read the "PDF Open Parameters" document:
    http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
    I am trying to use the "page" and "highlight" parameter in a URL (called from Flash) to open a PDF to a specific page and then draw a rectangular highlight on a specific area on that page. According to the above document, I should be able to do this by using the following URL:
    http://www.MySite.com/MyPdf.pdf#page=10&highlight=10,20,30,40
    This will open the PDF to the proper page (10) but I don't see any highlight. The "PDF Open Parameters" describes the usage of the "highlight" parameter as follows:
    highlight=lt,rt,top,btm "Highlights a specified rectangle on the displayed page. (Use the page command before this command.)
    The rectangle values are integers in a coordinate system where 0,0 represents the top left corner of the visible page, regardless of document rotation."
    It sounds to me that all I'm supposed to do is define the left (lt), right (rt), top and bottom (btm) boundaries of the rectangle by a single integer.
    But, why am I not seeing the highlight? Do I need to use co-ordinate X,Y sets? Are the integers I am supposed to be using pixels, or arbitrary units? If 0,0 is the top left corner of the page... what's the bottom right corner?

    Try this:
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf#page=7&highlight=100,2 00,600,400
    (0,0) is the bottom left corner of the viewed PDF page.
    For an 8.5 x 11 page size; the x-axis ranges from 0 to 612 and the y-axis ranges from 0 to 792.
    (points -- 72 to an inch)
    In an AUC thread about placing an annotation to a specific location on a PDF page, Thom Parker wrote:
    "There are several coordinate systems used in Acrobat. 
    The info window uses a modifed version of Rotated User Space. 
    There's also device space, which is the OS's window coordinate system, it also starts at the top left.
    But for placing things onto a PDF page there are two main spaces "Default User Space" and Rotated user space. 
    Both put (0,0) at the bottom left corner, sort of."
    An article on PDF page geometry
    http://www.acrobatusers.com/tutorials/2007/10/auto_placement_annotations
    Be well...
    Message was edited by: CtDave
    Message was edited by: CtDave

  • Help me in passing parameter

    <%@ page import="java.net.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    <html>
    <head>
         <title>Untitled</title>
    </head>
    <body>
    <%
         Vector mail = new Vector();
         try{
         Class.forName("com.mysql.jdbc.Driver").newInstance();
         catch (Exception E) {
         out.println("Unable to load driver.");
         E.printStackTrace();
         try{
              Connection C = DriverManager.getConnection("jdbc:mysql://localhost/attendance","root","");
    %>
    <div align="center"><font size="+6">Student BarList</font><br>
    In this page will display out the student that attendance NOT MORE THAN 70%. The Student Below is NOT ALLOW to take exam for the relevant subject.
    The student whoever not satisfy with the bar can negotiate with the lecturer of the relevant subject.<p/>
    The student below will be bar from the relevent subject:
    <%Statement S = C.createStatement();
                   ResultSet rs = S.executeQuery("SELECT * FROM bar");
                   ResultSetMetaData rsStruc = rs.getMetaData();
    out.println("<table bgcolor=red cellpadding=10 cellspacing=1 size=70>");
                   out.println("<tr bgcolor=red>");
                   int colCount = rsStruc.getColumnCount();
                   String colName = "";
                   for(int i=1;i <= colCount; i++){
                   colName = rsStruc.getColumnName(i) ;
                   out.println("<td><B><font color=white>" + colName + "</font></b></td>\n");
                   out.println("</tr>");
                   while (rs.next()) {
                   String email=rs.getString("email");
                   mail.addElement(email);
                   out.println("<tr bgcolor=ffffff>");
                   for(int i=1;i <= colCount; i++){
                   colName = rsStruc.getColumnName(i) ;
                   String fld = rs.getString(colName);
                        out.println("<td>" + fld + "</td>");
                   out.println("</tr>");
                   out.println("</table>");
                   rs.close();
                   C.close();}
    catch (Exception E) {
         out.println("SQLException: " + E.getMessage());
         for(int i=0; i< mail.size(); i++){
    String add= mail.elementAt(i)+",";
    out.println(add);
         %>
    <form action="simplemail.jsp" method="post">
    <input type="text" name="address" value="<%=add%>">
    <input type="submit" name="send" value="Send Mail">
    </body>
    </html>
    what problem with my page i want to read the vector data then set it inside the variable (e.g [email protected],[email protected]) then put it into the textbox and passing parameter to next page.. how i gotta solve this problem?

    i have to use the hidden input html to send the vector to the next page but found out the problem "Type mismatch: cannot convert from String to Vector"
    <%@ page import="java.net.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <%
    Vector mail = new Vector();
    try{
    Class.forName("com.mysql.jdbc.Driver");
    catch (Exception E) {
    out.println("Unable to load driver.");
    E.printStackTrace();
    try{
    Connection C = DriverManager.getConnection("jdbc:mysql://localhost/attendance","root","");
    %>
    <div align="center"><font size="+6">Student BarList</font><br>
    In this page will display out the student that attendance NOT MORE THAN 70%. The Student Below is NOT ALLOW to take exam for the relevant subject.
    The student whoever not satisfy with the bar can negotiate with the lecturer of the relevant subject.<p/>
    The student below will be bar from the relevent subject:<br/>
    <%
    Statement S = C.createStatement();
    ResultSet rs = S.executeQuery("SELECT * FROM bar");
    ResultSetMetaData rsStruc = rs.getMetaData();
    out.println("<table bgcolor=red cellpadding=10 cellspacing=1 size=70>");
    out.println("<tr bgcolor=red>");
    int colCount = rsStruc.getColumnCount();
    String colName = "";
    for(int i=1;i <= colCount; i++){
    colName = rsStruc.getColumnName(i) ;
    out.println("<td><B><font color=white>" + colName + "</font></b></td>\n");
    out.println("</tr>");
    while (rs.next()) {
    String email=rs.getString("email");
    mail.addElement(email);
    out.println("<tr bgcolor='ffffff'>");
    for(int i=1;i <= colCount; i++){
    colName = rsStruc.getColumnName(i) ;
    String fld = rs.getString(colName);
    out.println("<td>" + fld + "</td>");
    out.println("</tr>");
    out.println("</table>");
    rs.close();
    C.close();}
    catch (Exception E) {
    out.println("SQLException: " + E.getMessage());
    //String add = "";
    //for(int i=0; i< mail.size(); i++){
    //add = mail.elementAt(i)+",";
    //out.println(add);
    %>
    <form action="simplemail.jsp" method="post">
    <input type="hidden" name="address" value="<%=mail%>">
    <input type="submit" name="send" value="Send Mail">
    </body>
    </html>the vector should be pass to this page:
    <%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
    <%
    Vector to2= new Vector();
    to2=request.getParameter("address");
    //String subject=request.getParameter("subject");
    //String message2=request.getParameter("message");
    for(int i=0; i< to2.size(); i++)
         String add = (String)to2.elementAt(i);
         System.out.println(add);
    Properties props = new Properties();
      props.put("localhost:25","localhost:25");
      Session s = Session.getInstance(props,null);
      MimeMessage message = new MimeMessage(s);
      InternetAddress from = new InternetAddress("albert");
      message.setFrom(from);
      InternetAddress to = new InternetAddress(add);
      message.addRecipient(Message.RecipientType.TO, to);
      //message.setSubject(subject);
      //message.setText(message2);
    message.setSubject("Bar exam acknowledgement");
    message.setText("You been bar from the exam, please check on the student attendance online for more information");
      Transport.send(message);
    %>
    <html>
    <p align="center">A Message has been sent.<br>Check your inbox.</p>
    <p align="center"><a href="mail.html">Click here to send another!</a><br>
    </p>
    </html>please help me!!! i stuck in this oledi

  • How to pass parameter for table name in  form6i.

    Hi ,
    I am facing the problem to pass parameter for table name in form6i.
    If any solution please infirm me earliest to my mail id.
    ([email protected])
    example:
    begin
    select ename into :ename
    from :tab_name
    where empno =7788;
    end;
    It gives error as bad bind variable 'tab_name'
    *** where :ename and :tab_name are form fields
    Thanking you,
    Balasaheb

    object name not taken as table --> what do u mean by
    this?
    Please be more clear..
    Regards
    PriyaI have two block. First block I am displaying all the table using user_objects table. Another block I want display, user which table selected, corresponding table all the records.

  • Problems in using the driver coming with application in Crystal Report

    Post Author: StrongWare
    CA Forum: Data Connectivity and SQL
    Hi! All,
    I used the ADORecordSet to fetch data from tables, and pass it to ther report at runtime using AddADOCommand.
    I got the ActiveConnection and ActiveCommand from ADORecordSet and passed them as parameters of AddADOCommand, it seems the AddADOCommand opens an addional connection, which can be told from the ODBC trace, instead of using the ActiveConnection I passed in.
    Is that true?
    It causes the big problem for me, since the ActiveConnection I passed in was opened using our OEM DataDirect driver and I assumed the AddAdoCommand uses it directly, but it is not the case!! The AddADOCommand just uses the connection information from ActiveConnection and opens an additional one. Since the connection string contains the driver name, so this connection is also opened via our OEM DataDirect Driver. But the Crystal Report tries to unlock it using its own license/password {qecr.lic,brahmabrahmabrahmabrahma} to unlock our OEM driver, which of course raises the license warning from DataDirect Driver 5.2!! After a certain grace period, any sql operations under the cover of AddADOCommand fail and thus causing the failure of AddADOCommand.
    Now what is the solution?
    1. how to avoid open an additional connection? or any other API I should call to avoid this?
    2. How Crystal Report works with the driver coming with the application, and this driver needs to be unlocked before being used.
    Thanks
    Strong

    I don't have the any driver's source code (such as ividcpwr.dll source code), how can I modify the specific driver through labwindows.
    Follow your advice I use I/O trace to get trace as follows:
    1 IviDCPwr_InitWithOptions ("ke2303", VI_FALSE, VI_TRUE, "", 0x0C913064) VI_SUCCESS 14:45:10.675
    2 IviDCPwr_ConfigureVoltageLevel (ke2303, "CHANNEL1", 3.8) VI_SUCCESS 14:45:11.405
    3 IviDCPwr_ConfigureCurrentLimit (ke2303, "CHANNEL1", 0, 3) VI_SUCCESS 14:45:12.104
    4 IviDCPwr_ConfigureOutputEnabled (ke2303, "CHANNEL1", VI_TRUE) VI_SUCCESS 14:45:12.824
    5 IviDCPwr_Measure (ke2303, "CHANNEL1", 1, 0) VI_ERROR_TMO 14:45:16.207
    6 IviDCPwr_GetError (ke2303, -1073807339, 0, "") 0x00000037 14:45:32.991
    7 IviDCPwr_GetError (ke2303, -1073807339, 55, "Primary Error: ..................") VI_SUCCESS 14:45:32.991
    8 IviDCPwr_close (ke2303) VI_SUCCESS 14:45:33.847
    I cannot see any GPIB command in the trace but some IviDCPwr functions.
    Besides, if I know any bug (eg. some wrong GPIB command) in ividcpwr.dll, how can I modify it before I get it's source code.
    Pls teach me anytime in your conveneince.
    thanks!

  • What is the difference between using the command "dsmgmt" and the "Managed By" tab when adding users to the local administrators Account on a Read-Only Domain Controller?

    When I use the
    "dsmgmt" command to add a user to the local administrators account of a RODC I can actually see the user when I use the "Show Role Administrators" parameter. However, I can't see the members of the
    group added to the "Managed By" tab of the RODC object in AD. Even though, the users added using
    "dsmgmt" and by the "Managed By" tab can all log in locally and have admin rights to the RODC. Are there any differences between these two ways of adding users to the local administrators account? 

    Hi,
    For groups, managedBy is an administrative convenience to designate “group admins”. Whatever principal listed in
    managedBy gets permission to update a group’s membership (the actual security is updated on the group’s AD object to allow this).
    In Win2008 and later managedBy also became the way you delegated local administration on an RODC, allowing branch admins to install patches, manage shares, etc. (http://technet.microsoft.com/en-us/library/cc755310(WS.10).aspx). 
    On the RODC, this is updating the RepairAdmin registry value within RODCRoles.
    So the difference between them should be only the way they do the same thing.
    For more details, please refer to the below article:
    http://blogs.technet.com/b/askds/archive/2011/06/24/friday-mail-sack-wahoo-edition.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Read a csv file in a PL/SQL routine with the path as a parameter

    hello oracle community,
    System Windows 2008, Oracle 11.1 Database
    I have created a directory in the database and there is no problem to read a csv file from there. Since the files can be at different places, my java developer is asking me, if he can give me the path of the file as a parameter. So far I know I will need a directory to open the file with the UTL_FILE package, but I cannot create diretories for folders, that will be created in the future. Is there any way to solve that problem, so I can use the path as a parameter in my routine ?
    Ikrischer

    BluShadow wrote:
    Ikrischer wrote:
    as I said before, they are dynamic. As usal to most other companies, you get new partners and you will lose partners, so new folders will be added, old ones will be deleted. if you use different directories for different folders, you have more work to handle them.I wouldn't call that dynamic, I would call that business maintenance. Dynamic would mean that the same company is putting their files into different folders each time or on a regular basis. If it's one folder per company then that's not dynamic.the folder structure is changing, I call that dynamic, does not look static to me. but thats just a point of view, it is not important how we call it. lets just agree, the folder structure will change in the future, no matter how many folders one partner will have.
    BluShadow wrote:
    So you're receiving files and you don't even know the format of them? Some of them are not "correct"? Specify that the company must provide the files in the correct format or they will be rejected.
    Computers work on known logic in most cases, not some random guessing game.we know the correct format, but we also know, that the partner wont always send the correct format, period. Cause of that we want to deliver an error log, record 11,15 and 20 is wrong cause of....that is a very usefull service.
    BluShadow wrote:
    The folders should be known.impossible, we do not know the future.
    BluShadow wrote:
    The file format should be known.see above, it has a fixed format, but thats not a gurantee you get the correct format. for me thats a normal situation, it happens every day, you have fixed rules and they will be broken.
    BluShadow wrote:
    The moment you allow external forces to start specifying things how they want it then you're shooting yourself in the foot. That's not good design and not good business practice.maybe we are talking about different things, we do not allow to load data into our system with a wrong format. but we do allow to to send us a wrong format, and even more, we do allow them to send wrong content, but still we dont load it into our system. format and content must be correct to be loaded in the real system, but both we are checking. and with external tables you cannot check a wrong format we a detailed error log.
    Ikrischer

Maybe you are looking for