Syntax of creating and calling a stored query in Ms Access

What is the syntax of creating and calling a stored query via a java program

Google found this:
http://www.quepublishing.com/articles/article.asp?p=170870 It has some examples about how to call a stored procedure. Not for Access, though - if you have questions about that, ask Microsoft.

Similar Messages

  • Creating and calling stored procedure using jdbc

    When I try to create and call a stored procedure using JDBC a very confusing error message about non-existence of the procedure just created is thrown. Using Informix database (IDS 10). Any pointers to point out what am doing wrong would be great!
    Thanks
    import java.io.FileNotFoundException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Scanner;
    public class CreateStoredProc {
    public static void main(String args[]){
    if (0 == args.length)
    return;
    try {
    Class.forName("com.informix.jdbc.IfxDriver");
    Connection conn = DriverManager.getConnection("jdbc:informix-sqli://10.76.244.120:30000/sampledb:INFORMIXSERVER=krisunda;user=root;password=cisco");
    String q = " create procedure runproc() "+
    " define i int; "+
    " let i = 0; "+
    " end procedure; "+
    " execute procedure runproc(); ";
    Statement stmt = conn.createStatement ();
    stmt.execute (q);
    } catch (Exception e) {
    e.printStackTrace();
    The stack trace:
    java.sql.SQLException: Routine (runproc) can not be resolved.
    at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3204)
    at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)
    at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)
    at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)
    at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2157)
    at com.informix.jdbc.IfxSqli.executeExecute(IfxSqli.java:2132)
    at com.informix.jdbc.IfxResultSet.b(IfxResultSet.java:378)
    at com.informix.jdbc.IfxStatement.a(IfxStatement.java:1299)
    at com.informix.jdbc.IfxStatement.executeImpl(IfxStatement.java:1269)
    at com.informix.jdbc.IfxStatement.c(IfxStatement.java:989)
    at com.informix.jdbc.IfxStatement.execute(IfxStatement.java:875)
    at CreateStoredProc.main(CreateStoredProc.java:37)
    Caused by: java.sql.SQLException
    at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)
    at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)
    ... 10 more

    DriverManager.getConnection("jdbc:informix-sqli://10.76.244.120:30000/sampledb:INFORMIXSERVER=krisunda;user=root;password=cisco");check with ur sys admin wheather the particular user in the database has >execute privilage(rights) also.i mean execute the SP in the DB level.I guess that a root user will have the enough right.
    String q = " create procedure runproc() "+
    " define i int; "+<" let i = 0; "+
    " end procedure; "+
    " execute procedure runproc(); ";
    Statement stmt = conn.createStatement ();
    stmt.execute (q);Try to use the following code:
    String q = " create procedure runproc() "+
    " define i int; "+
    " let i = 0; "+
    " end procedure; "
    Statement stmt = conn.createStatement ();
    stmt.execute (q);
    q=" execute procedure runproc(); ";
    stmt.execute (q);
    Because maybe the driver failed to precompile your sql once, so that nothing happen.

  • How to create and call a COM component in Java

    Hi All,
    can you suggest how to create and call a COM component..or if have any sample simple application can you send it to me...i will try to develop my project.
    actually i am configuring a OCR Engine using SDK which is in VB .Net when i contacted their support they told that if i have any sample COM based component Project they will help me...
    So please can you help in this.
    Thanks in advance.

    As said by my fellow posters Java Devolopment Environment (Except Microsoft implementation of JVM,this is no longer supported by MS themseleves) does not provide an built-in support to serve this cause.
    If you are looking to devolop a custom based solution the below is a good place to start with where end user is talking about Java <=> JNI <=> Native <=> COM connectivity.
    [http://bloggershetty.blogspot.com/2004/12/java-jni-com-activex-bridge-lots-of.html]
    However,if you are looking for ready made solutions ?
    Implementation any one of the solutions stated below might serve your cause.
    Open Source Solutions:
    [http://j-interop.org/]
    [http://www.danadler.com/jacob/]
    Commercial Solutions:
    [http://javacombridge.com/]
    [http://www.jnbridge.com/]
    [http://www.nevaobject.com/j2cdetails.asp?kw=java%20com%20bridge]
    [http://j-integra.intrinsyc.com/]
    Hope this might help :)
    REGARDS,
    RaHuL

  • Read item from Java class and call to stored function/procedure of database

    Hi,
    I am looking solution that I was trying to find becasue of I am not expert and novice of ADF so I am getting problem to do. I am trying migrating from oracle forms to JDeveloper[ADF].
    I want to call database stored function from JSF pages by java bean class of a button press event (manually created) and after button event I have called java class which I created manually. But I can not read that values what I given into jsp page.
    question1: How can I read jsp pages items value to java class ?
    question2: How can I call to database stored function/procedure with that parameter?
    question3: How can I use return value of that stored function/procedure ?
    Please reply me .
    Thanks,
    zakir
    ===
    Edited by: Zakir Hossain on Mar 29, 2009 10:22 AM

    ---

  • How to create and call webservices in VC?

    Hi Experts,
    Please tell me the steps to create web services and how to connect and call in VC.
    Regards,
    Nutan

    Hi,
    all steps are described in the two attached document:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a160392c-0e01-0010-7784-9cc564d871d2">How to Consume ES Workplace Enterprise Services in Visual Composer</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e017128b-0c01-0010-fa85-e3a576f1a40d">Consume a Web Service from Visual Composer</a>
    Rgds,
    Karim

  • Sequence creating and calling

    Hi
    I want to use ODI sequence capability for generating my Primary Key.
    Please help me as to how can I create the same and call it into my interface.
    Its a File to Oracle transfer.LKM used :- File to Oracle
    CKM used :- CKM ORACLE
    IKM used :- Oracle Incremental Update.
    I need the solution asap.Please help me.
    Thanks
    Prashant.

    You could modify your process model to dynamically call a sequence run it and then and dynamically load another sequence and so on.... until all of your sequences have been run.  you would need to add control into the process model that decides which sequence gets run when, and also when to finish looping a terminate.
    Take a look at 'Engine.GetSequenceFileEx' and 'Execution.ClientFile' methods if this sounds like the sort of thing you need.
    Regards
    Steve 
    Message Edited by SercoSteve on 05-30-2006 05:55 AM
    There are 10 types of people in the world that understand binary, those that do and those that don't.

  • Can Power Users or Mgt Create and Design Reports Through Query Designer ?

    Dear BI consultants,
    Iam new to BI.
    My management has requested me to Train Power users from All Modules(FICO,HR,QM,PP,SD,MM) to Create Queries and Design Through Query Designer.
    My question is are we suppose to Give query Designer Access to Power users or Mgt so that they can create Queries and reports by themselves.Please Suggest me wht is the Best Practices.
    is it feasable to train power users and Mgt as to how 2 create queries. will there be any side effect on the System or our end.
    Plz suggest.
    wht are the advantages and disadvantages of this.
    If I train the Power users then is there any risk of my Job.
    since they will be creating all reports by themselves.
    wht else can a BI consultant do since iam in a support project.
    how do i convince my Mgt?
    Plz Suggest.
    Thanks Awaiting

    This is common procedure maintained in most of the company's for end users.
    There is no issue if you train the power users.you will be the first point of contact if they have any doubts.and more over you are supporting for your client right? this can't be handed over to power user or end user. data is imp for the client so there will not be any problem for you, if any issue comes while loading you need to take care of the errors and fix the.
    power users or end user will be familiar with Business requirement not with the Query building logic's not with the BW procedure so no worries for you.
    as vineeth said its better to keep control regarding the global and key things at your end so that you will not loose contol on the reports.

  • Loading jar files and calling java stored procedure

    I am trying to load jai_core.jar, jai_codec.jar, mlibwrapper.jar and another class I created into my project schema. I am having problems with resolving all of the class using the "loadjava -resolve" command as well as using the "alter java class" command. The single class I authored is not in a valid state as well as the PL/SQL wrapper for the function I am calling.
    My questions are:
    1) Does the single class need to be in a valid state before the PL/SQL wrapper will compile and be in a valid state itself?
    2) Are there any special tricks to this becuase the code I am using below doesn't seem to be working correctly?
    3. Should I worry about "resolving/validating" all of the class from the jar file? I have read conflicting views on this topic.
    SQL> CREATE OR REPLACE FUNCTION get_image (p_fileName in varchar2, p_offset in number )
    2 RETURN blob AS LANGUAGE Java
    3 NAME 'gov.irs.rtr.image.ImageUtilityFunction.getImage (java.lang.String, int) RETURN oracle.sql.BLOB';
    4 /
    Warning: Function created with compilation errors.
    SQL> show err
    Errors for FUNCTION GET_IMAGE:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    3/1 PLS-00311: the declaration of
    "gov.irs.rtr.image.ImageUtilityFunction.getImage
    (java.lang.String, int) RETURN oracle.sql.BLOB" is incomplete or
    malformed
    Any help would be greatly appreciated.
    Regards,
    Joey

    We are using Oracle 9.2.0.8 and I have written the single class in 1.3.1.
    The first loadjava commands I tried were:
    loadjava -user username/password -resolve -resolver '((* RTRPROD)(* PUBLIC))' jai_core.jar jai_codec.jar mlibwrapper_jai.jar
    loadjava loadjava -user username/password -resolve -resolver '((* RTRPROD)(* PUBLIC) (* -))' ImageUtility.class
    Then I tried:
    loadjava -user username/password -resolve -resolver '((* RTRPROD)(* PUBLIC) (* -))' jai_core.jar jai_codec.jar mlibwrapper_jai.jar
    errors : class javax/media/jai/operator/EncodeDescriptor
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/codec/ImageCodec could not be resolved
    errors : class javax/media/jai/operator/FileStoreDescriptor
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/codec/ImageCodec could not be resolved
    errors : class com/sun/media/jai/opimage/BMPRIF
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/opimage/CodecRIFUtil could not be resolved
    errors : class com/sun/media/jai/opimage/CodecRIFUtil
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/codec/ImageCodec could not be resolved
    errors : class com/sun/media/jai/opimage/EncodeRIF
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/codec/ImageCodec could not be resolved
    errors : class com/sun/media/jai/opimage/FPXRIF
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/opimage/CodecRIFUtil could not be resolved
    errors : class com/sun/media/jai/opimage/GIFRIF
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/opimage/CodecRIFUtil could not be resolved
    errors : class com/sun/media/jai/opimage/IIPCRIF
    ORA-29534: referenced object RTRPROD.com/sun/media/jai/codec/ImageCodec could not be resolved
    This error messages goes on and on for 44 files.
    I have found out that JAI is part of the Oracle 9 Release 2 but is part of the InterMedia package that is not installed. I would imagine that the JAI libraries mentioned above would be included in InterMedai. However, there are several dependencies on packages distributed in the Sun JDK but not the Oracle Runtime.
    Regards,
    Joey

  • Create and execure a dynamic query

    hi all,
    i'm trying to write a procedure in order to create a dinamyc query and calculate a certain value.
    i coded something like this but it does not work:
    create or replace procedure CALCOLA_OPERAZIONE
    is
    sql_stmt varchar2(2000);
    colonna varchar2(2000);
    tabella varchar2(2000);
    fattore varchar2(2000);
    parametro number;
    bt number := 0;
    cursor cur is
    select cod_colonna,cod_tabella,fattore_bt from table;
    begin
    open cur;
        loop
            fetch cur into colonna,tabella,fattore;
            sql_stmt := 'select :1 * :2 into parametro from :3';
            EXECUTE IMMEDIATE sql_stmt USING colonna,fattore,tabella;
            bt:=bt+parametro;
        end loop;
    close cur;
    EXCEPTION
    WHEN OTHERS THEN
          raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    end;here the error i get:
    An error was encountered - -903 -ERROR- ORA-00903: invalid table namecan anyone help me?
    Edited by: 908335 on 6-feb-2012 1.30

    The good news is that what you want to do should be possible, but you need to take a different approach.
    The bad news is that I agree with the others and think you need to take a step back and think about whether this is a good design. Dynamic SQL is a difficult solultion to implement and (within reason) static sql is almost always more maintaintable.
    Still, if you're doing this as an exercise for your own knowledge or an assignment the technique is something like what I will put below (it will be untested). You will need to build the sql as text, execute it, and get the results. I prefer reference cursors for this kind of work although EXECUTE IMMEDIATE can be used. The solution will look something like (beware typos)
    declare
      ref_cursor sys_refcursor;
      col           varchar2(32767);
      sql_text    varchar2(32767);
      value       varchar2(1);
    begin
      col := 'dummy';
      sql_text := 'select '||col||' from dual';
      open ref_cursor using sql_text;
      fetch ref_cursor into value;
      close ref_cursor;
    end;I will leave it up to you to figure out how to adapt what you have to work like this :)

  • Best way to dynaically create and call seq or steps

    I am trying to create an R&D system which allows for the testing of units over temperature and voltage conditions. I would like the operator to have the ability to randomly select a group test steps from a menu, and select whether to run the groups of tests over any number of temperature and voltage conditions. Each test is a unique VI with a unique connector pane and inputs for the course of the test sequence. Test step inputs are identical from one temp and voltage condition to the next.
    The test list fans out such that a test sequence would perform the group of tests N times the number of Temps and M times the number of voltages. I envision creating testsequence from an array?
    I need to understand the best way to perform this operation. I've looked in the forums and don't see anything that directly addresses this design challenge. I have explored creating sequences and skipping tests as  necessary but this is cumbersome. I am open to creating a LabView GUI to create the sequence or if there is an  easy way in TestStand?
    Thanks in advance for the help,
    BCE

    BCE,
    There are many different ways in which you could implement your test system.  Fortunately, TestStand provides more than enough functionality so you could implement it in different ways.  One of the possibilities you mentioned in your post was to use LabVIEW to generate the TestSequence.  Although this is a good idea, and one that I have seen other customers use, it does have its drawbacks.  In order to create your Sequence you will have to save each Step's information in one of two ways.  You could save it in a file which you would parse through using your VI, or hard code the information into the VI's algorithm.  In both of these cases we will need some kind of file containing the Sequence information, be it a text file or a VI. 
    Wouldn't it be easier to save all the Step information from your Sequence file in a Sequence file itself?  This begs the question, would it be necessary to create a Sequence at all?  Why couldn't we use a Sequence that contains all the possible steps and just disable the execution of some of them based on user input?  In your post you say that you find it cumbersome to skip certain steps.  In my opinion it is much more cumbersome to create a Sequence every time we want to run a test.
    Therefore, I believe the best way to implement your system would be to have the first Step of your Sequence pop up a dialog box where users could select which types of tests they want to run.  (You might even want to add this to the Serial Number window inside the PreUUT callback).  Based on the users' input we would update an array of local boolean variables which determines what tests or test categories should be run.  Each Step in the Sequence would contain a precondition that would read the value from this array and determine if the Step would be executed or not.
    Just my two cents.  What does the rest of the community think?  There is more than one way to skin a cat and TestStand provides more than enough silverware. ;-)
    Regards,
    Santiago D

  • Calling Oracle Stored proc with record type and table Type

    I have a oracle SP which takes record type and table Type which are used for order management.
    Is there anay way to populate parameters with these datatypes and call the stored procedure using ODP.NET?
    Please help.
    Thanks in advance

    Hi,
    ODP supports associative arrays and REF Cursors. There is no support for PLSQL table of records.
    Jenny

  • Calling Stored procedure from MS Access

    Hi! Please help me to understand if possible. I am migrating from accdb (Access 2007) to MSSQL BE and trying to rewrite queries due to performance problem. My question is that I need to use Stored Procedure and call it from Access. I created simple stored
    procedure as a test:
    CREATE PROC Test1 (@Param AS INT)
    SELECT*
    FROM dbo.BOM WHEREdbo.BOM.Customer
    =@Param
    and calling EXEC Test1 10 from MS ACCESS Pass Thru Query no problem. All works fine and I get value 10 being passed to Stored Procedure and I get right results . Now, how can I assign Access Form Control value in place of value 10? Like Forms![Test]![Text1]?
    I tried different things like Declaring variable but no luck. Please help

    Hi Timaxusa,
    Does the link above solve your issue? If the issue persists, please post the detail information about your issue, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Calling Oracle Stored Procedure from BC4J JSP App

    I am on an extremely tight deadline and am trying to get my JSP application to use an Oracle Stored Procedure. I need to take some input from the user and send these values as parameters. Has anyone worked with Stored Procedures in JDev3.1? Please reply with some sample code if possible.
    Thanks.

    Hi,
    Someone posted a similar request the other day. Here is my response to them:
    Basically, you need to create a custom method from your JSP's ViewObject, which calls the stored procedure. You can then call the ViewObject's custom method from the JSP client.
    Here is how I have done it:
    1. Choose the ViewObject that your JSP is based on and choose 'Edit' from the context menu.
    2. On the Java tab of the ViewObject wizard, choose Generate Java File checkbox for the View Object Class and click the Finish button. A file is created under the ViewObject node in the Navigator named 'viewobjectImpl.java'.
    3. Open the viewobjectImpl.java file in the code editor and create a method to call your stored procedure (see sample code below).
    4. Compile the VOImpl.java file.
    5. Choose the view object again, and choose Edit again from the context menu.
    6. On the Client Methods tab, you should now see your method appear in the Available field. Select it and shuttle it to the Selected field.
    7. Click Finish to leave the VO wizard, and rebuild your Business Components project.
    8. In your JSP, call the custom method (see sample code below).
    sample code for custom method calling a stored procedure from VOImpl.java file:
    public int getTotalHits(String mon, String year) {
    CallableStatement stmt = null;
    int total;
    // the call to the PL/SQL stored proc
    String totalhits = "{? = call walkthru.total_hits(?,?)}";
    // use the AM conxn 2 call storedproc
    stmt = getDBTransaction().createCallableStatement(totalhits, 1);
    try
    // Bind the Statement Parameters and //Execute this Statement
    stmt.registerOutParameter(1,Types.INTEGER);
    stmt.setString(2,mon); stmt.setString(3,year);
    stmt.execute();
    total = stmt.getInt(1);
    catch (Exception ex)
    throw new oracle.jbo.JboException(ex);
    finally
    try
    stmt.close();
    catch (Exception nex)
    return total;
    sample render code for calling custom method from JSP custom bean:
    public void render() {
    int totalhits;
    try
    Row[] rows;
    // Retrieve all records by default, the qView variable is defined in the base class
    qView.setRangeSize(-1);
    qView.first();
    rows = qView.getAllRowsInRange();
    // instantiate a view object for our exported method
    // and call the stored procedure to get the total
    ViewObject vo = qView.getViewObject();
    wtQueryView theView = (wtQueryView) vo;
    totalhits = theView.getTotalHits(session.getValue("m").toString(),session.getValue("y").toString());
    out.println(totalhits);
    } catch(Exception ex)
    throw new RuntimeException(ex.getMessage());
    }

  • Creating a print button to call a Report Query and pass filters

    If i use the REPORT QUERY option in APEX 4 to create an statement that is the same one used in an interactive report, can I create a link or button to the REPORT QUERY and pass all the session and filter information from the interactive report to the report query?
    This way I can have the interactive report screen where the user can do all sorts of modifications and such and then pass those to the REPORT QUERY so I can call that from a custom link or button.
    You may ask "why does he need another print button?"
    Answer: I am using a view that has some embedded HTML tags to format the output really nicely. The HTML download version created by the interactive reports works beautifully. The customer also wants a PDF version (meh) which does not render the HTML tags and actually echos them as part of the text. I found that I can create another view that uses the CHR function to create all the breaks and such I was doing with HTML and these do render properly in PDF. So, I figured just have 2 reports: 1 Interactive and 1 using a REPORT QUERY. I just want to call the REPORT QUERY version but use the Interactive Search form to set all the parameters.
    Or, am I over thinking this and there is an easier method?
    I made a previous post where I showed how I got the APEX printing to work and i hoped that helped someone out - fixing this issue would put the whole thing to rest.
    Thanks

    Is BI Publisher desktop (MS Word add-in) a possibility? This would allow you to use MS Word to create your output template (RTF) that would result in a properly formatted PDF. Of course, you'd have to right an updated version of the query without HTML embedded. Just thinking outside of the box.

  • Syntax of creating a stored procedure in Ms Access

    I need to create a stored procedure in Ms Access and i need to create it via a java program .This is the query i have written
    CREATE PROCEDURE procProductsList As
    Select A.Id,B.L_Name from Transaction A,Member B where A.Id = B.Id and A.Id = [@emp] and A.Name = [@name].But when i try to run it i get an error as Syntax error in CREATE TABLE statement.Plz could sumone help.

    //Creates a stored procedure as a resultset
    boolean createStoredProcedure(String strSql,Connection connect)
    Statement stmt=null;     
         int columnCount=0;
         try
              if(connect.isClosed()==true)
                   return false;
                   else
                   stmt=connect.createStatement();
                   stmt.executeUpdate(strSql);                                             
              } //End else
         } //End try
         catch(SQLException sql)
              System.out.print("Sql Exception caught");
              sql.printStackTrace();
              return false;
         } //End catch
         return true;
         } //End function
    //Function for passing the number of parameters in the parameters list
    String getInvokeParamsList(Vector vector)
         String strParamsInvokeList = new String("");
         if(vector==null)
    strParamsInvokeList=null;
         else
              strParamsInvokeList += "(";
              for(int i=0; i < vector.size(); i++)
                   strParamsInvokeList += "?";
                   if(i < (vector.size() - 1))
                        strParamsInvokeList += ", ";
              strParamsInvokeList += ")";
         return strParamsInvokeList;
    //Calls a stored Procedure
    ResultSet callStoredProcedure(Connection connect,String strProcedureName,Vector vecValues)
         ResultSet rs=null;
         try
                   CallableStatement cs = connect.prepareCall("{call " + strProcedureName + getInvokeParamsList(vecValues) + "}");
                   for(int i=0;i<vecValues.size();i++)
                   cs.setString(i+1,(String)vecValues.get(i));
                   rs = cs.executeQuery();
    catch(SQLException sql)
              System.out.print("Sql Exception caught: " + sql.toString());
              sql.printStackTrace();
    catch(NullPointerException npexp)
              System.out.print("NullPointerException Exception caught: " + npexp.toString());
              npexp.printStackTrace();
         return rs;//End catch
    class database1
              public static void main(String[] args)
                   try
                        String strFilepath="C:\\trainee";
                        String strFilename="config.xml";
                        String strvendor="TICPEN0001003";
                        String str1="CREATE PROCEDURE procProductsList As Select A.Id,B.L_Name from Transaction A,Member B where A.Id = B.Id and A.Id = [@emp] and A.Name = [@name]";
                        String proc="stproc";
                        int columnCount=0;
                        clsDatabase clsdb=new clsDatabase(strFilepath,strFilename,strvendor);
                        Connection boolConn=clsdb.getConnect();
                        Vector vec=new Vector();
                        if(boolConn!=null)
                             System.out.println("Connection established");     
                             vec.add("3");
                        vec.add("Glove");
                             boolean b1=clsdb.createStoredProcedure(str1,boolConn);
                             if(b1==true)
                                  ResultSet rs1=clsdb.callStoredProcedure(boolConn, proc, vec);
                                       if(rs1==null)
                                       System.out.println("rs1 null");
                                  else
                                       ResultSetMetaData rsmd = rs1.getMetaData();                         
                                       columnCount = rsmd.getColumnCount();
                                       while(rs1.next())
                                            for(int i=1 ;i<=columnCount; i++)
                                                 String value=rs1.getString(i);
                                                 System.out.println(value);
                             else
                             System.out.print("Stored Procedure not created");
                   else
                        System.out.println("Connection not established");      
    catch(Exception e)
                        //System.out.println("Exception caught4: " + e.toString());
                        e.printStackTrace();
                   }                                                                                          //End catch
         }                                                                                          //End main
    }

Maybe you are looking for

  • DVI output problem

    Hello, I have a 1.83Ghz Core 2 Duo Mini that will not output any video over DVI. I have connected the Mini via DVI to three known-good monitors (Apple 20in Cinema Display, Gateway 22in HD LCD, and an Acer 22in LCD) and can't get any video output. I g

  • HT2534 Why does iTunes keep

    I am trying to update my apps and iTunes keeps asking for my security code on my CC. I enter the new info and it still says invalid. Help

  • I have a MAC 10.5.8 version and wanted to upgrade its OS maverick is this possible?

    Can you upgrade an OS X 10.5.8 to a higher version?

  • Child inherit from parents

    I am traversing down a tree and need to know how i can have the child inherit properties from a parent if its value is null; version 10g example id, parent_id, type 1, null, A 2, 1, A 3, 2,null 4, null, B 5, 4, null for ids 3 and 5 i would like the t

  • A point of reference

    i'm relatively new to css for about 3 weeks now ive been trying out codes. Ive been teaching my self using eric meyer on css. But so far its still a jumbled thing in my mind. So i am making a prop site from scratch just so it makes logical sense all