Add SQL DB in SCOM manually?

Hi, 
How can I add manually a SQL DB in SCOM 2007, for a server which is already being monitored.

Hi Udit,
Can you try this please-
1) Install SCOM agent on the Server hosting the DB.
2) Import SQL retail MP (of course of the same version as that of your DB)
3) Enable the Discoveries for the DB.
4) Create a login/user on the SQL DB and assign it read access. This login/user is the account that is configured in SCOM as Action account. If its a separate Run As Account then refer
http://blogs.technet.com/b/kevinholman/archive/2010/09/08/configuring-run-as-accounts-and-profiles-in-r2-a-sql-management-pack-example.aspx.
Also you can grant "log on locally" rights to your run as account.
5) Restart "System Center Management" service on the SQL server.
6) Wait for sometime for Discoveries to run. After that your DB should have been discovered.
Thanks, S K Agrawal

Similar Messages

  • HT201593 The newest version of iTunes deletes all of my iPod Touch 5th gen audible and visual media when I delete or add music or video to my library and add it to my device manually. Why?

    The newest version of iTunes deletes all of my iPod Touch 5th gen audible and visual media when I delete or add music or video to my library and add it to my device manually. Why? I guess the question speaks for itself. I have the latest version of iTunes and iOS 8.2 on my iPod Touch.

    If it's any consolation i've just had a similar thing happen. Went to add a playlist and it wiped 35 gig of music off my iPod touch 64g in a nanosecond. I've got the latest iTunes and osx but do not back up because i keep different styles of music (and loads of it) in separate libraries and devices which i don't want mixed together. All my stuff is burned from cd so it's not lost for good and i've got a hard drive with the "lost" mp3 music on it but even so it will take literally weeks to prune the tracks for my iPod to be the same again. Why do they make it so difficult to manage your music on these things. I have massive amounts of music on my computer so autofill is a disastrous unusable gimmick to me. The whole thing seems to be aimed at 9 year old kids with about 6 mp3's on their phone rather than serious music lovers (for example accessing EQ is a joke let alone the lack of a manual option). I'm a dj and use apple for that reason but to be honest i'm beginning to wonder why. I'm absolutely livid. The weird thing is that my mac still shows the titles of the missing tunes in the 'on my device' window but as my macbook storage display shows no increase i'm pretty sure it's all gone. Nightmare. I have no confidence in this device anymore and could barely use the previous osx 8.2 anyway. Why they have to change it every ten minutes is beyond me. As the old saying goes 'if it ain't broke, don't fix it' but this format just gets more broken every time they update. An absolute disgrace. Why not just drag and drop or delete. No wonder the iPod is said to be a dying device, it's for music, it is not a phone. Not fit for purpose anymore. I can't be bothered to read a massive 'how to use' article every update. Good technology should be easier and more intuitive with each new version. I suppose i'll have to phone apple at my expense to find out what's going on, or maybe that's the whole idea. Very very very not happy.

  • Is it possible in PLD to add sql query ?

    Hi
    In Order report in PLD , i need to add the total amount of down payment . it doesn't exists in Order , so i need to do a sql query to display this amount .
    is it possible to add sql query in pld formula ?
    thanks ,
    regards
    laurent

    Hi,
    You cannot add sql query in PLD.If you need SQL query use Crystal report or on the document add UDF and try by adding FMS and then selecting UDF in pld
    Thanks,
    Neetu

  • Add sql statements in SGA

    select a.address address,
    s.hash_value hash_value,
    s.piece piece,
    s.sql_text sql_text,
    u.username parsing_user_id,
    c.username parsing_schema_id
    from v$sqlarea a,
    v$sqltext_with_newlines s,
    dba_users u,
    dba_users c
    where a.address=s.address
    and a.hash_value=s.hash_value
    and a.parsing_user_id=u.user_id
    and a.parsing_schema_id=c.user_id
    and exists (select 'x'
    from v$sqltext_with_newlines x
    where x.address=a.address
    and x.hash_value=a.hash_value
    and upper(x.sql_text) like '%UNION%')
    order by 1,2,3
    On executing the above statement the server display list of sqltext present in sga. We know that the server first search for the record in sga and if it is not
    present in SGA it searches in data files.
    My question is ,adding all the sql statements in sga manually is advisable? will that improve the performance?

    Vinodh2 wrote:
    In production the users uses some sql statement frequently. So those statements should be in the sga for better performance. The dbms package said by you takes object as input. What is object here?
    Did you check the last line I pasted from document?
    The value for this identifier is the concatenation of the address and hash_value columns from the v$sqlarea view.Each SQL in SQL AREA has a hash_value to identify it. You can use this hash value to decide which SQL want to keep in shared pool.
    Having Dynamic sql statements(records fetched based on varying filter condtion) called from interfaces will not help.
    But having static sql statements helps.
    In that case how to include those sql.Like said, you are introducing some more problems instead of any real gain by trying to micro manage how shared pool work. You should let Oracle take care it with it's own algorithm. Unless some rare cases, that you have limited shared pool and super busy system you want to pin some SQL in the shared pool with provide package.

  • [svn] 4278: Add test case to qa-manual webapp on BlazeDS/trunk.

    Revision: 4278
    Author: [email protected]
    Date: 2008-12-10 09:08:12 -0800 (Wed, 10 Dec 2008)
    Log Message:
    Add test case to qa-manual webapp on BlazeDS/trunk. The test case calls a remote object to push a message to a destination and has a Consumer setup to receive messages sent to the destination. When the remote object and the consumer use different channel set instances (even if they contain the same channel) the consumer is only receiving the first pushed message. See BLZ-288 for more info.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-288
    Modified Paths:
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/messaging-config.mods.xml
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/remoting-config.mods.xml
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/services-config.mods.xml
    Added Paths:
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/com/
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/com/adobe/
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/com/adobe/samples/
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/com/adobe/samples/hsbc/
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/src/com/adobe/samples/hsbc/MessageSender.java
    blazeds/trunk/qa/apps/qa-manual/messaging/RPC2MsgLite.mxml

  • [svn] 1455: add sql date types and custom serialization tests

    Revision: 1455
    Author: [email protected]
    Date: 2008-04-29 11:56:59 -0700 (Tue, 29 Apr 2008)
    Log Message:
    add sql date types and custom serialization tests
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/DateTy pesTest.mxml
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/MyFile Ref.as
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/Proper tyProxyTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/SQLDat eTypesTest.mxml

    Congrats to Shanky and Durval!
     SQL Server General and Database Engine Technical Guru - June 2014  
    Shanky
    SQL Server: What does Column Compressed Page Count Value Signify
    in DMV Sys.dm_db_index_physical_stats ?
    DB: "Interesting and detailed"
    DRC: "• This is a good article and provides details of each and every step and the output with explanation. Very well formed and great information. • We can modify the create table query with “DEFAULT VALUES". CREATE TABLE [dbo].[INDEXCOMPRESSION](
    [C1] [int] IDENTITY(1,1) NOT NULL, [C2] [char](50) NULL DEFAULT 'DEFAULT TEST DATA' ) ON [PRIMARY]"
    GO: "Very informative and well formed article as Said says.. Thanks for that great ressource. "
    Durval Ramos
    How to get row counts for all Tables
    GO: "As usual Durva has one of the best articles about SQL Server General and Database Engine articles! Thanks, buddy!" "
    Jinchun Chen: "Another great tip!"
    PT: "Nice tip" 
    Ed Price: "Good topic, formatting, and use of images. This would be far better if the examples didn't require the black bars in the images. So it would be better to scrub the data before taking the screenshots. Still a good article. Thank you!"
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • [svn:bz-trunk] 17844: Add missing taskdef for qa-manual.

    Revision: 17844
    Revision: 17844
    Author:   [email protected]
    Date:     2010-09-24 09:46:11 -0700 (Fri, 24 Sep 2010)
    Log Message:
    Add missing taskdef for qa-manual.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-manual/build.xml

  • Is there any way to add SQL Server 2008 R2 "SQL Authentication" logins to SQL Server Integration Services

    Hi Experts, 
    We have a way to add the Windows Authentication-logins /OS users  in SSIS
    Component Services -> Computers -> My Computer -> DCOM Config -> MSDTSServer
    Right click on MSDTSServer
    Click properties
    Click on the Security tab
    Select Customize and add the users/groups to the Launch/Activation and Access tabs accordingly
    Add the user to the local Distributed COM Users group
    Restart the SSIS service
    +++But do we have a way to add SQL Server Authetication logins to SSIS, Please clarify me 
    Prem Gokull

    Hi PREM,
    If I understand correctly, you want to use SQL Server Authentication log to SQL Server Integration Services.
    Based on my research, only Microsoft Windows Authentication is available for SSIS. So we cannot use SQL Server Authentication log to SQL Server Integration Services. Besides, we can only add OS users in the DCOM Config permission area.
    Reference:
    Connect to Server (Integration Services)
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Why can't I add playlist on my old iPhone iTunes on my computer? Can add it on my phone manually but I need to do it on the computer..

    Why can't I add playlist on my old iPhone iTunes on my computer? Can add it on my phone manually but I need to do it on the computer.
    This is an old iPhone that I am only using as an Ipod. It is an Iphone 3GS and I now have an iPhone 4S.
    Any help would be much appreciated!

    I assume that you mean that you do have an iPhone because messages will not work with any other type of cell phone. You should be able to add your phone number in Settings>Messages>Send & Receive at>You can be reached by iMessages at, if your phone number is lited in there, select it and then uncheck your email address and then the iPad will be using the phone number just like the iPhone.
    If you phone number is not listed in there, you probably have to sign out/turn off Messages on the phone and the iPad and then start over again on the phone - and then your phone number should be accessible to use on the iPad.
    Read this support article and pay attention to the information at the very end.
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538

  • Upgrade to SCCM 2012 R2 Fails by ADD SQL ACCOUNT

    Hello,
    im Testing Today the Upgrade to R2.
    in  Step to Upgrade the Database  I become an Error xxx\Compuertname not found to add SQL Account
    My Server name is xxx.de\computername an not xxx\computername (netbiosname with dot and same with DNS Name) .
    Have anywhere an Idea as Workaround for me ?

    Microsoft support were no help...
    I found a couple work arounds:
    Move the database to the site server, do the upgrade, move the database back to the database server
    Hack the DB:
    create a login with a valid user account on the master DB on the SQL server
    stop the sql server
    Start SQL in single server mode
    From an elevated cmd (Run as administrator), access the right folder where sqlservr.exe executable is located and execute below commands. Normally you will find it at “C:\Program Files\Microsoft SQL Server\MSSQL[InstanceName]\MSSQL\Binn”
    C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn>sqlservr.exe -m
    start SSMS in DAC mode: start SSMS, cancel the connection to the server,click on the
    Database Engine Query icon (to the right of the new query button),and put admin: in front of the server name
    run the following:
    select @@servername
    GO
    use master
    GO
    sp_configure 'allow updates', 1
    GO
    reconfigure with override
    GO
    then do this:
    update
    master.sys.server_principals
    set master.sys.server_principals.name
    = 'domain\servername$'
    where master.sys.server_principals.name
    = 'domain.com\dummyaccount'
    restart the sql server
    upgrade SCCM
    keep in mind i am currently testing this solution to make sure it doesn't cause issues

  • Where are the SQL and PSQL reference manuals gone ?

    Hello,
    I cannot found the SQL and PSQL reference manuals on OTN. In previous version of this web site, there was direct links available, but they seem to have disappeared. As a SQL developer, I have frequently to search in those manuals:
    - Oracle8i SQL Reference Release 8.1.5 A67779-01
    - Oracle8i SQL Reference Release 2 (8.1.6) A76989-01
    - Oracle8i SQL Reference Release 3 (8.1.7) A85397-01
    - Oracle9i SQL Reference Release 1 (9.0.1) A90125-01
    - Oracle9i SQL Reference Release 2 (9.2) A96540-01
    - Oracle8i PL/SQL User's Guide and Reference Release 8.1.5
    - Oracle8i PL/SQL User's Guide and Reference Release 8.1.6
    - Oracle8i PL/SQL User's Guide and Reference Release 8.1.7
    - Oracle9i PL/SQL User's Guide and Reference Release 9.0.1
    - Oracle9i PL/SQL User's Guide and Reference Release 9.2
    I found in this forum links to Oracle9i SQL Reference
    Release 2 (9.2) and PL/SQL User's Guide and Reference
    Release 2 (9.2), but I would appreciate to have links in the OTN page. Why did you change this ? I must now use Google to search the informations that I need.
    Regards

    FYI, all the Oracle manuals are online at http://tahiti.oracle.com. There is also a SQL & PL/SQL statement lookup feature that strikes me as a bit easier than using the manual.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Not to able add sql query in the item source

    Hi,
    I am getting this error when i am trying to add the sql query in the item source
    ORA-20505: Error in DML: p_rowid=3206911131098131, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-01461: can bind a LONG value only for insert into a LONG column
    SELECT
    "UCL"
    FROM
    SELECT
    TRUNC((
    (SUM("EV FINAL" / 100) / COUNT("Object_Name") )
    +
    3 *
    SQRT
    (SUM("EV FINAL" / 100) * SUM("EV FINAL" / 100) ) / COUNT("Object_Name") -
    (SUM("EV FINAL" / 100) / COUNT("Object_Name")) * (SUM("EV FINAL" / 100) / COUNT("Object_Name"))
    ),3) "UCL"
    FROM
    SELECT
    Pro.Project_Name "Project Name",
    POBJ.NAME "Object_Name",
    TRUNC((
    ( ( NVL(AEV."Total Actual",0) - (NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(ID."INCOMMING_DOC",0) ) ,0 ) +
    NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(D."DESIGN",0) ), 0 ) +
    NVL( (NVL( (MAX(X."Build") / 100) ,0) * NVL(B."BUILD",0) ),0 ) +
    NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(T."TESTING",0) ),0 ) +
    NVL( (NVL( (MAX(X."Release") / 100),0) * NVL(R."RELEASE",0) ),0 ) ) )
    DECODE(
    (NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(ID."INCOMMING_DOC",0) ) ,0 ) +
    NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(D."DESIGN",0) ), 0 ) +
    NVL( (NVL( (MAX(X."Build") / 100) ,0) * NVL(B."BUILD",0) ),0 ) +
    NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(T."TESTING",0) ),0 ) +
    NVL( (NVL( (MAX(X."Release") / 100),0) * NVL(R."RELEASE",0) ),0 ) ),0,NULL,
    (NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(ID."INCOMMING_DOC",0) ) ,0 ) +
    NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(D."DESIGN",0) ), 0 ) +
    NVL( (NVL( (MAX(X."Build") / 100) ,0) * NVL(B."BUILD",0) ),0 ) +
    NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(T."TESTING",0) ),0 ) +
    NVL( (NVL( (MAX(X."Release") / 100),0) * NVL(R."RELEASE",0) ),0 ) ) ) ) * 100),2)
    || '%' "EV_INITIAL",
    TRUNC((
    ( (NVL(AEV."Total Actual",0) - ( NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(IDR."INCOMMING_DOC_REPLAN",0) ),0) +
    NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(DR."DESIGN_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Build")/100),0) * NVL(BR."BUILD_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(TR."TESTING_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Release")/100),0) * NVL(RR."RELEASE_REPLAN",0)),0) ) )
    DECODE(
    ( NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(IDR."INCOMMING_DOC_REPLAN",0) ),0) +
    NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(DR."DESIGN_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Build")/100),0) * NVL(BR."BUILD_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(TR."TESTING_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Release")/100),0) * NVL(RR."RELEASE_REPLAN",0)),0) ) ,0,NULL,
    ( NVL( (NVL( (MAX(X."Incoming-Doc") / 100),0) * NVL(IDR."INCOMMING_DOC_REPLAN",0) ),0) +
    NVL( (NVL( (MAX(X."Design") / 100),0) * NVL(DR."DESIGN_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Build")/100),0) * NVL(BR."BUILD_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Testing") / 100),0) * NVL(TR."TESTING_REPLAN",0)),0) +
    NVL( (NVL( (MAX(X."Release")/100),0) * NVL(RR."RELEASE_REPLAN",0)),0) ) ) ) * 100),2) "EV FINAL",
    TRUNC(BRV."RSV",2) "Revised SV"
    FROM
    PROJECTS PRO,
    PROJECT_OBJECTS POBJ,
    INITIAL_EFFORT IE,
    SCHEDULE_VARIANCES SV,
    INITIAL_EFFORT_VIEW IEV,
    INCOMMING_DOC ID,
    DESIGN D,
    BUILD B,
    TESTING T,
    RELEASE R,
    INCOMMING_DOC_REPLAN IDR,
    DESIGN_REPLAN DR,
    BUILD_REPLAN BR,
    TESTING_REPLAN TR,
    RELEASE_REPLAN RR,
    ACTUAL_EFFORT_VIEW AEV,
    REPLAN_INITIAL_EFFORT_VIEW RIEV,
    BSV_RSV_VIEW BRV,
    SELECT
    distinct
    pro.project_name "Project Name",
    pobj.name "Object Name",
    PRO.ID "PRO_ID",
    POBJ.ID "POBJ_ID",
    CASE
    WHEN
    ts.status in ('CLOSE','CLOSED','Closed') AND
    tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review') THEN
    TO_CHAR('100')
    WHEN
    upper(ts.status) like upper('ACCEPTED') AND
    tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review') THEN
    TO_CHAR('75')
    WHEN
    ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
    tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review') THEN
    TO_CHAR('50')
    WHEN
    POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
    emp,employee_project_pairs epp
    WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
    pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
    and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review')
    AND PRO.ID = :p2_projects ) THEN
    TO_CHAR('100')
    END "Incoming-Doc",
    CASE
    WHEN
    ts.status in ('CLOSE','CLOSED','Closed') AND
    tsk.name in ('Design Review','Design - Review','TDD - Review') THEN
    TO_CHAR('100')
    WHEN
    UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
    tsk.name in ('Design Review','Design - Review','TDD - Review') THEN
    TO_CHAR('75')
    WHEN
    ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
    tsk.name in ('Design Review','Design - Review','TDD - Review')
    THEN
    TO_CHAR('50')
    WHEN
    POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
    emp,employee_project_pairs epp
    WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
    pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
    and tsk.name in ('Design Review','Design - Review','TDD - Review')
    AND PRO.ID = :p2_projects ) THEN
    TO_CHAR('100')
    END "Design",
    CASE
    WHEN
    ts.status in ('CLOSE','CLOSED','Closed') AND
    tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
    TO_CHAR('100')
    WHEN
    UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
    tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
    TO_CHAR('75')
    WHEN
    ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
    tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
    TO_CHAR('50')
    WHEN
    POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
    emp,employee_project_pairs epp
    WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
    pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
    and tsk.name in ('Build Review','Build - Review','Code - Review','Code')
    AND PRO.ID = :p2_projects ) THEN
    TO_CHAR('100')
    END "Build",
    CASE
    WHEN
    ts.status in ('CLOSE','CLOSED','Closed') AND
    tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
    TO_CHAR('100')
    WHEN
    UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
    tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
    TO_CHAR('75')
    WHEN
    ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
    tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
    TO_CHAR('50')
    WHEN
    POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
    emp,employee_project_pairs epp
    WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
    pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
    and tsk.name in ('Test Result Review','Test Result - Review','UTR - Review')
    AND PRO.ID = :p2_projects ) THEN
    TO_CHAR('100')
    END "Testing",
    CASE
    WHEN
    ts.status in ('CLOSE','CLOSED','Closed') AND
    tsk.name in ('Release-Review','Release - Verification',
    'Migration & Release - Review') THEN
    TO_CHAR('100')
    WHEN
    UPPER(ts.status) LIKE UPPER('ACCEPTED') AND
    tsk.name in ('Release-Review','Release - Verification',
    'Migration & Release - Review') THEN
    TO_CHAR('75')
    WHEN
    ts.status IN ('RIP','WIP','REJECTED','Rejected') AND
    tsk.name in ('Release-Review','Release - Verification','Migration & Release - Review') THEN
    TO_CHAR('50')
    WHEN
    POBJ.ID IN (SELECT POBJ.ID FROM projects pro,project_objects pobj,task tsk,skip_phase sp,employees
    emp,employee_project_pairs epp
    WHERE pobj.pro_id = pro.id and epp.pro_id = pro.id AND sp.tas_id = tsk.id and
    pobj.id = sp.OBJ_ID and pro.id = sp.pro_id
    and tsk.name in ('Release-Review','Release - Verification','Migration & Release - Review' )
    AND PRO.ID = :p2_projects ) THEN
    TO_CHAR('100')
    END "Release"
    FROM
    task_status ts,projects pro,project_objects pobj,task tsk
    ,employees emp,employee_project_pairs epp,REVIEW_ITEMS RI
    WHERE
    pobj.pro_id = pro.id
    and pro.id = ts.pro_id
    and pobj.id = ts.pro_obj_id
    and tsk.id = ts.task_id
    and emp.id = epp.emp_id
    and epp.pro_id = pro.id
    and ts.id = ri.ts_id
    AND PRO.ID = :p2_projects
    and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review','Design Review','Design - Review','TDD - Review',
    'Build Review','Build - Review','Code - Review','Code',
    'Test Result Review','Test Result - Review','UTR - Review',
    'Release-Review','Release - Verification','Migration & Release - Review')
    and ri.open_timestamp in
    SELECT
    distinct
    max(ri.open_timestamp)
    FROM
    task_status ts,projects pro,project_objects pobj,task tsk
    ,employees emp,employee_project_pairs epp,REVIEW_ITEMS RI
    WHERE
    pobj.pro_id = pro.id
    and pro.id = ts.pro_id
    and pobj.id = ts.pro_obj_id
    and tsk.id = ts.task_id
    and emp.id = epp.emp_id
    and epp.pro_id = pro.id
    and ts.id = ri.ts_id
    and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review','Design Review','Design - Review','TDD - Review',
    'Build Review','Build - Review','Code - Review','Code',
    'Test Result Review','Test Result - Review','UTR - Review',
    'Release-Review','Release - Verification','Migration & Release - Review')
    AND PRO.ID = :p2_projects
    GROUP BY POBJ.NAME,TSK.NAME )
    UNION
    select
    distinct
    pro.project_name "Project Name",
    pobj.name "Object Name",
    PRO.ID "PRO_ID",
    POBJ.ID "POBJ_ID",
    case
    when
    tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review') THEN
    TO_CHAR('100')
    end "Incoming-Doc",
    case
    when
    tsk.name in ('Design Review','Design - Review','TDD - Review') THEN
    TO_CHAR('100')
    end "Design",
    case
    when
    tsk.name in ('Build Review','Build - Review','Code - Review','Code') THEN
    TO_CHAR('100')
    end "Build",
    case
    when
    tsk.name in ('Test Result Review','Test Result - Review','UTR - Review') THEN
    TO_CHAR('100')
    end "Testing",
    case
    when
    tsk.name in ('Release-Review','Release - Verification',
    'Migration & Release - Review') THEN
    TO_CHAR('100')
    end "Release"
    FROM
    projects pro
    ,project_objects pobj
    ,task tsk
    ,skip_phase sp
    ,employees emp
    ,employee_project_pairs epp
    WHERE
    pobj.pro_id = pro.id
    and epp.pro_id = pro.id
    AND sp.tas_id = tsk.id
    and pobj.id = sp.OBJ_ID
    and pro.id = sp.pro_id
    and tsk.name in ('Incomming-Doc Review','Incoming Doc- Review',
    'Incoming Doc- Review','FDD - Review','Design Review','Design - Review',
    'TDD - Review','Build Review','Build - Review','Code - Review','Code',
    'Test Result Review','Test Result - Review','UTR - Review',
    'Release-Review','Release - Verification','Migration & Release - Review')
    and pro.id = :p2_projects ) X
    WHERE
    PRO.ID = POBJ.PRO_ID AND
    PRO.ID = IE.PROJECT_NAME AND
    UPPER(POBJ.NAME) = UPPER(IE.OBJECT_NAME) AND
    PRO.ID = SV.PROJECT_NAME AND
    UPPER(POBJ.NAME) = UPPER(SV.OBJECT_NAME) AND
    PRO.ID = :p2_projects
    AND PRO.ID = X."PRO_ID"
    AND POBJ.ID = X."POBJ_ID"(+)
    AND PRO.ID = IEV."PRO_ID"
    AND POBJ.ID = IEV."POBJ_ID"
    AND PRO.ID = ID."PRO_ID"
    AND POBJ.ID = ID."POBJ_ID"
    AND PRO.ID = D."PRO_ID"
    AND POBJ.ID = D."POBJ_ID"
    AND PRO.ID = B."PRO_ID"
    AND POBJ.ID = B."POBJ_ID"
    AND PRO.ID = T."PRO_ID"
    AND POBJ.ID = T."POBJ_ID"
    AND PRO.ID = R."PRO_ID"
    AND POBJ.ID = R."POBJ_ID"
    AND PRO.ID = IDR."PRO_ID"
    AND POBJ.ID = IDR."POBJ_ID"
    AND PRO.ID = DR."PRO_ID"
    AND POBJ.ID = DR."POBJ_ID"
    AND PRO.ID = BR."PRO_ID"
    AND POBJ.ID = BR."POBJ_ID"
    AND PRO.ID = TR."PRO_ID"
    AND POBJ.ID = TR."POBJ_ID"
    AND PRO.ID = RR."PRO_ID"
    AND POBJ.ID = RR."POBJ_ID"
    AND PRO.ID = AEV."PRO_ID"
    AND POBJ.ID = AEV."POBJ_ID"
    AND PRO.ID = RIEV."PRO_ID"
    AND POBJ.ID = RIEV."POBJ_ID"
    AND PRO.ID = BRV."PRO_ID"
    AND POBJ.ID = BRV."POBJ_ID"
    group by
    PRO.PROJECT_NAME,
    POBJ.NAME,
    SV.status,
    sv.comments,
    ID."INCOMMING_DOC",D."DESIGN",B."BUILD",T."TESTING",R."RELEASE",
    IDR."INCOMMING_DOC_REPLAN",DR."DESIGN_REPLAN",BR."BUILD_REPLAN",TR."TESTING_REPLAN",RR."RELEASE_REPLAN",
    AEV."Total Actual",IEV."Total Plan",RIEV."Total Plan",
    BRV."BSV",BRV."RSV",POBJ.Complexity,POBJ.PROGRAM_TYPE,pro.id,pobj.id,BRV."Status"
    wht is the mistake i am doing here please suggets
    thanks
    Sudhir

    Can you just setup an Excel/Essbase retrieval to get the data you need? You can't use SQL to query Essbase; here is a blog post that talks about it:
    http://timtows-hyperion-blog.blogspot.com/2008/01/why-you-cant-use-sql-to-query-essbase.html
    Since I made that post, I have found out that Essbase has now been integrated into the latest version of the Oracle BI Server and, technically, you could use SQL to query the data in Essbase via the Oracle BI Server if you have the right version.
    Tim Tow
    Applied OLAP, Inc

  • I can only add music to my iPod manually

    I just restored my iPod because I got myself locked out. I have a 5th gen iPod touch with the latest software, the latest version of iTunes, and I have "Manually manage music and videos" unchecked. But when I click "Sync," it goes through the process but doesn't synchronize my music. I can still manually add songs to my iPod. It's like it's stuck on manual. Can I fix this?

    Have you looked on the Device/Music pane and made sure that Sync Music is ticked (checked)? Until Sync Music is turned on, then a Sync will not put music onto your iPod.

  • How to add sql lite winrt

    I am Beginner winrt and sql lite ,  I am creating app that Customer table
    I want how to add data to the Table, edit the data, delete selected data, and delete all
    Please help me Any One
    Here code maybe wrong please right code provide me
    using SQLite;
    namespace MVVM.Models
        public class Customer
            [PrimaryKey, AutoIncrement]
            public int Id { get; set; }
            public string Name { get; set; }
            public string City { get; set; }
            public string Contact { get; set; }
    /////  Relay Command
    /// <summary>
        /// A command whose sole purpose is to relay its functionality
        /// to other objects by invoking delegates.
        /// The default return value for the CanExecute method is 'true'.
        /// <see cref="RaiseCanExecuteChanged"/> needs to be called whenever
        /// <see cref="CanExecute"/> is expected to return a different value.
        /// </summary>
        public class RelayCommand : ICommand
            private readonly Action _execute;
            private readonly Func<bool> _canExecute;
            /// <summary>
            /// Raised when RaiseCanExecuteChanged is called.
            /// </summary>
            public event EventHandler CanExecuteChanged;
            /// <summary>
            /// Creates a new command that can always execute.
            /// </summary>
            /// <param name="execute">The execution logic.</param>
            public RelayCommand(Action execute)
                : this(execute, null)
            /// <summary>
            /// Creates a new command.
            /// </summary>
            /// <param name="execute">The execution logic.</param>
            /// <param name="canExecute">The execution status logic.</param>
            public RelayCommand(Action execute, Func<bool> canExecute)
                if (execute == null)
                    throw new ArgumentNullException("execute");
                _execute = execute;
                _canExecute = canExecute;
            /// <summary>
            /// Determines whether this <see cref="RelayCommand"/> can execute in its current state.
            /// </summary>
            /// <param name="parameter">
            /// Data used by the command. If the command does not require data to be passed, this object can be set to null.
            /// </param>
            /// <returns>true if this command can be executed; otherwise, false.</returns>
            public bool CanExecute(object parameter)
                return _canExecute == null ? true : _canExecute();
            /// <summary>
            /// Executes the <see cref="RelayCommand"/> on the current command target.
            /// </summary>
            /// <param name="parameter">
            /// Data used by the command. If the command does not require data to be passed, this object can be set to null.
            /// </param>
            public void Execute(object parameter)
                _execute();
            /// <summary>
            /// Method used to raise the <see cref="CanExecuteChanged"/> event
            /// to indicate that the return value of the <see cref="CanExecute"/>
            /// method has changed.
            /// </summary>
            public void RaiseCanExecuteChanged()
                var handler = CanExecuteChanged;
                if (handler != null)
                    handler(this, EventArgs.Empty);
    /// ViewModel Base
    class ViewModelBase
            public event PropertyChangedEventHandler PropertyChanged;
            protected virtual void RaisePropertyChanged(string propertyName)
                var handler = this.PropertyChanged;
                if (handler != null)
                    handler(this, new PropertyChangedEventArgs(propertyName));
    ///MainPageViewModel
    class MainPageViewModel : ViewModelBase
            #region Properties
            private int id = 0;
            public int Id
                get
                { return id; }
                set
                    if (id == value)
                    { return; }
                    id = value;
                    RaisePropertyChanged("Id");
            private string name = string.Empty;
            public string Name
                get
                { return name; }
                set
                    if (name == value)
                    { return; }
                    name = value;
                    isDirty = true;
                    RaisePropertyChanged("Name");
            private string city = string.Empty;
            public string City
                get
                { return city; }
                set
                    if (city == value)
                    { return; }
                    city = value;
                    isDirty = true;
                    RaisePropertyChanged("City");
            private string contact = string.Empty;
            public string Contact
                get
                { return contact; }
                set
                    if (contact == value)
                    { return; }
                    contact = value;
                    isDirty = true;
                    RaisePropertyChanged("Contact");
            private bool isDirty = false;
            public bool IsDirty
                get
                    return isDirty;
                set
                    isDirty = value;
                    RaisePropertyChanged("IsDirty");
            #endregion "Properties"
            public ObservableCollection<Customer> _customerlist { get; set; }
     public Person CustomerToAdd { get; set; }
            /// <summary>
            /// Add Customer data to the table
            /// </summary>
            public RelayCommand AddCusomerCommand { get; set; }
            private void addCustomer()
            /// <summary>
            /// Delete Selected Customer data from the table
            /// </summary>
            public RelayCommand DeleteSelectedCustomerCommand { get; set; }
            private void deleteSelectedCustomer()
            /// <summary>
            /// edit Selected Customer data from the table
            /// </summary>
            public RelayCommand EditSelectedCustomerCommand { get; set; }
            private void editSelectedCustomer()
            /// <summary>
            /// Delete All Customer data from the table
            /// </summary>
            public RelayCommand DeleteAllCustomerCommand { get; set; }
            private void deleteAll()
            public MainPageViewModel()
                AddCusomerCommand = new RelayCommand(addCustomer);
                DeleteAllCustomerCommand = new RelayCommand(deleteAll);
                EditSelectedCustomerCommand = new RelayCommand(editSelectedCustomer);
                DeleteSelectedCustomerCommand = new RelayCommand(deleteSelectedCustomer);
    /////////// App.Xaml.Cs
    sealed partial class App : Application
            /// <summary>
            /// Initializes the singleton application object.  This is the first line of authored code
            /// executed, and as such is the logical equivalent of main() or WinMain().
            /// </summary>
            public App()
                this.InitializeComponent();
                this.Suspending += OnSuspending;
            /// <summary>
            /// Invoked when the application is launched normally by the end user.  Other entry points
            /// will be used such as when the application is launched to open a specific file.
            /// </summary>
            /// <param name="e">Details about the launch request and process.</param>
            protected override void OnLaunched(LaunchActivatedEventArgs e)
    #if DEBUG
                if (System.Diagnostics.Debugger.IsAttached)
                    this.DebugSettings.EnableFrameRateCounter = true;
    #endif
                Frame rootFrame = Window.Current.Content as Frame;
                // Do not repeat app initialization when the Window already has content,
                // just ensure that the window is active
                if (rootFrame == null)
                    // Create a Frame to act as the navigation context and navigate to the first page
                    rootFrame = new Frame();
                    // Set the default language
                    rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0];
                    rootFrame.NavigationFailed += OnNavigationFailed;
                    if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
                        //TODO: Load state from previously suspended application
                    // Place the frame in the current Window
                    Window.Current.Content = rootFrame;
                var dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path,"data.db3");
                using (var db = new SQLite.SQLiteConnection(dbpath))
                    // Create the tables if they don't exist
                    db.CreateTable<Customer>();
                    db.Commit();
                    db.Dispose();
                    db.Close();
                if (rootFrame.Content == null)
                    // When the navigation stack isn't restored navigate to the first page,
                    // configuring the new page by passing required information as a navigation
                    // parameter
                    rootFrame.Navigate(typeof(MVVM.Views.Page1), e.Arguments);
                // Ensure the current window is active
                Window.Current.Activate();
            /// <summary>
            /// Invoked when Navigation to a certain page fails
            /// </summary>
            /// <param name="sender">The Frame which failed navigation</param>
            /// <param name="e">Details about the navigation failure</param>
            void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
                throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
            /// <summary>
            /// Invoked when application execution is being suspended.  Application state is saved
            /// without knowing whether the application will be terminated or resumed with the contents
            /// of memory still intact.
            /// </summary>
            /// <param name="sender">The source of the suspend request.</param>
            /// <param name="e">Details about the suspend request.</param>
            private void OnSuspending(object sender, SuspendingEventArgs e)
                var deferral = e.SuspendingOperation.GetDeferral();
                //TODO: Save application state and stop any background activity
                deferral.Complete();
    /// xaml Code
    <Page.DataContext>
            <ViewModels:MainPageViewModel>
            </ViewModels:MainPageViewModel>
        </Page.DataContext>
        <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
            <ListView ItemsSource="{Binding _customerlist}"
                      HorizontalAlignment="Left" Margin="44,65,0,327" Width="456">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Width="400" Background="Chocolate">
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Name}" FontSize="30" />
                                <TextBlock Text="," FontSize="30" />
                                <TextBlock Text="{Binding City }" FontSize="30" />
                            </StackPanel>
                            <TextBlock Text="{Binding Contact}" FontSize="30" />
                        </StackPanel>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
            <Button Command="{Binding  AddCustomerCommand}"
              Content="Add person"
              FontSize="40" Margin="588,465,0,230"/>
            <Button Command="{Binding EditSelectedCustomerCommand}"
              Content="Edit"
              FontSize="40" Margin="865,465,0,230"/>
            <Button Command="{Binding DeleteSelectedCustomerCommand}"
                    Content="Delete"
                    FontSize="40" Margin="1037,465,0,230" />
            <Button Command="{Binding DeleteAllCustomerCommand }"
                    Content="Delete All"
                    FontSize="40" Margin="979,619,0,76" />
            <TextBlock Text="Name" FontSize="30" Margin="633,65,598,640" Height="63"/>
            <TextBox DataContext="{Binding PersonToAdd}" Text="{Binding Name, Mode=TwoWay}"
                     FontSize="30" Margin="868,62,80,640"/>
            <TextBlock Text="City " FontSize="30" Margin="633,181,551,524"/>
            <TextBox DataContext="{Binding PersonToAdd}" Text="{Binding City, Mode=TwoWay}"
                     FontSize="30" Margin="868,181,80,525"/>
            <TextBlock Text="Age" FontSize="30" Margin="633,296,536,400"/>
            <TextBox DataContext="{Binding PersonToAdd}" Text="{Binding Contact, Mode=TwoWay}"
                     FontSize="30" Margin="868,296,80,403"/>
        </Grid>

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    The above fourm use MVVM and they can help you there.

  • HT204085 new owner of ipad mini...how do i add contacts? tried using manual but it doesnt explain how to put them in device

    how do i add contacts into icloud? i tried the manual but it didnt explain things

    Just go to www.icloud.com, open Contacts, then click on the little icon in the lower left and then choose to import contacts via vCard. Of course it would be necessary that you have exported your contacts as vCards from another source first.

Maybe you are looking for

  • Support package of attachment for Sender mail adapter

    can anyone tell me after which support package XI supports Attachments in sender mail Adapter. Thanks Sunil Singh

  • ITunes won't recognize some videos

    I've been using a program called "ImTOO iPod Movie Converter" to convert video files to iPod format, but I'm finding that some of the videos won't go into iTunes. For instance, I encoded several videos all in one batch so they used the same default e

  • Email attachments pdf already open, but I need that attachment to save it

    The past couple of days I received some emails and I was able to save attachments to Quick office for ipad. Today, I emailed to myself some pdf documents as attachments. To my surprise, their contents showed up in the email on the ipad, even thought

  • Use of WHEN in SQL Loader Control File

    Does anyone know of a way, using the CTL file below, to NOT LOAD (i.e. discard) any record where field G is null -OR- substr(G,1,3)='CON'+ (the first 3 characters of field G are "CON")? The WHEN clause seems very limited in what it can test and all m

  • How Hard is it to program in Java.Swing

    Hi I wanted to program using java.swing component but i don't have any idea where i should start. I have been programming in java using java.Awt and i can do simple array programing. So how hard is it, and Where should i start learning java.swing. Ps