PL/SQL String - To see what's in?

Hello,
I have a long sql-statement in a region source.
The type ist "SLQ Query(PL/SQL function...)
Example of my code:
declare q varchar(4000);
begin
q:= ' SELECT org ';
If :P110_EMPLOYEE = '%null%' and :P110_WRKCTRL1 = '%null%' then q:=q||' BUKRS Name, '; else null;
end if;
q:=q||' FROM csdb.v_user_org, csosap.pa2_mon a WHERE 1=1';
if :P110_WRKCTRL1 <> '%null%' then q:=q||' and ARBPL = :P110_WRKCTRL1 '; else null; end if;
return q;
end;
In "q" ist the long sql string. Now I get some error messages.
It is very difficult to find a solutions because "q" ist very long.
Is it possible, to get someting like messagebox. popup or print a file to see what's in "q" (the sql stringer)?
Thanks a lot.
Andre

Hello Andre,
Please check if the following have any relevance to your situation - Re: ORA-06550 recieved when trying to modify existing page after 3.1 Apex u .
>> Is it possible, to get the content from the item (:P110_Enddate) and
not the name?
You can try using a substitution string notation e.g. “& P110_Enddate.”. The trailing period is part of the syntax.
Regards,
Arie.

Similar Messages

  • SQL query to see what the db/schema is doing

    My apologies in advance as I am sure this has been covered. However, my google foo is failing me. :(
    Oracle 11g on Centos 5
    I am running a script against the database from my local pc through command prompt. I am wanting to run a query against the db to see what part of the script it is running and if it's possible I would like to be able to see if it is doing read / writes. Similar to an onstat on informix.

    Welcome to the forum!
    >
    I am running a script against the database from my local pc through command prompt. I am wanting to run a query against the db to see what part of the script it is running and if it's possible I would like to be able to see if it is doing read / writes. Similar to an onstat on informix.
    >
    Oracle has no equivalent to onstat - http://www.oninit.com/onstat/
    Oracle also has no knowledge of your 'script' contents.
    As SB mentioned you can get a list of sessions and their identifiers. Then you can query the V$SESSION_LONGOPS system view to get information about long running operations.
    See V$SESSION_LONGOPS in the Database Reference. The same doc (see index) has information about V$SESSION and V$SQL
    http://docs.oracle.com/cd/B19306_01/server.102/b14237/dynviews_2092.htm#REFRN30227
    >
    V$SESSION_LONGOPS
    This view displays the status of various operations that run for longer than 6 seconds (in absolute time). These operations currently include many backup and recovery functions, statistics gathering, and query execution, and more operations are added for every Oracle release.
    To monitor query execution progress, you must be using the cost-based optimizer and you must:
    •Set the TIMED_STATISTICS or SQL_TRACE parameter to true
    •Gather statistics for your objects with the ANALYZE statement or the DBMS_STATS package
    You can add information to this view about application-specific long-running operations by using the DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS procedure.
    >
    If you provide more information about what commands are in your script, what the script does and what information you are trying to obtain maybe we can be of more help.

  • Can anybody see what is wrong with this SQL statement?

    Hey guys, just a quick question. Can anybody tell me what is wrong with this line of SQL? I keep getting a syntax error message. I've been trying for ages and I can't see any problem at all!"
    {code}prepStat = connection.prepareStatement("INSERT INTO WeatherHistory (Date, Location, Overview, Temperature, WindDirection, WindSpeed, Pressure) VALUES ('"+date+"','"+location+"','"+temp+"','"+windDir+"','"+windSpd+"','"+pressure+"')");{code}
    All the field names and variables definitely exist so I can't see what the problem is!

    DHD wrote:
    Thanks for the replies.
    I've matched the correct number of column names and variables, but still no luck.
    And how exactly am I misusing Prepared Statements here?As noted above, not according to the code you posted. I didn't just pluck something out of my @ss and throw it out there. There was a reason behind what I said. And, if you mean you changed it, and you still got an exception, then post that exception (completely), and your new code, which is, hopefully, using PreparedStatement, (properly).

  • Please tell me SQL to see, what tables are locked by which user

    could you please tell me the query
    so that I can see, what tables are locked by which user in a databse
    Thanks

    The only way you can ensure that only one transaction touches the data at any one time is to use a select .. for update nowait statement to select the rows to be updated.
    Try this::
    Where I select the data i want to update in a cursor Incase the row is locked due to any reason it will throw me an error as shown below;
    SQL>DECLARE
      2   cursor c
      3   is
      4   select * from emp
      5   where empno = 10
      6   for update nowait;
      7  BEGIN
      8 
      9   for rec in c
    10    Loop
    11     update emp set ename ='J' where empno = 10;
    12    End Loop;
    13   
    14  DBMS_OUTPUT.PUT_LINE('Record Updated');
    15 
    16  EXCEPTION
    17 
    18  WHEN OTHERS THEN
    19 
    20  DBMS_OUTPUT.PUT_LINE(sqlcode || sqlerrm);
    21 
    22  END ;
    23  /
    -54ORA-00054: resource busy and acquire with NOWAIT specified
    PL/SQL procedure successfully completed.Edited by: J99 on Jul 28, 2009 4:57 PM

  • Building an SQL string

    Hi, I have run into a problem where i'm not sure how to start. I'm generating reports based on what criteria a user chooses. Here is a list of variables that are possible criteria.
    String rep     
    String callType
    String action           String phone
    String name
    String startDate
    String endDate
    String endTime
    String startTime
    All the following variables are populated based on user input. The reports give information on calls taken by Internet HelpDesk staff. For example, lets say a manager wants to see "all calls that were created by a representative with the name of "ANDY" that was created on the date of 10/13/2001. This means that rep = "Andy"; and startDate = "10/13/2001;, and that all other variables are null or empty strings. After checking all variables, the SQL statment should look something like "SELECT (table fields) FROM (tables) WHERE Representative ='"+rep+"' and Date = '"+startDate+"'"
    My problem is building that sql string because it can be so many different things. If all variables are null, Then there should be no 'WHERE' and no quotes anywhere just "SELECT (table fields) FROM (tables)" you see what i mean
    I'm not sure what the best way to approch this is. I'm pretty sure i can do it with some crazy if statements but am also more sure that thats not the best way to do it.
    Any suggestions on how to approch this?
    Thanks in advance

    I don't think you/anybody could find a better way to
    do that because you have so many possible criteria.
    How do you know you are more sure there is the "best
    way" to do that? If you are sure, how to do that?
    Never mind if you are not sure. :-)Thanks jrodi

  • Building SQL String ?

    I am trying to build a SQL String and send it to the database...
    this is how i am trying to form a query string
    StringBuffer sBuff = new StringBuffer(250);
    sBuff.append("old information")
    sBuff.append("new history added twice");
    String caseObjId = "2567034";
    StringBuffer queryBuff = new StringBuffer(250);
    queryBuff.append("UPDATE table_case ");
    queryBuff.append("SET case_history =" + sBuff);
    queryBuff.append("WHERE objid =" + caseObjId);
    i am getting SQL Exception saying
    com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near 'information'.
    let me know what where i am doing mistake
    thanks
    KM

    The previous posters are right on target for debugging your problem; if you printed out the query that's giving you problems, you would see:
    UPDATE table_case
    SET case_history =old informationnew history added twice
    WHERE objid =2567034 and the problem then becomes obvious that the string/varchar data needs to be quoted.
    That will fix your immediate problem.
    However, since you are obviously a newbie, I'll tell you how to fix 2 or 3 more problems; don't use Statement, use PreparedStatement and bind your parameter values.
    <rant>
    First, when a database executes a SQL statement for the first time, it has to "parse" it. "parsing" is an awful like compiling in that it often takes 100 times longer or more to compile a bit of code than it does to execute it. A good database will check a cache of parsed SQL to see if it doesn't need to parse again, but it often relies on an exact match of the SQL. If you use Statement and change the value of case_history or objid, it's not an exact match. However, if you use PreparedStatements, your values aren't part of the SQL; therefore you get a lot more matches in the parse cache and the database saves a huge amount of work.
    Second, when you build up SQL with embedded values like you're doing, you have to deal with any special characters appropriately; in particular the single quote character; for example, if you have a LAST_NAME column, you need to support the name "O'Conner"; the single-quote in the middle has to be recognized and properly escaped. This problem simply goes away with parameter bindings; the code and the data are widely seperated and there's no question where the boundary is.
    Third, building up SQL in the way you did is the technique that causes a major security hole an poorly coded applications. Let's say you're building an e-commerce site that will keep customer credit card numbers on file (risky) and want a function to display credit card numbers given an account number (not really a good idea, but it illustrates the technique). You have code like:
    StringBuffer queryBuff = new StringBuffer();
    queryBuff.append("SELECT CC_FIRST_NAME, CC_LAST_NAME, CC_NUMBER, CC_EXP ");
    queryBuff.append("FROM CARD_DATA);
    queryBuff.append("WHERE account_number  =" + acct_number);this will work just great when a user enters their account number of "1234567", and it will work just great (for the hacker) when the account number is entered as "1234567 or (CC_FIRST_NAME = 'Bill' and CC_LAST_NAME = 'Gates')"; the hacker's add-ons are treated as code, not data, and the e-commerce site spits up a customer's data to an authorized person. Again, parameter binding prevents this and add-ons get treated as part of the account number, probably generating a data-type error on the database. Obviously, you can validate the data to numerics in this example, but if you use PreparedStatement instead, you don't have to think, it takes care of itself.
    </rant>

  • SQL Strings in Where Clause - single quotes issue

    All,
    I’m having issues related to SQL String literals when trying to deploy to flash. The complication works fine but I then get a message (see below) stating that a ; is missing. The SQL query and the iview runs fine when we use numeric values or do not apply a where clause on the table.
    I am using Visual Composer that has been packaged with NW2004sSP7_Preview
    VC & Flex Version: 645.7.0.3
    The Error message is get is;
    Error in executing a process for Flex compilation, Error 1033: ';' expected
          (C:usrsapJ2EJC01j2eeclusterserver0GUIMachine_Business_Packagestest_48731FLEX_COMPILATION_FOLEDRAADCN.mxml:269)
    Error 1205: The statement 'Test' is incomplete.
          (C:usrsapJ2EJC01j2eeclusterserver0GUIMachine_Business_Packagestest_48731FLEX_COMPILATION_FOLEDRAADCN.mxml:269)
    Failed to compile AADCN.mxml
    When I goto the deployment file – it has the below line;
    <i>'<Request type="EXECUTE_RELATIONAL" system="BI_JDBC" system_type="SAP_BI_JDBC" maxrows="500" templateid="BIR_SQL"><Objects type="INPUT" shape="OBJ" role="INPUT"><Object type="INPUT_FIELD" id="SQL_STATEMENT" appName="SQL" mapped="0" value=""/></Objects><Objects type="OUTPUT" shape="SET" role="OUTPUT"><Object type="OUTPUT_FIELD" id="name" appName="name"/></Objects><Objects id="1" type="TEMPLATE_PARAMETER"><Object id="2" type="SQL" value="select name from pub.srcompany where name ='Test Company'"/></Objects></Request>';</i>
    It seems that the parser for the flash deployment is prematurely finishing the parse when it hits the single quotation in the SQL string!
    We had a similar error where if we had a carriage return in the SQL (e.g. between the from & the where clause) then the deployment parser was stating that the line finished prematurely. In the deployment file the carriage return forced a new line thus making the message incomplete. Removing the carriage return resolve that issue
    The SQL Preview in the SQL Editor within VC works fine with the string literals in the where clause.
    The functionality compiles & deploys in web dynpro however it does not return the results to the table
    Questions
    1:> Has anyone successfully used flash with string literals in the SQL where clause or had seen this issue in the past?
    2:> Is there a setting to get the SQL working on Web dynpro for the information to be returned that I may have missed?
    Any assistance would be greatly appreciated.
    Best Regards,
    Ian.

    Hey,
    I have worked with SQL Editor a lot. Here's a how to guide I put together on it:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6339e7d4-0a01-0010-1c98-db00e52e989a
    Let me know if that helps...
    Prakash

  • I downloaded Mozilla 4 and tried to use it then, I had to delete it and go back to 3.6 vs now I am having problems with my MS SQL 2005 why? What was changed to enable Mozilla 4 to sync with MS SQL and how do I get it corrected?

    After, trying Mozilla 4 beta and then having to go back to a previous vs of Mozilla 3.6.11 my MS OLE DB Provider for SQL 2005 Server has this error message '80040E57' I am using Windows 7 which was pre-installed on my new computer. I do not know how to fix it?

    The latest flash player release is 11,0,1,152.
    Can you upgrade to this version and see whether the crash stil exists?
    Go to get.adobe.com/flashplayer to download and install flash player.
    In case you need direct link to installer/uninstaller, please go to http://forums.adobe.com/message/3952360#3952360 to find them.
    saranlee wrote:
    My computer crashes repeatedly and I get the message pages are not responding do you want to stop, and/or shockwave is not responding do you want to stop. I have Windows XP Service Pack 3, I am having the same issues whether I use Internet Explorer, Google Chrome, or Mozilla Firefox. My HP Pavilion Desktop has 504 MB of Ram and I am using high speed internet connection. Because it was crashing so much, I used the uninstall program for Flash player to uninstall Flash, I checked my registry and removed anything I saw that was Flash. I then uninstalled Google Chrome and Mozilla Firefox, then I reinstalled the most recent versions from their websites. I did the same for FlashPlayer and Shockwave Flash. I went to the Adobe website and had them check to see if it was working and it shows I have FlashPlayer 10.3.181.36. The page that shows  which version of flash player goes with Windows XP states that I should have 10.3.181.34 (This is what I thought I had before I updated, I was having the same problems). When I went into my computer to see what version I have, it shows 11.5.9.620 Activex and both Flash Player and Flash Player Object is listed as 10.3.181.34. My firewall for Windows is set to medium. I also am running Norton Internet Security. It takes anywhere from 3-6minutes for some of my games to load, and I have to refresh at least 3-4 times in order to play. When I do start to play it freezes frequently and I use escape to free it up. This has been going on for a month. I have no idea what to do. I am not very computer savy and I have been learning as I go.

  • Hard coded SQL string doesn't run with error PLS-00103

    I have created a package with 34 stored procedures [pre]to create some materialized view with hard coded SQL [pre]string (client required for this hard coding). The [pre]first part with 21 simple create statements has
    [pre]worked fine. 2nd part with 11 complicated create [pre]statements, only first one has worked. all others [pre]have  not worked.
    [pre]
    I used dbms_output.put_line (sql_string) to check the [pre]individual create statement, it has looked fine. I [pre]have run individual SP within package. I have got [pre]error message as ORA-06550: line 1, column 45:
    [pre]PLS-00103: Encountered the symbol "end-of-file" when [pre]expecting one of the following: ; [pre]
    <an identifier> <a double-quoted delimited-identifier> [pre]The symbol ";" was substituted for "end-of-file" to [pre]continue.
    [pre]I have checked SQL string between 1st part and 2nd [pre]part. They are the same and all with ';' to end SQL [pre]string and END SP name in the end. Please help me to [pre]identify where the problems are. Thanks. Followings [pre]are some sample SQL string:
    [pre]PROCEDURE sp_1st_string
    [pre]IS
    [pre]BEGIN
    [pre]    EXECUTE IMMEDIATE 'CREATE MATERIALIZED VIEW
    [pre]mv_name1 TABLESPACE space_name PARALLEL ( DEGREE [pre]DEFAULT INSTANCES DEFAULT ) BUILD IMMEDIATE REFRESH [pre]COMPLETE ON DEMAND WITH PRIMARY KEY AS SELECT col1, [pre]col2,col3, col4, col5 FROM tableone A, table_two B [pre]WHERE A.id = B.id';
    [pre]COMMIT;
    [pre]END sp_1st_string;
    [pre]PROCEDURE sp_2nd_string
    [pre]IS
    [pre]BEGIN
    [pre]   EXECUTE IMMEDIATE ' CREATE MATERIALIZED VIEW
    [pre]mv_name2 TABLESPACE PDE_DATA PARALLEL ( DEGREE [pre]DEFAULT INSTANCES DEFAULT ) BUILD IMMEDIATE REFRESH [pre]COMPLETE ON DEMAND WITH PRIMARY KEY AS select col1 .. [pre]col10 from tableone a, tabletwo b, tablethree c, [pre]tablefour d, tablefive e, tablesix f where clause;
    [pre]COMMIT;
    [pre]END sp_2nd_string;
    Message was edited by:
            citicbj
    Message was edited by:
            citicbj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    stevencallan:
    Thanks for your advice. I have been thinking the above problem may be [pre]caused by this. If I run 'Create MV statement' in SQL PLUS or Toad, single quote [pre]will work. But when I put hard coded SQL string in package and stored [pre]procedure, it will cause compiling error. After I took off single quote, SP will be [pre][pre]compiled successfully. When I run package.sp, it will cause the problem. [pre]Here is the sample code:[pre]
    [pre]CREATE MATERIALIZED VIEW my_mv TABLESPACE space_name [pre][pre]PARALLEL (DEGREE DEFAULT INSTANCES DEFAULT) BUILD IMMEDIATE [pre]REFRESH COMPLETE ON DEMAND WITH PRIMARY KEY AS select A.ID , [pre]A.CNTL_NUM, C.XX_CODE, D.FIRST_NAME, D.MDL_NAME, [pre]D.LAST_NAME, H.XX_DESC, TO_DATE(TO_CHAR(C.CREAT_TS, [pre]'MM/DD/YYYY'),'MM/DD/YY'), F.STATE, CASE WHEN A.XX_CODE IS NOT NULL [pre]THEN X END, E.X_DESC  from TABLE1 A, TABLE2 B, TABLE3 C, TABLE4 [pre]D, TABLE5 E, TABLE6 F, TABLE7 G, TABLE8 H
    [pre]where D.X_SW = 'X' and B.X_SW = X' and G.X_SW = 'X' and B.CNTL_ID = [pre]A.CNTL_ID and B.CNTL_ID = D.CNTL_ID and B.X_ID = C.X_ID and B.X_ID = [pre]G.X_ID and B.X_ID = F.X_ID and G.X_CD = H.X_CD and B.X_CD = E.X_CD [pre]and E.X_CD = '25' and C.ENRLMT_ID NOT LIKE 'O%'; [pre]
    [pre]When I hard coded this statement in package and sp, I have to take off single [pre]quote ' ' form 'MM/DD/YYYY', 'MM/DD/YY', X_SW ='X', X_CD = '25' AND NOT [pre]LIKE 'O%', Then I can compile whole package successfully. This is why I [pre]mentioned that 1st part 21 simple create statement work because they don't have [pre]these single quote in the statement. In 2nd part with 13 complicated create [pre]statements, some of them have no single quote in the statement. They will [pre]run. Some of them with single quote in statement. They will have the problem [pre]to run if I take off single for compiling. [pre]
    [pre]Please give me some idea what is the reason. Thanks a lot.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to see what are the Tables avialable in DataBase

    Hi ,
    Is it possible to see what are the tables avialable in the Data base (I am using Oracle 10g Client )
    Thanks in advance .

    user672373773 wrote:
    Hi ,
    Is it possible to see what are the tables avialable in the Data base (I am using Oracle 10g Client )
    Thanks in advance .Learning where to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to tahiti.oracle.com. Drill down to your product and version.
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there, especially the initialization parms and the data dictionary views.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Look in your alert log and find all the non-default initialization parms listed at instance startup. Then read up on each one of them in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Can't see whats wrong? help

    Hi i've made an applet that has 12 buttons on it, and when the user presses 4 buttons it is stored in an array called myList. Each time a button is pressed sequenceCheck method i created gets called. This has a list of the possible correct combinations that the user could press the buttons in. I have 23 solutions so far. Most of them are working fine however any solution that has the button10, button11 or button 12 in it doesn't seem to work? And i'm not sure why? I've looked at the code over and over and can't see what i've done wrong.
    Solutions that don't seem to work are: solution 3, solution 7, solution 8, solution 9, solution 11, solution 13, solution 16, solution 17, solution 18, solution 18, solution 19, solution 20, solution 22 and solution 23. Sll of which have ethier button 10, button 11 or button 12 in it?
    If anyone can see what i've done it would really appreciate the help.
    package stampGame;
    // Description:
    // Directory: c:\myjava\teaching
    // Date: 5/4/00
    // Uses:
    // Comments:  note the convenient use of the Point object for
    //  manipulating coordinates
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import java.util.*;
    import javax.swing.JOptionPane;
    public class StampGame extends Applet implements ActionListener{
         final int N= 12;
         final int P = 3;
         final int Q = 3;
         String[] buttonLabel = {"1","2","3","4","5","6","7","8","9","10","11","12"};
         Button[] button = new Button[N];
         private int combinationsFound = 0;
         ArrayList<String> myList = new ArrayList<String>();
         ArrayList<String> solutionsFound = new ArrayList<String>();
         public void init(){
              setBackground(Color.blue);     // Applet background color
              setLayout(null); 
              System.out.println(myList);
              for(int i=0; i<N; ++i)
                   button[i] = new Button(buttonLabel);
                   button[i].setFont(new java.awt.Font("Dialog", 1, 24));
                   button[i].setBackground(Color.white); // buttons colour
                   button[i].addActionListener(this);
                   add(button[i]);
         public void paint (Graphics g){
              Insets a = insets();
              button[0].reshape(10+a.left,10+a.top, 100,100);
              button[1].reshape(110+a.left,10+a.top, 100,100);
              button[2].reshape(210+a.left,10+a.top, 100,100);
              button[3].reshape(310+a.left,10+a.top, 100,100);
              button[4].reshape(10+a.left,100+a.top, 100,100);
              button[5].reshape(110+a.left,100+a.top, 100,100);
              button[6].reshape(210+a.left,100+a.top, 100,100);
              button[7].reshape(310+a.left,100+a.top, 100,100);
              button[8].reshape(10+a.left,200+a.top, 100,100);
              button[9].reshape(110+a.left,200+a.top, 100,100);
              button[10].reshape(210+a.left,200+a.top, 100,100);
              button[11].reshape(310+a.left,200+a.top, 100,100);
              g.drawString("Number of combinations found: " + combinationsFound, 500, 100);
         public void actionPerformed(ActionEvent e) {
              // TODO Auto-generated method stub
              if(e.getSource() == button[0]){
                   System.out.println("one");          
                   myList.add("button1");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[1]){
                   System.out.println("two");
                   myList.add("button2");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[2]){
                   System.out.println("three");     
                   myList.add("button3");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[3]){
                   System.out.println("four");
                   myList.add("button4");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[4]){
                   System.out.println("five");
                   myList.add("button5");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[5]){
                   System.out.println("six");     
                   myList.add("button6");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[6]){
                   System.out.println("seven");
                   myList.add("button7");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[7]){
                   System.out.println("eight");
                   myList.add("button8");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[8]){
                   System.out.println("nine");          
                   myList.add("button9");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[9]){
                   System.out.println("ten");     
                   myList.add("button10");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[10]){
                   System.out.println("eleven");
                   myList.add("button11");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[11]){
                   System.out.println("twelve");          
                   myList.add("button12");
                   System.out.println(myList);
                   sequenceCheck();
         public void sequenceCheck(){
              //ArrayList<String> solutionsFound = new ArrayList<String>();
              ArrayList<String> solution1 = new ArrayList<String>();
              ArrayList<String> solution2 = new ArrayList<String>();
              ArrayList<String> solution3 = new ArrayList<String>();
              ArrayList<String> solution4 = new ArrayList<String>();
              ArrayList<String> solution5 = new ArrayList<String>();
              ArrayList<String> solution6 = new ArrayList<String>();
              ArrayList<String> solution7 = new ArrayList<String>();
              ArrayList<String> solution8 = new ArrayList<String>();
              ArrayList<String> solution9 = new ArrayList<String>();
              ArrayList<String> solution10 = new ArrayList<String>();
              ArrayList<String> solution11 = new ArrayList<String>();
              ArrayList<String> solution12 = new ArrayList<String>();
              ArrayList<String> solution13 = new ArrayList<String>();
              ArrayList<String> solution14 = new ArrayList<String>();
              ArrayList<String> solution15 = new ArrayList<String>();
              ArrayList<String> solution16 = new ArrayList<String>();
              ArrayList<String> solution17 = new ArrayList<String>();
              ArrayList<String> solution18 = new ArrayList<String>();
              ArrayList<String> solution19 = new ArrayList<String>();
              ArrayList<String> solution20 = new ArrayList<String>();
              ArrayList<String> solution21 = new ArrayList<String>();
              ArrayList<String> solution22 = new ArrayList<String>();
              ArrayList<String> solution23 = new ArrayList<String>();
              Collections.sort(myList);
              // SOLUTION ONE
              solution1.add("button1");
              solution1.add("button2");
              solution1.add("button3");
              solution1.add("button4");
              System.out.println("Solution 1 = " + solution1);
              // SOLUTION 2
              solution2.add("button5");
              solution2.add("button6");
              solution2.add("button7");
              solution2.add("button8");
              System.out.println("Solution2 = " + solution2);
              // SOLUTION 3
              solution3.add("button9");
              solution3.add("button10");
              solution3.add("button11");
              solution3.add("button12");
              System.out.println("Solution3 = " + solution3);
              // SOLUTION 4
              solution4.add("button1");
              solution4.add("button2");
              solution4.add("button5");
              solution4.add("button6");
              System.out.println("Solution4 = " + solution4);
              // SOLUTION 5
              solution5.add("button3");
              solution5.add("button4");
              solution5.add("button7");
              solution5.add("button8");
              System.out.println("Solution5 = " + solution5);
              // SOLUTION 6
              solution6.add("button2");
              solution6.add("button3");
              solution6.add("button6");
              solution6.add("button7");
              System.out.println("Solution6 = " + solution6);
              // SOLUTION 7
              solution7.add("button5");
              solution7.add("button6");
              solution7.add("button9");
              solution7.add("button10");
              System.out.println("Solution7 = " + solution7);
              // SOLUTION 8
              solution8.add("button7");
              solution8.add("button8");
              solution8.add("button11");
              solution8.add("button12");
              System.out.println("Solution8 = " + solution8);
              // SOLUTION 9
              solution9.add("button6");
              solution9.add("button7");
              solution9.add("button10");
              solution9.add("button11");
              System.out.println("Solution9 = " + solution9);
              // SOLUTION 10
              solution10.add("button1");
              solution10.add("button2");
              solution10.add("button6");
              solution10.add("button7");
              System.out.println("Solution10 = " + solution10);
              // SOLUTION 11
              solution11.add("button5");
              solution11.add("button6");
              solution11.add("button10");
              solution11.add("button11");
              System.out.println("Solution11 = " + solution11);
              // SOLUTION 12
              solution12.add("button2");
              solution12.add("button3");
              solution12.add("button7");
              solution12.add("button8");
              System.out.println("Solution12 = " + solution12);
              // SOLUTION 13
              solution13.add("button6");
              solution13.add("button7");
              solution13.add("button11");
              solution13.add("button12");
              System.out.println("Solution13 = " + solution13);
              // SOLUTION 14
              solution14.add("button2");
              solution14.add("button3");
              solution14.add("button5");
              solution14.add("button6");
              System.out.println("Solution14 = " + solution14);
              // SOLUTION 15
              solution15.add("button3");
              solution15.add("button4");
              solution15.add("button6");
              solution15.add("button7");
              System.out.println("Solution15 = " + solution15);
              // SOLUTION 16
              solution16.add("button6");
              solution16.add("button7");
              solution16.add("button9");
              solution16.add("button11");
              System.out.println("Solution16 = " + solution16);
              // SOLUTION 17
              solution17.add("button7");
              solution17.add("button8");
              solution17.add("button10");
              solution17.add("button11");
              System.out.println("Solution17 = " + solution17);
              // SOLUTION 18
              solution18.add("button1");
              solution18.add("button5");
              solution18.add("button6");
              solution18.add("button10");
              System.out.println("Solution18 = " + solution18);
              // SOLUTION 19
              solution19.add("button2");
              solution19.add("button6");
              solution19.add("button7");
              solution19.add("button11");
              System.out.println("Solution19 = " + solution19);
              // SOLUTION 20
              solution20.add("button3");
              solution20.add("button7");
              solution20.add("button8");
              solution20.add("button12");
              System.out.println("Solution20 = " + solution20);
              // SOLUTION 21
              solution21.add("button2");
              solution21.add("button5");
              solution21.add("button6");
              solution21.add("button9");
              System.out.println("Solution21 = " + solution21);
              // SOLUTION 22
              solution22.add("button3");
              solution22.add("button6");
              solution22.add("button7");
              solution22.add("button10");
              System.out.println("Solution22 = " + solution22);
              // SOLUTION 23
              solution23.add("button4");
              solution23.add("button7");
              solution23.add("button8");
              solution23.add("button11");
              System.out.println("Solution23 = " + solution23);
              System.out.println("buttons pressed = " + myList);
              System.out.println("solutions found = " + solutionsFound);
              Collections.sort(myList);
              if(myList.equals(solution1)){
                   if(solutionsFound.contains("solution1")){
                        JOptionPane.showMessageDialog(null, "Combinations already found");
                        myList.clear();
                   else {
                        combinationsFound++;
                        JOptionPane.showMessageDialog(null, "Winner");
                        myList.clear();
                        repaint();
                        solutionsFound.add("solution1");
                        System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution2)){
                        if(solutionsFound.contains("solution2")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution2");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution3)){
                   if(solutionsFound.contains("solution3")){
                        JOptionPane.showMessageDialog(null, "Combinations already found");
                        myList.clear();
                   else {
                        combinationsFound++;
                        JOptionPane.showMessageDialog(null, "Winner");
                        myList.clear();
                        repaint();
                        solutionsFound.add("solution3");
                        System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution4)){
                        if(solutionsFound.contains("solution4")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution4");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution5)){
                        if(solutionsFound.contains("solution5")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution5");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution6)){
                        if(solutionsFound.contains("solution6")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution6");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution7)){
                        if(solutionsFound.contains("solution7")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution7");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution8)){
                        if(solutionsFound.contains("solution8")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution8");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution9)){
                        if(solutionsFound.contains("solution9")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution9");
                             System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution10)){
                        if(solutionsFound.contains("solution10")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution10");
                             System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution11)){
         if(solutionsFound.contains("solution11")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution11");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution12)){
         if(solutionsFound.contains("solution12")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution12");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution13)){
         if(solutionsFound.contains("solution13")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution13");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution14)){
         if(solutionsFound.contains("solution14")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution14");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution15)){
         if(solutionsFound.contains("solution15")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution15");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution16)){
         if(solutionsFound.contains("solution16")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution16");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution17)){
         if(solutionsFound.contains("solution17")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution17");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution18)){
         if(solutionsFound.contains("solution18")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution18");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution19)){
         if(solutionsFound.contains("solution19")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution19");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution20)){
         if(solutionsFound.contains("solution20")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution20");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution21)){
         if(solutionsFound.contains("solution21")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution21");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution22)){
         if(solutionsFound.contains("solution22")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution22");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution23)){
         if(solutionsFound.contains("solution23")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution23");
              System.out.println("solutions found = " + solutionsFound);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    From [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]
    [Volume is not precision|http://www.catb.org/~esr/faqs/smart-questions.html#volume] :
    You need to be precise and informative. This end is not served by simply dumping huge volumes of code or data into a help request. If you have a large, complicated test case that is breaking a program, try to trim it and make it as small as possible.
    This is useful for at least three reasons. One: being seen to invest effort in simplifying the question makes it more likely you'll get an answer, Two: simplifying the question makes it more likely you'll get a useful answer. Three: In the process of refining your bug report, you may develop a fix or workaround yourself.
    Also please read up on god-objects (wikipedia has a write up on this) which is cured by dividing and conquering. Finally, you really need to simplify this code by using loops with your arrays. You can shorten this beast by over 70%, easy making it much, much easier to debug.
    Edited by: Encephalopathic on Mar 30, 2008 6:59 AM

  • I want Query from QueryDataSet by SQL string, Is it possible ??

    if the sql string is :
    "select * from QueryDataset1 " and store the results in another QueryDataSetRR
    is it possible or not ?
    What ara the alternatves of store the retrived data from database and store it in (??) instead querdataset1 and use these data again using SQL string ??
    Regards,

    Well, most SQL servers allow some kind of temporary table to be generated, and you can always load a table from the results of a select
    INSERT results(f1, f2) SELECT f1, f2 FROM maindata WHERE .....
    But most database systems also allow a subquery which allows you, amongst other things, to further refine a SELECT by taking FROM from a subquery rather than a table.

  • How can I see what file's are in  a directory

    I'm want to make a program for brosing the harddisk and copying and editing file's.
    I already can copy them but:
    How can I see what file's are in a directory and how can I see
    what subdirectory's are in a directory so I can show them to the user?
    I dont't know if it does matter if If I'm on a windows or linux platform, when it does please tell me for the windows?

    I believe this works for a directory of reasonable size.
    import java.io.File;
    final public class FileSearch {
        public File current;
        public String path;
        public File[] files;
        public FileSearch(File dir){
           try {
              current = dir;
              files = dir.listFiles();
           } catch (Exception e) {
              e.printStackTrace();
        public void currentSearch() {
           for (int i=0; i<files.length; i++) {
              if (files.isFile()) {
    System.out.println(files[i].toString());
    public void searchFiles(){
    for (int i=0; i<files.length; i++) {
    if (files[i].isDirectory()) {
    System.out.println();
    System.out.print("directory: ");
    System.out.println(files[i].toString());
    try {
    FileSearch sub = new FileSearch(files[i]);
    sub.currentSearch();
    sub.searchFiles();
    sub= null;
    } catch (Exception e) {
    e.printStackTrace();
    public static void main(String[] args) {
    try {
    FileSearch search = new FileSearch(new File("."));
    search.currentSearch();
    search.searchFiles();
    } catch (Exception e) {
    e.printStackTrace();

  • In SQL Server Transactional replication what all changes I can do on subscriber table

    In SQL Server Transactional replication what changes I can do on subscriber table
    Thanks

    Hi Ajay.G,
    According to your description, if you want to do some updates at the Subscriber, you need to note the following things.
    •If TIMESTAMP or IDENTITY columns are used, and they are replicated as their base data types, values in these columns should not be updated at the Subscriber.
    •Subscribers cannot update or insert text, ntext or image values . Instead, you could partition the text and image columns into a separate table and modify the two tables within a transaction.To update large objects at a Subscriber, use the
    data types varchar(max), nvarchar(max), varbinary(max) instead of text, ntext, and image data types, respectively.
    •Updates to unique keys (including primary keys) that generate duplicates and then they are not allowed and will be rejected because of a uniqueness violation.
    •If the Subscriber database is partitioned horizontally and there are rows in the partition that exist at the Subscriber but not at the Publisher, the Subscriber cannot update the pre-existing rows.
    For more information, see: Updatable Subscriptions for Transactional Replication
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Copy/paste sql strings from development ide's.

    Our team have just started using this tool in favor of the well-known toad. Frist impressions are really good, so keep up the good work! But sometimes you find that a very simple feature has great impact on coding effectiveness.
    Very often people copies sql strings from their java development ide's and want to test this in their database tool. For instance:
    " SELECT ... " +
    " FROM ...." +
    " JOIN ...." +
    " WHERE ....";
    Should become
    SELECT ...
    FROM ...
    JOIN ...
    WHERE ....
    The same goes backwards, if you write a sql statement in your database tool you would like to quickly convert it to a java string. This perhaps simple, but beloved by us, little feature was available in our previous tool, but I can't find it in sql developer. I've temporarily solved this by using the search-and-replace dialog box with regular expressions. This is however quite awkward to do each time so my options are:
    * Assign this search-and-replace operation to a hot key (is this possible?)
    * Write an extension (I have trouble finding good documentation of extension development for sql developer)
    * Request a feature (will probably take time even if it's accepted)
    Could anyone give me some hints on how to solve this?
    Or have I missed anything, is it already available somewhere in the tool?
    Thanks.

    Hi,
    sometimes you find that a very simple feature has great impact on coding effectiveness.Tell me about it ;-)
    * Assign this search-and-replace operation to a hot key (is this possible?)
    By default, ctrl-r does a search-and-replace. There's a history drop-down to have a quick access to your regular expression once you've entered it once.
    * Write an extension (I have trouble finding good documentation of extension development for sql developer)
    You have some samples on Kris' blog.
    * Request a feature (will probably take time even if it's accepted)
    I agree, think it's difficult to make it some universal feature everyone wants to use.
    Another thing that comes to mind is recording a macro (see the tip on the Exchange for help on this).
    And I supose you could even make an external tool for this, using a batch file or something. This is much easier than an writing an extension i guess, and you can write it in the language you like best...
    Hope this helps,
    K.

Maybe you are looking for

  • Connect iPod to TV and play music

    Hi all, I bought the new iPod classic 120Gb about two weeks ago and got started with iTunes to create a library (using a Windows PC). I am very satisfied with how things are going until now. Now I want to connect the iPod to my Samsung LCD and home c

  • Macbook keeps dropping wireless connection

    Hi  this is my first post so be gentle with me LOL I have had many issues with BT over the last 8 months, mostly due to the speed I had in my area (was 0.45MB when wired at one point), but I recently started to have an issue with the laptops in the h

  • Restoring iTunes backup - calendar problem

    Hi, I connected iPhone with iTunes using usb. iTunes made backup and everything seemed to go well, but then suddenly calendars in iPhone and in Outlook were wiped out. I can restore backup from iTunes to iPhone, but Outlook (2010 Exchange version) wi

  • Load URL on load

    Evening developers. I'm shiny new to Cocoa programming, and I've started up a little project that includes the Web View-object from the Webkit SDK. My question is: can someone help me making a function that does this: When my application opens/loads,

  • SQLCMD - getting the entire output to file?

    Hi All Ive written my first SQLCMD script using this reference :- http://msdn.microsoft.com/en-us/library/ms162773.aspx but in my output file I only get one line, whereas when I run the sql scripts manually from query analyser it shows (1 rows affect