Find the views where is used a "WHERE" statement

Hello,
I know that it is possible to search in a view with CTRL+F but is there also an option to search in al the views from a database for a statement in 1 step (not open each view)
It will save a lot of time in my case
Thanks
for a reply

Can you try this
SELECT sm.object_id, OBJECT_NAME(sm.object_id) AS object_name, o.type, o.type_desc, sm.definition
FROM sys.sql_modules AS sm
JOIN sys.objects AS o ON sm.object_id = o.object_id
where type='V' and definition like '%where%'
ORDER BY o.type;
--Prashanth

Similar Messages

  • How can I find the procedures where I use a table?

    How can I find the procedures where I use a table?
    I need to look for it in all the users.

    select name,owner from dba_dependencies where referenced_name='table_name'
    and referenced_owner = 'schema'
    and type = 'PROCEDURE'
    Aravind

  • Where can I find the phone menu icon used in the sample flyout menu tutorial?

    Where can I find the phone menu icon used in the Muse phone menu flyout tutorial?
    It is a .little box with an arrow on te left and three lines center/right.

    Hi
    You can use the ones in Muse library :
    http://muse.adobe.com/exchange-library/amphi-navigation-bars-by-qooqee-com-ali-pordeli
    http://muse.adobe.com/exchange-library/harmony-animated-menu
    Thanks,
    Sanjit

  • I paired my old LG phone using bluetooth exchange and uploaded all of the Voice Memo files from it to my macbook and I can't find the file, where would it be located ?

    I paired my old LG phone using bluetooth exchange and uploaded all of the Voice Memo files from it to my macbook and I can't find the file, where would it be located ?

    You cannot update iPhone 4 to IOS 8.1.2, the highest you can update is IOS 7.1.2.
    Unless you've iPhone 4S (looks similar to iPhone 4)

  • Where can I find the folder where all my themes are stored?

    I installed a few personas on my Firefox, but they just installed after I clicked "Install" from the web. I was wondering if I could find the actual theme files somewhere so that I could have it with me in case something happens to the website that was hosting them. I know that the files must be stored somewhere in my computer, but where could I find them?

    Firefox only stores your current persona. It's in your profile folder, as the files ''lightweighttheme-header'' and ''lightweighttheme-footer''.
    * [[Profiles|How to find your profile folder]]
    Additional personas may be saved in your disk cache. To retrieve them,
    # Type ''about:cache?device=disk'' in the address bar and press Enter. Warning: if you have a large disk cache, Firefox may stop responding temporarily or freeze altogether.
    # Look for images from ''http://www.getpersonas.com/static/...''
    # Click an entry for detailed information, then click the '''key:''' link at the top to view the image.
    # If it's the persona you want, right-click the image and choose '''Save Image As'''.
    To find the links for images used by your installed personas,
    # Type ''about:config'' in the address bar and press Enter.
    # Press the big button to bypass the warning.
    # In the search box, paste ''lightweightThemes.usedThemes''
    # In the search results, right-click ''lightweightThemes.usedThemes'' and choose '''Copy Value'''.
    # Paste the clipboard contents into a text editor and examine them. ''headerURL'' and ''footerURL'' are the images used by personas.

  • TS3376 How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    iPods (except for iPod touch) are not linked to any iTunes "account."  They are associated with your iTunes library. The account in iTunes is your Apple ID, and that is used to buy and download content from the iTunes Store.  It is not required to use an iPod.
    The 1st (and 2nd) gen shuffle can only be used with one iTunes library at a time.  When you connect it, iTunes should prompt you to start using it with your iTunes library, and warn that the shuffle's existing content will be erased.  Have iTunes erase the shuffle, and it will be associated with your iTunes library going forward.  You can then add content to your shuffle.
    The need for the previous owner's Apple ID and password should only come up if you are trying to transfer existing content from the shuffle to your iTunes library, AND the previous owner had content purchased from the iTunes Store.  Just cancel out of that step, if iTunes asks.

  • Where can I find the file where the static mapping allocations of the DHCP server are stored?

    In our company we are using DHCP to assign static ip addresses to our clients.
    Now we are forced to change the ip address range. To prevent changing each allocation
    of mac-address to ip-address manually with the admin tool i would like to change the allocation
    in the file where the allocations are saved. The reason ist that i just have to use copy & paste for all
    the allocations.
    So how is the file named and where can I find the file where
    the static mapping allocations of the DHCP server are stored? Is it just an ASCII file?
    Must i note anything when i change the file manually?

    From man bootpd:
    BOOTP/DHCP STATIC BINDINGS
         Static IP address to ethernet address bindings are stored in the /etc/bootptab file and in Open Directory.  Bindings specified in the /etc/bootptab file take precedence over those in Open Directory.
         See bootptab(5) for more information about the /etc/bootptab file.
         For Open Directory, bootpd looks at the /Computers records for the following properties:
    /etc/bootptab is a standard text file, while the records in Open Directory can be manipulated either through the command line, or via Workgroup Manager.

  • Mine is ipod touch 1st generation..its very hard to find the accessories, where can i find it?

    mine is ipod touch 1st generation..its very hard to find the accessories, where can i find it? and some application couldnt work, for example: nike+

    What "accessories" are you looking for?
    The Nike+ app now requires iOS 4, and since that version of iOS won't run on a 1st-generation iPod touch, you will not be able to run that app.
    Regards.

  • Where could I find the info where the transport is imported already

    Hello
    I noticed some transport requests were already imported in PRD system. However the copy eas made to QAS system afterwards. So the requests seems not yet to be approved (althought in log they are already imported to PRD).
    Where (in which table etc) could I find the info where the transport is imported already

    Hi,
    As Uday said you can see in E070 table and in Tcode> STMS_IMPORT>Goto Import History
    Regards,
    Kalyan

  • How to find the common dimension tables used in Finance AR/PR and GL,

    Hi All,
    I need to find the common dimension table used in the Finance modules (AP,AR,PO,GL...), Since separate teams are working on populating each modules, and we need to find the dependency so that our loads shouldn’t impact others.
    Thanks!
    OBI

    Hi Guys,
    Thanks for all your answers.
    Yes....You are all right. We can list out the used tables upto certain extent. Anyhow, I have done some R&D to derive the SQL's which is given below:
    SELECT TABLE_NAME FROM USER_TABLES
    MINUS
    SELECT DISTINCT UPPER(REFERENCED_NAME)
    FROM user_dependencies
    where
    referenced_type='TABLE' and UPPER(NAME) in
    select distinct UPPER(object_name) from user_objects where UPPER(object_type) in
    'MATERIALIZED VIEW',
    'PACKAGE',
    'PACKAGE BODY',
    'PROCEDURE',
    'TRIGGER',
    'VIEW',
    'FUNCTION'
    UNION
    SELECT UT.TABLE_NAME FROM
    SELECT TABLE_NAME FROM USER_TABLES
    MINUS
    SELECT DISTINCT UPPER(REFERENCED_NAME)
    FROM user_dependencies
    where
    referenced_type='TABLE' and UPPER(NAME) in
    select distinct UPPER(object_name) from user_objects where UPPER(object_type) in
    'MATERIALIZED VIEW',
    'PACKAGE',
    'PACKAGE BODY',
    'PROCEDURE',
    'TRIGGER',
    'VIEW',
    'FUNCTION'
    AND REFERENCED_OWNER=(SELECT sys_context('USERENV', 'CURRENT_SCHEMA') FROM dual)
    ) UT,
    ( SELECT * FROM USER_SOURCE
    WHERE NAME IN
    ( SELECT DISTINCT NAME FROM USER_SOURCE
    WHERE TYPE NOT IN ('TYPE')
    AND
    UPPER(TEXT) LIKE '%EXECUTE IMMEDIATE%'
    ) US
    WHERE
    UPPER(US.TEXT) LIKE '%'||UPPER(UT.TABLE_NAME)||'%'
    AND
    (UPPER(US.TEXT) NOT LIKE '%--%')
    The above SQL Query can list out unused tables by checking the Dynamic SQL Statement also upto some level only.
    Once we extracted the list of unused tables, having a manual check would be also greater to verify as it is should not impact the business applications.
    Regards,
    Subramanian G

  • Query to find the Views and synonyms that are accessing through db_link

    HI all,
    Oracle 10g
    I need a Query to find the Views and synonyms that are accessing through db_link.
    ie.
    database A have the db_link to database B through a schema A
    now i need to find what are the Synonyms and views that are accessing through db_link either directly or indirectly..
    regards,
    Deepak
    Edited by: Deepak_DBA on Dec 10, 2010 5:38 PM

    On the second database (B) use this query to find the SQL which used by the schema A (DB LINK USER). Check the SQL_FULLTEXT column.
    select sql_fulltext,sql_id,module,parsing_schema_name,parsing_user_id,first_load_time,loads,users_executing,rows_processed,plsql_exec_time,sorts,fetches,invalidations,parse_calls,cpu_time,elapsed_time,disk_reads,buffer_gets
    from V$sqlarea
    where parsing_schema_name = 'A' --and to_char(first_load_time,'dd/mm/yyyy') like  '%11/08/2007'
    order by first_load_time desc;
    Regards
    Asif Kabir

  • How to find the columns and tables used in a stored procedure?

    Hi,
    Can someone suggest how to find the columns and tables used within a stored procedure?
    Thanks
    VBK

    For example:
    SQL> create or replace
      2    procedure p1
      3      is
      4          cnt number;
      5      begin
      6          select count(*) into cnt from emp;
      7  end;
      8  /
    Procedure created.
    SQL> select  referenced_owner,
      2          referenced_name
      3    from  dba_dependencies
      4    where owner = 'SCOTT'
      5      and name = 'P1'
      6      and referenced_type = 'TABLE'
      7  /
    REFERENCED_OWNER               REFERENCED_NAME
    SCOTT                          EMP
    SQL> SY.

  • My iPad has been erased. I am not be able to find the prevues owner to use the iCloud account to activate my iPad. If there is a way please help me.

    My iPad has been erased. I am not be able to find the prevues owner to use the iCloud account to activate my iPad. If there is a way please help me.

    No, there isn't. If possible return it to whomever you purchased it from and get your money back. Otherwise, you have a very expensive paperweight that is of no use to you.

  • How can i find the gain/amplification factor used when acquiring a voltage signal using PCI 6036E

    in short, i am interested in find the sensor gain for used in feedback loop simulation

    Greetings!
    The gain setting defaults to unity gain, but it is selectable to x10 or x100, also. (This is your pre-digitizing gain, of course...after it's in digital form, you can tweak the gain to anything you want in your VI.
    Hope this helps.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • My PC crashed and I can't find the download email to use in my new PC. Ideas?

    I bought & downloaded Adobe XI. My PC crashed and I can't find the download email to use in my new PC. Ideas?

    Sorry, I meant to say it was....I just don't understand what I'm doing wrong and I hate their support pages or lack thereof!!! I just want to install my stinking Adobe Acrobat XI that I bought in 2013...I got the serial number from my account.  If XI doesn't exist anymore, is Adobe DC what replaces it? How do I upgrade with my serial number? Do I have to pay anything? I don't do anything fancy with Adobe, I just open pdf, print or convert to word. Any help!!!!???

Maybe you are looking for

  • Sorting options in table maintenance

    Hi All, I have created one ztable and created table maintenace generator for the same and also created the transaction code for the same to maintain the data just like SM30. Here my requirement is as soon as we execute the transaction code, it will d

  • Why does my imported video appear on only one clip?

    I had only made a  few in the past but I remember well that the footages appeared as several clips on the pane window.On this occasion I have but only one clip, despite the fact i wasnt running the camera constantly and took several bits of film foot

  • Regarding Database Size

    Hi all, Iam New  to this forum can any one help me out We are using ECC 6.0 SR2,  SQL Server 2005 and Win 2003 OS please let me know according to our business scenario our data growth should be maximum 50MB daily but we found that our data is being g

  • Question about clean to explicit file trading.

    I used to not be able to purchase explicit cds so I had to buy the edited version. Now I can buy explicit cds. Since I bought the clean version is there any way I can download the explicit version for free? Or somehow trade-in the clean file for the

  • Can't See Airport Express on my Wireless N/work

    I have a D-Link DSL G604t router, and have spent hours trying to get it to "see" AE - no joy. I have added the MAC Address to the enabled access list but still nothing - everytime I scan for it, it cannot be found. My Compaq l/top connects no problem