IN Vs Exists

Hi ,
Recently I was asked in an interview: When we would "IN" clause would be preferred to use over "EXISTS" clause. I had told the interviewer that "EXISTS" will ignore NULL value if the table has any. Wheter was I correct? Please provide valueable inputs.
Regards,
Achyut K

S10390 wrote:
Check this Tom's post
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:953229842074
I think that was on a very old version of oracle (8.1.6). Oracle has changed a lot over the time.
Here is a simple example.
I have EMP and DEPT table like this. With relation defined as following
SQL> select table_name, constraint_name, constraint_type, r_constraint_name
  2    from user_constraints
  3   where table_name in ('EMP', 'DEPT');
TABLE_NAME                     CONSTRAINT_NAME                C R_CONSTRAINT_NAME
DEPT                           DEPT_PK                        P
EMP                            EMP_FK_DEPT_NO                 R DEPT_PK
EMP                            EMP_PK                         PNow a simple query using IN
SQL> select * from emp e where e.deptno in (select d.deptno from dept d);
     EMPNO ENAME  JOB              MGR HIREDATE         SAL        COM     DEPTNO
      7369 SMITH  CLERK           7902 02-APR-81       2975          0         20
      7499 ALLEN  SALESMAN        7698 20-FEB-81       1600        300         30
      7521 WARD   SALESMAN        7698 22-FEB-81       1250        500         30
      7566 JONES  MANAGER         7839 02-APR-81       2975          0         20
      7654 MARTIN SALESMAN        7698 28-SEP-81       1250       1400         30
      7698 BLAKE  MANAGER         7839 01-MAY-81       2850          0         30
      7782 CLARK  MANAGER         7839 09-JUN-81       2450          0         10
      7788 SCOTT  ANALYST         7566 19-APR-87       3000          0         20
      7839 KING   PRESIDENT            17-NOV-81       5000          0         10
      7844 TURNER SALESMAN        7698 08-SEP-81       1500          0         30
      7876 ADAMS  CLERK           7788 23-MAY-87       1100          0         20
11 rows selected.
SQL> select * from table(dbms_xplan.display_cursor);
PLAN_TABLE_OUTPUT
SQL_ID  f7h123zffyf6y, child number 0
select * from emp e where e.deptno in (select d.deptno from dept d)
Plan hash value: 2872589290
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |      |       |       |     2 (100)|          |
|*  1 |  TABLE ACCESS FULL| EMP  |    11 |   418 |     2   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   1 - filter("E"."DEPTNO" IS NOT NULL)
18 rows selected.The amazing thing is that the DEPT table is not scanned at all. I guess the CBO is using the referencial
integrity to determine scanning fo EMP table would be sufficient.
Now using EXISTS
SQL> select * from emp e where exists (select null from dept d where d.deptno = e.deptno);
     EMPNO ENAME  JOB              MGR HIREDATE         SAL        COM     DEPTNO
      7369 SMITH  CLERK           7902 02-APR-81       2975          0         20
      7499 ALLEN  SALESMAN        7698 20-FEB-81       1600        300         30
      7521 WARD   SALESMAN        7698 22-FEB-81       1250        500         30
      7566 JONES  MANAGER         7839 02-APR-81       2975          0         20
      7654 MARTIN SALESMAN        7698 28-SEP-81       1250       1400         30
      7698 BLAKE  MANAGER         7839 01-MAY-81       2850          0         30
      7782 CLARK  MANAGER         7839 09-JUN-81       2450          0         10
      7788 SCOTT  ANALYST         7566 19-APR-87       3000          0         20
      7839 KING   PRESIDENT            17-NOV-81       5000          0         10
      7844 TURNER SALESMAN        7698 08-SEP-81       1500          0         30
      7876 ADAMS  CLERK           7788 23-MAY-87       1100          0         20
11 rows selected.
SQL> select * from table(dbms_xplan.display_cursor);
PLAN_TABLE_OUTPUT
SQL_ID  8x38asybd9j0v, child number 0
select * from emp e where exists (select null from dept d where
d.deptno = e.deptno)
Plan hash value: 2610556560
| Id  | Operation          | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT   |         |       |       |     3 (100)|          |
|   1 |  NESTED LOOPS SEMI |         |    11 |   451 |     3   (0)| 00:00:01 |
|   2 |   TABLE ACCESS FULL| EMP     |    11 |   418 |     2   (0)| 00:00:01 |
|*  3 |   INDEX UNIQUE SCAN| DEPT_PK |     4 |    12 |     1   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   3 - access("D"."DEPTNO"="E"."DEPTNO")
21 rows selected.Here the DEPT table is scanned. So as already said it all deptnds. And need to tested for every case.

Similar Messages

  • If image file not exist in image path crystal report not open and give me exception error problem

    Hi guys my code below show pictures for all employees
    code is working but i have proplem
    if image not exist in path
    crystal report not open and give me exception error image file not exist in path
    although the employee no found in database but if image not exist in path when loop crystal report will not open
    how to ignore image files not exist in path and open report this is actually what i need
    my code below as following
    DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoRall", con);
    cmd.CommandType = CommandType.StoredProcedure;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    foreach (DataRow dr in dt.Rows)
    FileStream fs = null;
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + dr[0] + ".jpg", FileMode.Open);
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dr["Image"] = imgbyte;
    fs.Dispose();
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();
    and exception error as below

    First: I created a New Column ("Image") in a datatable of the dataset and change the DataType to System.Byte()
    Second : Drag And drop this image Filed Where I want.
    private void LoadReport()
    frmCheckWeigher rpt = new frmCheckWeigher();
    CryRe_DailyBatch report = new CryRe_DailyBatch();
    DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter ta = new CheckWeigherReportViewer.DataSet1TableAdapters.DataTable_DailyBatch1TableAdapter();
    DataSet1.DataTable_DailyBatch1DataTable table = ta.GetData(clsLogs.strStartDate_rpt, clsLogs.strBatchno_Rpt, clsLogs.cmdeviceid); // Data from Database
    DataTable dt = GetImageRow(table, "Footer.Jpg");
    report.SetDataSource(dt);
    crv1.ReportSource = report;
    crv1.Refresh();
    By this Function I merge My Image data into dataTable
    private DataTable GetImageRow(DataTable dt, string ImageName)
    try
    FileStream fs;
    BinaryReader br;
    if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + ImageName))
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    else
    // if photo does not exist show the nophoto.jpg file
    fs = new FileStream(AppDomain.CurrentDomain.BaseDirectory + ImageName, FileMode.Open);
    // initialise the binary reader from file streamobject
    br = new BinaryReader(fs);
    // define the byte array of filelength
    byte[] imgbyte = new byte[fs.Length + 1];
    // read the bytes from the binary reader
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    dt.Rows[0]["Image"] = imgbyte;
    br.Close();
    // close the binary reader
    fs.Close();
    // close the file stream
    catch (Exception ex)
    // error handling
    MessageBox.Show("Missing " + ImageName + "or nophoto.jpg in application folder");
    return dt;
    // Return Datatable After Image Row Insertion
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • How can a family with multiple existing accounts use Home Sharing?

    I'd like to use the new Home Sharing feature, but it appears to be restricted to families in which all of the family members share a single user account.
    We already have separate accounts for each family member. Is there some way for us to use Home Sharing without abandoning most of our existing accounts, along with all of the purchases made by those accounts? I don't think anyone in this situation would be willing to do that.

    Eh. I am not too sure since I have not messed with it much but I do have a great deal of experience with multiple accounts. Each computer can be authorized for multiple accounts. As can iPods. iPods can sync songs/videos/apps from multiple accounts as long as the computer is authorized with them. What I have set up here, is I buy my stuff I want, my parents buy what they want and so do my brothers. When my bro gets something I want I just move it to my computer. That way all our accounts are separate, but if there is something I want I can get it. Also, since the music no longer has DRM, it won't matter. It will play on any computer. What you should see is if you can just do the shared library with multiple accounts. Then if you don't have videos or such, you can get apps or music. Hope this helps!

  • Error message: "playlists selected for updating no longer exist"

    I tried to update my ipod nano and I guess I had deleted a playlist, but since then, I have not been able to update. Every time I try, I get the following message:
    "Cannot be updated because all of the playlists selected for updating no longer exist."
    I haven't been able to highlight which playlists are selected to begin with.
    I read through the manual and thought that maybe rebooting the whole system might work. So I deleted Itunes from my computer and re-installed.
    Then I tried re-setting my ipod. So now I have nothing on my ipod.
    I also deleted everything from my library, thinking it might help to start from scratch. Nothing has worked.
    How do I "select" and "unselect" playlists so I can get up and running again?

    Here you go.
    http://discussions.apple.com/thread.jspa?messageID=607312&#607312

  • Error message iPod cannot update b/c all of the playlists no longer exist

    Hello. I have been getting this error message. "Songs on the iPod "MAR(the name of my iPod)" cannot update because all of the playlists selecting for updating no longer exist." And my playlists are still on the left side in my iTunes. They do exist. I have a feeling ths might have to do with the fact that on vacation the person I was visiting gave me a gift of putting all of his music that would fit into the external hard drive part of my iPod, and for the past week or so I have been putting that music onto my 40 GB portable hard drive at home. I suspect I took a vital folder out of my iPod by accident. Right now I have the folder iPod_control if I open my iPod up in My Computer. Am I missing something? Right now my iPod is empty because iTunes made a composite playlist last week and I deleted it thinking I could get my real playlists back. Can you help me, or reccomend a site/someone who can? Thank you.
    PC   Windows XP  

    hiya!
    And my playlists are still on the left side in my iTunes. They do exist.
    let's just doublecheck this. folks get this message if they have "automatically update selected playlists only" selected in their itunes "ipod" preferences tab. so bring up that tab ("edit > preferences", click "ipod" while the ipod is showing up in the source list), and do a playlist by playlist crosscheck of the playlists selected in that tab, and the playlists showing up in the itunes sourcelist.
    is there any playlist selected in the preferences tab that isn't showing up in the sourcelist?
    love, b

  • How to Activate the Table which Doesn't Exist - Can I create Table in SE11

    Hi Gurus,
    I am a BASIS Person ..so, I don't have much idea about ABAP Developement side . But, while applying patches to one of  the SAP Component, I get the following error message ( usr\sap\trans\log ) :
    Phase Import_Proper
    >>>
    SAPAIBIIP7.BID
    1 ED0301 *************************************************************************
    1 EDO578XFollowing objects not activated/deleted or activated/deleted w. warning:
    1EEDO519X"Table" "WRMA_S_RESULT_DATA" could not be activated
    1EEDO519 "Table Type" "WRMA_TT_UPDTAB_DSO" could not be activated
    1 ED0313 (E- Row type WRMA_S_RESULT_DATA is not active or does not exist )
    2WEDO517 "Domain" "WRMA_KAPPL" was activated (error in the dependencies)
    2WEDO517 "Data Element" "/RTF/DE_FISCPER" was activated (error in the dependencies)
    2WEDO517 "Data Element" "/RTF/DE_FISCVARNT" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RCLASV" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RMA_AMNT" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RMA_INV" was activated (error in the dependencies)
    2WEDO517 "Data Element" "WRMA_DE_RMA_OBJ" was activated (error in the dependencies)
    2WEDO549 "Table" "V_WRMA_TRCLASVER" was activated (warning for the dependent tables)
    2WEDO549 "Table" "V_WRMA_TRCLASVPE" was activated (warning for the dependent tables)
    2WEDO549 "Table" "V_WRMA_TRCLPERCL" was activated (warning for the dependent tables)
    2WEDO549 "Table" "WRMA_S_STOCK_SELECTION_DATE" was activated (warning for the dependent tables)
    <<<
    Now, I checked Domain WRMA_KAPPL  in SE11 and it diplays that it is partially active :
    " The obeject is marked partially active for the following reasons :
       Errors occured when adjusting dependent Objects to a change. Some of the dependent objects could not
       be adjusted to this change. To adjust the dependent objects, you must perform the following actions
       the next time you activate this object.
                        - SET THE SYNP TIME STAMP IN THE RUNTIME OBJECT OFALL DEPENDENT OBJECTS
    My question is - how to activate this SYNP Time Stamp.. ?
                          - Once I activate this SYNP Time Stamp.. How do I activate this ..in SE11 or some other
                            TCode..
    Any / ALL Help is highy appreciated and would be rewarded with appropriate Reward Points.
    Thanks,
    Regards,
    - Ishan
    >> Ok, Now I forcefully activated the Domain and then all the 5  Data Elements in SE11 ...now I have error
         that table  WRMA_S_RESULT_DATA  and WRMA_TT_UPDTAB_DSO Could not be activated...
         ..And in SE11 > Input the first / Second Table  > Excute > Output : Table Does not Exist !!!
          - Now, How do I activate something which does not exist in the first place ?
        Any Input about this ?
    Thanks,
    Regards,
    - Ishan
    Edited by: ISHAN P on Jun 19, 2008 3:44 PM

    Read note 1152612 - Incorrect component type in structure WRMA_S_RESULT_DATA.
    The error occurs in Release BI_CONT 703 Support Package 9.
    If you require an advance correction for Support Package 9, make the following manual changes if the InfoObject 0TCTLSTCHG is inactive in your system.
    1. Use transaction RSA1 to call the Data Warehousing Workbench.
    2. Check whether the InfoObject 0TCTLSTCHG was already activated by the compilation process the first time you called transaction RSA1.  You can use transaction RSD1 to check this by entering 0TCTLSTCHG in the "InfoObject" field and choosing "Display".  Proceed as follows if the InfoObject is still not active:
    3. Go to BI Content activation.
    4. Select "Object Types".
    5. Open the "InfoObjects" tree and select "Objects".
    6. Search for the InfoObject 0TCTLSTCHG and select it.
    7. Transfer the object and activate it.
    These steps activate the required component type /BI0/OITCTLSTCHG. You can check again in transaction RSD1 to ensure that the InfoObject 0TCTLSTCHG is available as active.
    Jacek Fornalczyk

  • How can i update an existing item in sap using CSV file?

    Hi,
    i am trying to update an existing Item in SAP using a CSV file.
    in the message log i get an error message that the item already exists.
    what should i do in order to update the existing record?
    Thanks, Udi

    Hi..........
    I would sugest you to use Tab delimited file and choose proper option in order to update the itsm master in DTW......
    Regards,
    Rahul

  • SAP Business Workplace - No log data exists message

    Hi,
    We have the work items of EDI 810 configured to reach the workflow inbox of certain users.  The users have 300+ items in their workflow inbox - but when they click the Workflow Inbox they get a message - "No log data exists".
    The message is an error type: Message BL 223
    The message is coming from the function module BAL_CNTL_REFRESH.
    We tried to get the same workflow positions assigned to our user id and the unprocessed 300 + items came to our inbox and we are able to view and process the work items without any issue.
    The issue pertains only to the two users. It seems like it has something to do with the filter / layout settings set for the two users alone.  Could you please advice.
    Regards,
    Prabaharan

    Hi
    i am using SAP GUI at client place via Citrix.
    it was working fine till yesterday
    pls suggest. wat could be other possible reason
    thanks

  • Index with "or" clause (BUG still exists?)

    The change log for 2.3.10 mentions "Fixed a bug that caused incorrect query plans to be generated for predicates that used the "or" operator in conjunction with indexes [#15328]."
    But looks like the Bug still exists.
    I am listing the steps to-repro. Let me know if i have missed something (or if the bug needs to be fixed)
    DATA
    dbxml> openContainer test.dbxml
    dbxml> getDocuments
    2 documents found
    dbxml> print
    <node><value>a</value></node>
    <node><value>b</value></node>
    INDEX (just one string equality index on node "value")
    dbxml> listIndexes
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: node-element-equality-string for node {}:value
    2 indexes found.
    QUERY
    setVerbose 2 2
    preload test.dbxml
    query 'let $temp := fn:compare("test", "test") = 0
    let $results := for $i in collection("test.dbxml")
    where ($temp or $i/node[value = ("a")])
    return $i
    return <out>{$temp}{$results}</out>'
    When $temp is true i expected the result set to contain both the records, but that was not the case with the index. It works well when there is no index!
    Result WITH INDEX
    dbxml> print
    <out>true<node><value>a</value></node></out>
    Result WITHOUT INDEX
    dbxml> print
    <out>true<node><value>a</value></node><node><value>b</value></node></out>

    Hi Vijay,
    This is a completely different bug, relating to predicate expressions that do not examine nodes. Please try the following patch, to see if it fixes this bug for you:
    --- dbxml-2.3.10-original/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-04-18 10:05:24.000000000 +0100
    +++ dbxml-2.3.10/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-08-08 11:32:10.000000000 +0100
    @@ -1566,11 +1572,12 @@
         else if(name == Or::name) {
              UnionQP *unionOp = new (&memMgr_) UnionQP(&memMgr_);
    +          result.operation = unionOp;
              for(VectorOfASTNodes::iterator i = args.begin(); i != args.end(); ++i) {
                   PathResult ret = generate(*i, ids);
                   unionOp->addArg(ret.operation);
    +               if(ret.operation == 0) result.operation = 0;
    -          result.operation = unionOp;
         // These operators use the presence of the node arguments, not their valueJohn

  • Exist a Jtree node.id or something like this ?

    I would want to retrieve a node using a unique 'id', for example the absolute index (into the total nodes count)
    Is there something like this ?
    Can I add a particular property to a node ? ( for example this 'id' if it does not exist )
    Another question :
    If I want to implement a search code, this 'id' can be useful, or must I transverse the whole Jtree
    Thanks

    Hello.
    Do the following:
    1. Go to the Apple Menu at the top left of the screen
    2. Select Software Update...
    3. Install any updates that are found.
    If the Amazon issue continues after these updates, then do this:
    1. Open Safari
    2. Erase any web address you have currently showing (for example www.apple.com or www.google.com)
    3. Type in www.amazon.com
    4. That should take you directly to amazon.com
    It should look like this in your Safari::

  • Need help with Sharepoint foundation web application stuck on "STOPPING" error job-service-instance-GUID Number already exists

    Hi All,
         I cant get to stop SharePoint foundation web app service. Its stuck on status stopping
    I have tried the following:
    reset IIS
    restarted the Timer Service
    When I try to use powershell command to stop I get the following error:
    Can anyone who went through this help PLEASE
    Stop-SPServiceInstance : An object of the type
    Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition named
    "job-service-instance-1ff39eb2-12d2-457d-a749-265e350eb1b1" already exists
    under the parent Microsoft.SharePoint.Administration.SPTimerService named
    "SPTimerV4". Rename your object or delete the existing object.
    At line:1 char:127
    + ... pplication"} | Stop-SPServiceInstance
    + ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share...ServiceInstance:
    SPCmdletStopServiceInstance) [Stop-SPServiceInstance], SPDuplicateObjectEx
    ception
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletStopServ
    iceInstance

    Hi,
    It seems that the issue is in the timer job definition for executing this operation.
    My suggestion is to start the service again and delete the job definition from the error and again try to stop it.
    This might be helpful:
    http://sharepoint.stackexchange.com/questions/22368/is-there-a-powershell-cmdlet-to-delete-a-timer-job 
    I had a lot of issues in the past when try to stop this instance after the Web apps are provisioned.
    As general rule now If I have multi-server Farm topology that has servers that should not serve Web App requests I turn off the service prior to provisioning any Web Apps in the Farm. 
    BR,
    Ivan

  • New DVR, Can't Recognize Existing ESata Drive/Prog​rams

    I had a Motorola 7216 DVR box that had an external ESata drive.  The box had three issues:  froze 2-3 times a day for maybe 30 seconds, sound "clipping" during loud sections of shows/movies, and I could never get the Android app or web app to connect to the DVR.  So, I received a new 7232 DVR today.  Prior to disconnecting the old, I did the proper method of ejecting of the ESata Drive.  
    I hooked up the new DVR, and (possibly mistakenly) hooked up the ESata drive as well before booting it up the first time.   Did the initialization, all went well.   Went through the routine of adding ESata, rebooted, didn't recognize the drive.   Realize I maybe shouldn't have plugged it in, so unplugged ESata cord, rebooted, did Set-Top Box Auto Correct, then went through the proper routine to add external storage.   However, when rebooting, the box blinks one light for 30 seconds, then the entire display lights up, then it reboots, repeating this routine ad infinitum (nothing ever displays on the TV).   
    So, thinking I got a bad box, I hook up the old DVR, get it working, and then run the add ESata routine.  It now is in the same infinite loop as the old box (for 30 minutes now as I type).  
    Removing the ESata, and rebooting, back to normal operation, though without ESata and all of the recorded shows.  
    Any ideas?   Do you think my "mistake" in hooking up the ESata drive to the new box right off the bat might have messed up the drive?   I'm ordering an ESata to Sata cable so I can hook up the drive to my PC and see if it's accessable.  Maybe I can reformat it, knowing we'll lose all our programs (actually, my wife's programs......no big deal to me )
    Or does it take a long time to initialize an existing ESata drive with lots of programs on it?  
    Solved!
    Go to Solution.

    Greetings, armond_in_nj!
    Thanks for your message responding to my plea for help!
    OK.... Finally have had time to try everything again AND make notes along the way.
    I have a Motorola STB, model HD DVR QIP 7216 P2 500GB.
    I have a Western Digital external eSata hard drive, model  WDBABT0010HBK-NESN – 1TB (on the "approved" list).
    And yes, I have tried everything mentioned in the post by "steveKane" just above my original. See below at the end for what happened when I tried to re-format my WD drive on my desktop PC.
    When I first got my WD external HD several months ago, I had to call Verizon support to get the DVR to recognize the Western Digital external HD, but we finally got that fixed and all was fine (i.e., programs recording to external HD, status visible under DVR/Recorder Status using my remote). Then, around mid-november, when I would schedule programs to record, either when I was asleep or at work, when I went to view them later, often times one program was broken into 2 or more segments. Then a little later, sometimes while watching a recorded program, the DVR would just freeze. I would reset the Set Top Box (STB) and could continue watching the program. But this all got worse and worse and, finally, I called tech support. After a frustrating hour with a tech support person, who declared everything was fine with my STB because I could press RECORD and the DVR would record a short segment of programming. During that hour conversation, we had reset the STB more than 10 times. I finally asked to speak with this technician's supervisor, who finally agreed with me that the STB needed replacing. When I received the new STB, it would not function at all. So.... another call to support, more attempts on their end to re-set the STB, and finally they agreed that I needed yet another new STB. When that arrived, I went through all the proper steps to set up the STB first, without the external HD and, only when the new STB was working properly did I try to get it to recognize my external HD.
    The Western Digital instructions for connecting their drive to my DVR are as follows:
    1. Power off the DVR box by disconnecting the AC power cord. --- Did that
    2. Connect one end of the eSATA cable to your My Book AV and the other end to the DVR box (do not use a USB cable to connect to DVR) -- Did that
    3. Connect one end of the AC power cord to the My Book AV and the other end to the electrical outlet. The power LED inlluminates. ---- I did, and it did
    4. Waii approximately 15 seconds for the hard drive to reach operating speed. -- Did that
    5. Power on the DVR box by reattaching the AC power cord. -- Did that
    6. Follow the on-screen instructions.
    This procedure did not work. There were no on-screen instructions when I powered the STB back on. So, I did the following:
    1. I went to "DVR/Enable more storage" and followed the prompts from there, which at one point told me to connect the external HD to the STB, which it already was. I pressed OK to proceed and got the message that "external storage is active for this STB. To detect the external hard, please press OK to reboot the STB".
    2. Did that, waited; during reboot, a white band appears briefly across the TV screen with the words "Please wait" in red, then it goes away as the reboot process continues. Eventually, I get a message that says "Press MENU to watch FiOS TV, or turn your TV off". I press MENU, the screen appears (with red background) saying "Verizon FiOS is starting up - one moment pleast. Initial download in progress. It takes about one minute", then after a minute or so, the TV image appears.
    3. I go to DVR/Recorder status, and the external HD is not there.
    Since the STB prompted me to connect the external HD during step 1 above, I decided to power everything off, disconnect the eSATA cable from the back of the STB, reconnect power to the external HD, then reconnect power to the STB to reboot.
    Everything in step 2 above proceeds as outlined there, but still I got no on-screen instructions after FiOS started back up. So, I went to DVR/Enable more storage, followed the prompts until asked to connect the external HD to the STB, at which time, now, I get a pop-up screen that says "The connected external HD has been previously used with another STB with a different DVR. Using the drive on this STB will remove all existing content on the drive. Do you want to use this drive?" Options are "ACCEPT" or "REJECT". I press OK to ACCEPT, then we go through the whole reboot thing again, and still no sign of the external HD under DVR/Recorder status.
    I even tried connecting the WD external HD to my desktop computer (running XP Professional) using a USB cable (following "steveKane's" suggestion in his posting of 12-02-12), thinking I could try to reformat the drive on my desktop. After connecting, I go to Window Explorer and the drive is not there. When I open the "Safely Remove Hardware" icon in the Task Bar, the drive is visible there. I tried stopping the device, removing it, then waiting a bit and reconnecting it, but get the same results. Not visible in Explorer so that I can try to re-format.
    The posting by "mcorbo" right above "steveKane's" posting says "The only way to reuse the drive is to let the dvr reformat it." So how does one get the DVR to reformat the drive????
    I hope I have given you the information needed.
    I'm at my wits end. Any suggestions would be greatly appreciated.

  • When i login to update my existing apps, the login window shows the wrong apple id. and it's all prayed out, i can't change it. how do i solve this problem?

    When I login to update my existing apps, the login window shows the wrong apple id. i cannot change it because it is all grayed out. how do i solve this problem?

    Content and Apple IDs -
    Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one Apple ID to another. Apple does not merge Apple IDs. You will never be able to access your content bought with one Apple ID with a new Apple ID.

  • I want a new and more powerful (non-Apple) wireless router but I still want to use my existing Time Capsule to continue with my Time Machine backups and I still need the Time Capsule's Network Attached Storage (NAS) features and capabilities

    THE SHORTER STORY
    My goal is to successfully use my existing Time Capsule (TC) with a new and more powerful wireless router. I need a new and more powerful wireless router in order to reach a distant Denon a/v receiver that is physically located in a master bedroom some 50 feet away from my modem. I need to provide this Denon a/v receiver with an Internet connection so that it can obtain its firmware updates and I need to connect this Denon a/v receiver to my network in order to use its AirPlay feature. I believe l still need the TC's Network Attached Storage (NAS) features because I am not sure if the new wireless router will provide me with the NAS like features / capabilities I need to share files between my two Apple laptops with OS X 10.8.2. And I know that I absolutely need my TC's seamless integration with Apple's Time Machine (TM) application in order to continue to make effortless backups of my two Apple laptops. To my knowledge nothing works with TM like Apple's TC. I also need the hard disk storage space built into the TC.
    I cannot use a long wired Ethernet cable connection in this apartment and I cannot use power-line adapters. I have read that wireless range extenders and repeaters are difficult to successfully set-up and that they will reduce data speeds, especially so when incorrectly set-up. I cannot relocate my modem and/or primary base station wireless router.
    In short, I want to use my TC with my new and more powerful wireless router. I need to stop using the TC to connect to the modem. However, I still need the TC for seamless TM backups. I also need to use the TC's built in hard drive for storage. And I may still need the TC's NAS capabilities to share files wirelessly between laptops because I am assuming the new wireless router will not provide NAS capabilities for OS X 10.8.2 (products like this/non-Apple products rarely seem to work with OS X 10.8.2/Macs to provide NAS features and capabilities). Finally, I want to continue to use my Apple laptop and AirPlay to wirelessly access and play my iTunes music collection stored on the TC's hard drive. I also want to continue to use my Apple laptop, AirPlay and Apple TV to wirelessly watch movies and TV shows stored on the additional external hard drive connected to the TC via USB. Can someone please advise on how to set-up my new Asus wireless router with my existing TC in such a way to accomplish all of this?
    What is the best configuration or set-up to accomplish my above goals?
    Thank you in advance for your assistance!!!
    THE FULL STORY
    I live in an apartment building where my existing Time Capsule (TC) is located in my living room and serves many purposes. Specially, my TC is at least all of the following:
    (1) Wi-Fi router connected to Comcast Internet service via Motorola SB6121 cable modem - currently the TC is the Wi-Fi base station that connects to the modem and has the gateway address to the Internet. The TC now provides the DHCP service for the Wi-Fi network.
    (2) Wireless router providing Internet and Wi-Fi network access to several Wi-Fi clients - two Apple laptop computers, an iPod touch, an iPad and an iPhone all connect wirelessly to the Internet via the TC.
    (3) Wired Ethernet router providing Internet and Wi-Fi network access to three different devices - a Panasonic TV, LG Blu-Ray player and an Apple TV each use one of the three LAN ports on the back of the TC to gain access to the Internet.
    (4) Primary base station in my attempt to extend my wireless network to a distant (located far away) Denon a/v receiver requiring a wired Ethernet connection - In addition to the TC, which is my primary base station, I am also using a second extended Wi-Fi base station (a Netgear branded product) to wirelessly extend my WiFi network to a Denon receiver located in the master bedroom and requiring a wired Ethernet connection. I cannot use a wired Ethernet connection to continuously travel from the living room to the master bedroom. The distance is too great as I cannot effectively hide the Ethernet cable in this apartment.
    (5) Time Machine (TM) backup facilitator - I use my TC to wirelessly back-up two Apple laptops using Apple's Time Machine (TM) application. However, I ran out of storage space on my TC and therefore added external storage to it. Specifically, I added an external hard drive to my TC via the USB port on the back of the TC. I now use this added external hard drive connected to the TC via USB as the destination storage drive for my TM back-ups. I have partitioned the added external hard drive, and each of the several partitions all have enough storage space (e.g., each of the two partitions used by TM are sized at three times the hard drive space of each laptop, etc.). Everything works flawlessly.
    (6) Network Attached Storage (NAS) - In addition to using the TC's Network Attached Storage (NAS) capabilities to wirelessly back-up two Apple laptops via TM, I also store other additional files on both (A) the hard drive built into the TC and (B) the additional external hard drive connected to the TC via USB (there are additional separate partitions on this drive for these other additional and non-TM backup files).
    I use the TC's NAS feature with my Apple laptop and AirPlay to wirelessly access and play my iTunes music collection stored on the TC's hard drive. I also use my Apple laptop, AirPlay and Apple TV to wirelessly watch movies and TV shows stored on the additional external hard drive connected to the TC via USB. Again, everything works wirelessly and flawlessly. (Note: the Apple TV is connected to the network via Ethernet and a LAN port on the back of the TC).
    The issue I am having is when I try to listen to music via Apple's AirPlay in the master bedroom. This master bedroom is located at a distance of two rooms away from the TC's current location in the living room, which is a distance of about 50 feet. This apartment has a long rectangular floor plan where each room is connected to the next in a straight line. In order to use AirPlay in the master bedroom I am using a second extended Wi-Fi base station (a Netgear branded product) to wirelessly extend my WiFi network to a Denon receiver located in the master bedroom and requiring a wired Ethernet connection. This additional base station connects wirelessly to the WiFi network provided by my TC and then gives my Denon receiver the wired Ethernet connection it needs to use AirPlay. I have tried moving my iTunes music directly onto my laptop's hard drive, and then I used AirPlay on this same laptop to connect to the Denon receiver. I always get a successful connection and the song plays, but the problem is that the connection inevitably drops.
    I live in an apartment building and all of the many wireless routers in this building create a great deal of WiFi interference on both the 2.4 GHz and 5GHz bands. I have tried connecting the Netgear product to each the 2.4 and 5 GHz bands, but neither band can successfully maintain a wireless connection between the TC and the Netgear product. I also attempted to maintain a wireless connection to an iPod touch using the 2.4 GHz band and AirPlay on this iPod touch to play music on the Denon receiver. Again, I was able to establish a connection and successfully play music, but after a few minutes the connection dropped and the music stopped playing. I therefore have concluded that I have a poor wireless connection in the master bedroom. I can establish a connection, but it is intermittent with frequent drops. I have verified this with both laptops by working in the master bedroom for an entire day on both laptops. The Internet connection in this master bedroom proved to drop out frequently - about once an hour with the laptops. The wireless connection and the frequency of its dropout are far worse with the iPod touch and an iPhone.
    I cannot relocate the TC. Also, this is an apartment and I therefore cannot extend the range of my network with Ethernet cable (I cannot drill through walls/ceilings, etc.). It is an old building with antiquated wiring and power-line adapters are not likely to function properly, nor can I spare the direct power outlet required with a power-line adapter. I simply need every outlet I can get and cannot afford to block any direct outlet.
    My solution is to use a more powerful wireless router. I found the ASUS RT-AC66U Dual-Band Wireless-AC1750 Gigabit Router which will likely provide a better connection to my wireless Internet in the master bedroom than the TC. The 802.11ac band of this Asus wireless router is totally useless to me, but based on what I have read I believe this router will provide a stronger connection at greater distances then my TC. And I will be ready for 802.11ac when it becomes more widely available.
    However, I still need to maintain the TC's ability to work seamlessly with TM to backup my two laptops. Also, I doubt the new Asus router will provide OS X 10.8.2 with NAS like features and capabilities. Therefore, I still would like to use the TC's NAS capabilities to share files on my network wirelessly assuming the Asus wireless router fails to provide this feature. I need a new and more powerful wireless router, but I need to maintain the TC's NAS features and seamless integration with TM. Finally, I want to continue to use my Apple laptop and AirPlay to wirelessly access and play my iTunes music collection stored on the TC's hard drive. I also want to continue to use my Apple laptop, AirPlay and Apple TV to wirelessly watch movies and TV shows stored on the additional external hard drive connected to the TC via USB. Can someone advise on how to set-up my existing TC with this new Asus wireless router in such a way to accomplish all of this?
    Modem
    Motorola SB6121 SURFboard DOCSIS 3.0 Cable Modem
    Existing Wireless Router and Primary Wi-Fi Base Station - Apple Time Capsule
    Apple Time Capsule MC343LL/A 1TB Sim DualBand (purchased June 2010, likely the Winter 2009 Model)
    Desired New Wireless Router and Primary Wi-Fi Base Station - Non-Apple Asus
    ASUS RT-AC66U Dual-Band Wireless-AC1750 Gigabit Router
    Extended Wi-Fi Base Station - Provides an Ethernet Connection to a Denon A/V Receiver Two Rooms Away from the Modem
    Netgear Universal Dual Band Wireless Internet Adapter for TV & Blu-Ray (WNCE3001)
    Addition External Hard Drive Attached to the Existing Apple Time Capsule via USB
    WD My Book Studio 4TB Mac External Hard Drive Storage USB 3.0
    Existing Laptops on the Wireless Network Requiring Time Machine Backups
    MacBook Air (11-inch, Mid 2012) OS X 10.8.2
    MacBook Pro (13-inch Mid 2010) OS X 10.8.2
    Other Existing Apple Products (Clients) on the Wireless Network
    iPod Touch (second generation) is model A1288.
    iPad (1st generation)
    Apple TV (3rd generation) - Quantity two (2)

    Thanks Bob Timmons.
    In regards to a Plan B, I hear ya brother. I am already on what feels like Plan Z. Getting WiFi to a far off room in an apartment building crowded with WiFi routers is a major pain.
    I am basing my thoughts on the potential of a new and more powerful router reaching the far off master bedroom based on positive reviews on cnet.com, pcmag.com and pcworld.com. All 3 of these web sites have reviewed the Asus RT-AC66U 802.11AC wireless router as well as its virtual twin cousin 802.11n router. What impressed me is that all 3 sites rated this router #1 overall in terms of both range and speed (in both the 802.11n and 802.11AC flavors). They tested the router in real world scenarios where the router needed to compete with a lot of other wireless routers. One of the sites even buried this Asus router in a media room with thick walls and inside a media cabinet. This Asus router should be able to serve my 2.4 GHz band wireless clients (iPod Touch and iPhone 4) with a 2.4GHz Wireless-N band offering some 50 feet of dependable range and a 60 Mbps throughput at that range. I am hoping that works, but it's borderline for my master bedroom. My 5 GHz wireless clients (laptops) will enjoy a 5GHz Wireless-N band offering 150 feet of range and a 200 Mbps throughput at that range. I have no idea what most of that stuff means, but I did also read that Asus could reach 300 feet and I got really excited. My mileage may vary of course and I'm sure I'm making some mistakes in my interpretation of their data. However, my Winter 2009 Time Capsule was rated by cnet.com to deliver real world performance of less than that, and 802.11AC may or may not be useful to me someday. But when this Asus arrives and provides anything other than an excellent and consistent wireless signal without drops in the master bedroom it's going right back!
    Your solution sounds great, but I have some questions. I'm using OS X 10.8.2 and Airport Utility (version 6.1 610.31) and on its third tab labeled "Wireless" the top option enables you to set "Network Mode" to either:
    Create a wireless network
    Extend a wireless network
    Off
    Given your advice to "Turn off the wireless on the TC," should I set Network Mode to Off? Sorry, I'm clueless in regards to how to turn off the wireless on the TC any other way. Can you provide specific steps on how to turn off the wireless on the TC? If what I wrote is correct then what should the rest of this Wireless tab look like, or perhaps it is irrelevant when wireless is off?
    Next, what do you mean by "Configure the TC in Bridge Mode?" Under Airports Utility's fourth tab labeled "Network" the top option "Router Mode" allows for either:
    DHCP and Nat
    DHCP Only
    Off (Bridge Mode)
    Is your advice to Configure the TC in Bridge Mode as simple as setting Router Mode to Off (Bridge Mode)? If yes, then what should the rest of this "Network" tab look like? Anything else involved in configuring the TC in Bridge Mode or is it really as simple as setting the Router Mode to "Off (Bridge Mode)"?
    How about the other tabs in Airport Utility, can they all stay as is assuming I use the same network name and password for the new Asus wireless router? Or do I need to make any other changes to the TC via Airport Utility?
    Finally, in regards to your Plan B suggestion. I agree. But do you have a Plan B for me? I would greatly appreciate any alternative you could provide. Specifically, if you needed a TC's Internet connection to reach a far off corner of your home how would you do it? In the master bedroom I need both a wired Ethernet connection for the Denon a/v receiver and wireless Internet connection for the iPhone and iPod Touch.
    Power-Line Adapters - High Cost, Blocks at Least One Wall Outlet and Does Not Solve the Wireless Need
    I actually like exactly one power-line adapter, which is the D-Link DHP-540 PowerLine AV 500 4-Port Gigabit Switch. This D-Link power-line adapter plugs into your wall outlet with a normal sized plug (regular standard power cord much like any other electronic device) instead of all of the other recommended power-line adapters that not only use at least one wall outlet but also often block the second outlet. You cannot use a power strip with a power-line adapter which is very impractical for me. And everything about my home is strange and upside down. The wiring here is a disaster and I don't have faith in its ability to carry Internet access from the living room to the master bedroom. And this D-Link power-line adapter costs $90 each and I need at least two to make the connection to the Denon A/V receiver. So, $180 on this solution and I still don't have a dependable drop free wireless connection in the master bedroom. The Denon might get its Ethernet Internet connection from the power-line adapter, but if I want to use an iPhone 4 or iPod Touch to stream AirPlay music to the Denon wirelessly (Pandora/iTunes, etc.) from the master bedroom the wireless connection will not be stable in there and I've already spent $190 on just the two power-line adapters needed.
    Extenders / Repeaters / Wirelessly Extending the Wireless Network
    I have also read great things about the Amped Wireless High Power Wireless-N 600mW Gigabit Dual Band Range Extender (Repeater) SR20000G and the My Net Wi-Fi Range Extender. The former is very powerful and the latter is easier to install. Both cost about $150 ish so similar to a new Asus router. However, everything I read about Range Extenders points to them not being very effective for a far off corner of your house wherein it's apparently hard to place the range extender in the sweet spot where it both gets a strong enough signal to actually effectively extend the wireless signal and otherwise does not reduce network throughput speeds to unacceptable speeds.
    Creating a Roaming Network By Hard Wiring with Ethernet Cable - Wife Would Say, "**** No!"
    Even Apple seems to warn against wirelessly extending your network (see: http://support.apple.com/kb/HT4145#) and otherwise strongly recommends a roaming network where Ethernet cable is used to connect two wireless base stations. However, I am in an apartment where stringing together two wireless base stations with Ethernet cable would have an extremely low wife acceptance factor (WAF). I cannot (both contractually and from a skill prospective) hide Ethernet wire in the walls or ceiling. And having visible Ethernet cable running from room-to-room would be unacceptable, especially to the wife.
    So what is left? Do you have a Plan B for me? Thanks in advance for your help!

  • Report Generation tool kit for MS office (Opening an existing excel file and appending to the bottom)

    I don't have any problems creating and filling an excel sheet with data. I use the New Report.vi, Easy Title.vi, and Easy Text.vi to create the file. I then save and dispose properly.
    What I don't seem to be able to do is open the exsting file and append data to the end of the sheet.
    Thanks in advance for your help.
    todd

    Hi Todd,
    You can do this by creating a new Excel report with the existing excel file path wired to the "template" input. Then use "Excel Get Last Row.vi" (located under Report Generation\Excel Specific\Excel General) to obtain the location of the last row. Then use that location to input new data into the file.
    Hope this helps,
    Dan

  • The name "Folder" does not exist in the namespace

     I am trying to learn Wpf and doing some of the examples on the Microsoft site. https://msdn.microsoft.com/en-us/library/vstudio/bb546972(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
    I am using Visual studio 2013. As I work through the example I am getting the following error. 
    Error 1
    The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
    c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
    11 17
    FolderExplorer
    Error 2
    The name "Folder" does not exist in the namespace "clr-namespace:FolderExplorer".
    c:\users\hbrown\documents\visual studio 2013\Projects\FolderExplorer\FolderExplorer\MainWindow.xaml
    16 7
    FolderExplorer
    Here is the code:
    <Window x:Class="MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:my="clr-namespace:FolderExplorer"
        Title="Folder Explorer" Height="350" Width="525">
        <Window.Resources>
            <ObjectDataProvider x:Key="RootFolderDataProvider" >
                <ObjectDataProvider.ObjectInstance>
                    <my:Folder FullPath="C:\"/>
                </ObjectDataProvider.ObjectInstance>
            </ObjectDataProvider>
            <HierarchicalDataTemplate 
       DataType    = "{x:Type my:Folder}"
                ItemsSource = "{Binding Path=SubFolders}">
                <TextBlock Text="{Binding Path=Name}" />
            </HierarchicalDataTemplate>
        </Window.Resources>
    I have a class file named Folder.vb with this code. 
    Public Class Folder
        Private _folder As DirectoryInfo
        Private _subFolders As ObservableCollection(Of Folder)
        Private _files As ObservableCollection(Of FileInfo)
        Public Sub New()
            Me.FullPath = "c:\"
        End Sub 'New
        Public ReadOnly Property Name() As String
            Get
                Return Me._folder.Name
            End Get
        End Property
        Public Property FullPath() As String
            Get
                Return Me._folder.FullName
            End Get
            Set(value As String)
                If Directory.Exists(value) Then
                    Me._folder = New DirectoryInfo(value)
                Else
                    Throw New ArgumentException("must exist", "fullPath")
                End If
            End Set
        End Property
        ReadOnly Property Files() As ObservableCollection(Of FileInfo)
            Get
                If Me._files Is Nothing Then
                    Me._files = New ObservableCollection(Of FileInfo)
                    Dim fi As FileInfo() = Me._folder.GetFiles()
                    Dim i As Integer
                    For i = 0 To fi.Length - 1
                        Me._files.Add(fi(i))
                    Next i
                End If
                Return Me._files
            End Get
        End Property
        ReadOnly Property SubFolders() As ObservableCollection(Of Folder)
            Get
                If Me._subFolders Is Nothing Then
                    Try
                        Me._subFolders = New ObservableCollection(Of Folder)
                        Dim di As DirectoryInfo() = Me._folder.GetDirectories()
                        Dim i As Integer
                        For i = 0 To di.Length - 1
                            Dim newFolder As New Folder()
                            newFolder.FullPath = di(i).FullName
                            Me._subFolders.Add(newFolder)
                        Next i
                    Catch ex As Exception
                        System.Diagnostics.Trace.WriteLine(ex.Message)
                    End Try
                End If
                Return Me._subFolders
            End Get
        End Property
    End Class
    Can someone explain what is happening. 
    Thanks Hal

    Did you try to build the application (Project->Build in Visual Studio) ? If the error doesn't go away then and you have no other compilation errors (if you do you need to fix these first), you should replace "FolderExplorer" with the namespace
    in which the Folder class resides. If you haven't explicitly declared a namespace, you will find the name of the default namespace under Project->Properties->Root namespace. Copy the value from this text box to your XAML:
    xmlns:my="clr-namespace:FolderExplorer"
    The default namespace is usually the same as the name of the application by default so if your application is called "FolderExplorer" you should be able to build it.
    If you cannot make it work then please upload a reproducable sample of your issue to OneDrive and post the link to it here for further help.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

Maybe you are looking for

  • Delay on playing an instrument (only at the first time)

    Hello, I'm new to Mainstage and have the following problem: Always I open my concert, there is a small delay in all instruments in all patches. But ONLY at the first time, I play the instrument (hit the key). For the rest of the performance everythin

  • PasswordHandler cannot be resolved to a type

    Hi i am doing using ldap I am getting error of PasswordHandler cannot be resolved to a type at the line PasswordHandler pHandler = PasswordHandler.getInstance();Am I missing any jar files or ? pls help

  • Enabling a disk in T3 Storage Array

    Currently using a T3 Storage Array where one of the drive slots is showing disabled. We have already replaced the bad disk and power cycled the array to try and enable the drive slot with no success. Does anyone know of a way to enable the drive slot

  • Crashing when creating tagged pdf book

    I am trying to save a book to pdf using the tagged pdf option on the Tags tab of the PDF setup dialog.  It works fine except when there is a foldout graphic (36.5 x 11).  I get the following error: Internal Error: 10014, 7686376, 7686666, 10069197  a

  • Javascript issue for fragment in jspx page cannot find regionId

    I am using Jdev 11.1.1.4.0 When i am calling the javascript function its not able to find the region thus my component is not found in the jsff page. Please help !!! Below is my jspx page :- <f:view>     <af:document id="d1" title="Home Page" partial