Search for a column in all SSIS packages in a Folder

Hi 
We are changing the datatype of one of a column for a  huge table from INT to BIGINT. All SPs are being changed to accomodate this change. 
All the SSIS packges havebeen downloaded to a folder. And I need to find the instances of this column in around 250 packages. 
Is there a quick way to do this instead of opening up each package and looking for the column?
I dont have access to MSDB so my search should be based o nthe packages inthe folder.
Thanks 
rajiv 
Rajiv

You can do it using ssis package
Create a table with two columns
Table (PackageXML,PackageName)
one a xml column and another varchar column for this
1. Add a SSIS package with ForEachLoop container. point to folder containing your SSIS packages. Choose filetype as *.dtsx
2. Inside loop add a variable to get package names. choose option as Fully qualified (FilePath)
3. Add another variable and store filename alone extracted from above created variable (FileName)
4. Add a variable to hold query (Query) and assign an expression to it as
"INSERT YourTable (PackageXMl,PackageName)
SELECT *,'" + @[User::FileName] + "'
FROM OPENROWSET(BULK '" + @[User::FilePath] + "',SINGLE_BLOB) x"
5. Add a SQL task inside loop, choose SQLSourceType as variable and point to Query variable
Execute this package. This will cause it to load the code for all packages inside your table
Once this is done then you can just query the table as below to get package with column reference
SELECT PackageName
FROM Table
WHERE CAST(PackageXML AS varchar(max)) LIKE '%columnname%'
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Search for a column in schema

    Hi ,
    Is there a way to search for a column exist in tables of particular schema ?
    thanks in advance

    user10641405 wrote:
    Hi ,
    Is there a way to search for a column exist in tables of particular schema ?
    You need to clarify "exists". Do you mean exists regardless if you have acces to it or "exists" means you have access to it? For the former use:
    SELECT  OWNER.TABLE_NAME
      FROM  DBA_TAB_COLUMNS
      WHERE OWNER = '<schema name>'
        AND COLUMN_NAME = '<column_name>'
    /For latter use ALL_TAB_COLUMNS instead as it was suggested by others.
    SY.

  • Search for Main Group Not all Subgroup

    Search for Main Group Not all Subgroup
    My illustrator project may have 5 main groups, which may all included 100 subgroups. I would like to search for main group without having to search through all subgroup, because too many and too long for the script.
    For the moment I have given a name to all Main group but the process is much too long.
    Marcel
    tell application "Adobe Illustrator"
                       activate
                              set groupCount to count group items in current document
                              repeat with i from 1 to groupCount
                                                    set selection of current document to {}
                                                    set groupRef to group item i of current document
                                                    set groupName to name of groupRef
                                                    if  (groupName contains "MainGroup") then
                                                                                          set selected of (groupRef) to true
                                                      display dialog groupName
                                                                        end if
                              end repeat -- with groupCounter from 1 to groupCounter
    end tell

    I don't do AS but this seems to be the culprit
    set groupCount to count group items in current document
    count your groups in the current "Layer" to narrow it down to main groups only, groups within groups will be ignored.

  • Searching for missing column names in a single database.

    I have a database with about 100 tables, database gets generated using entity framework. The application has been enhanced  so users deployed with older version of the application need to upgrade to newer version. The database generated is both versions
    is same name.
    Now, the older version is missing some tables and column names that are in new database.
    Is there a script that can search for missing fields in a single database as described in this situation?
    Below is my script. Basically, nameofdatabase would the database generated and that already existing. If you install the application and database already exits no new database will be created.
    SELECT * FROM (Select TABLE_CATALOG, Table_name,COLUMN_NAME FROM nameofdatabase.INFORMATION_SCHEMA.COLUMNS) a FULL OUTER JOIN (SELECT TABLE_CATALOG, Table_name,COLUMN_NAME FROM nameofdatabase.INFORMATION_SCHEMA.COLUMNS) b ON b.COLUMN_NAME=a.COLUMN_NAME and
    a.TABLE_NAME=b.TABLE_NAME WHERE b.COLUMN_NAME is null or a.COLUMN_NAME is null ;

    There is a great tool called SQLCompare provide by www.red-gate.com
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to search for a string in ALL Function Modules source code

    Hello,
    I want to search for the string "HELLO" in all FUNCTION MODULES source code(FM, no reports/programs).
    Is this possible? How?
    Cheers,
    Andy

    hi,
    Execute RPR_ABAP_SOURCE_SCAN to search for a string in the code ... Press where-used-list button on the program which takes to the function group or the function module where it is used ..
    Regards,
    Santosh

  • Bridge - Search for folders and view all contents at once?

    Say I do a search for "Landscape" and it brings up 25 folders on my hard drive, is there a way to view the contents of all my folders at once?
    Thank you,
    Benjamin

    I have found exactly what I was looking for.  And there it is... on AEScripts.com.  Color me embarrassed.
    For anyone else who's interesed in the answer I found "pt_EffectSearch" by Paul Tuersley.    
    Marc

  • HT1491 get black screen when I try to search for books by category         all other functions ok

    get black whebtrying to search for books by category

    Hello there, mrecon.
    First you may try closing out of the iTunes store by following the steps in this Knowledge Base article:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    If the issue persists, then you may want to do the steps above again and then restart/reset your iPad using these steps:
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Bug in Notes ? Search for "Apple" highlights almost all Notes.

    Hi,
    I just discovered that entering the keyword "apple" in the search bar of notes shows me that almost all my notes contain it.
    Even though they don't. I checked it many times.
    Short notes with only 5 words which cleary dont have the word "apple" are shown for example.
    By deleting the notes and rewriting it ( whith "copy&paste" ) the dissappear from the search results.
    Is it just me ? I can't imagine this being a bug.
    Any Ideas ? Thanks in advance.

    I am not a Notes user even though I have Mountain Lion and can tell you that what you describe is a very strange bug.
    Things to try:
    Close Notes application and then reopen the Application and try to find if the error is reproducible.
    If the issue persits, reboot your Mac.
    File a bug report in the OS X Feedback Page or by creating an Apple Developer Account (Don't worry it's free).
    Hope this helps!

  • Searching for key words in all ABAPs in system

    Hi,
    Is there a way for me to check for the existence of certain keywords in all customized ABAPs in the system - e.g. very much like doing a global search in Windows?
    I'm trying to identifying all ABAPs in my system which matches certain keywords.
    Can it be done?
    Thanks in advance.

    Have you tried quoting the search phrase? eg:
    "flash drive"

  • VLOOKUP search for multiple columns

    Hi Folks,
    I have a VERY complex spreadsheet for our business that I've built in Numbers, which I absolutely love and wouldn't have been able to do without all of your help (thanks!). At this point I am looking to take a list of SKUs and decode them so that I can classify them. Each SKU is exactly 5 characters, and is coded as such:
    The first character denotes the type of product, the second character denotes the class of product, and the third character denotes the size of the product. The last two characters are unique to the particular product and contain things like scent/flavor/etc.
    In another table I have listed out the SKU paradigm, which specifies what each of the characters represent. Here is an example (pipes indicate column boundaries):
    C | Cleanse | S | Solid | T | 3 OZ Bar
    C | Cleanse | S | Solid | O | 1 OZ Bar
    C | Cleanse | L | Liquid | E | 8 OZ Bottle
    M | Moisturize | B | Butter | T | 2.5 OZ Roll-Up
    M | Moisturize | L | Lotion | F | 4 OZ Bottle
    So, a SKU that is "CSTAL" tells us that it is a cleanser, it's solid, and is 3 oz. (the last 2 characters represent the scent in this case, which is Almond). A SKU beginning with "MBT" would tell us its a moisturizer, its in the form of a body butter, and it's a 2.5 oz roll-up.
    Now, I have a listing of SKUs and I'm trying to do this with a VLOOKUP. I can get the first category easily. I just take leftmost character of the SKU, and do a VLOOKUP on the first two columns of the SKU paradigm table and return the name of that classification. Where I'm having a problem is getting the second classification. I can get the second character of the SKU, but when I do a VLOOKUP on the second character, I need to also look for the first classification too, because if I just lookup say "L", it's not unique. L is a Lotion (moisturizer), but also a Liquid (cleanser) depending what the first category is.
    So, my question is this, how do I lookup the values I need from this table while matching on the first two columns as well?
    Or, if anyone has any other ideas on how to approach this I'm all ears. Thanks!
    Hal

    Does your "SKU paradigm" table have every possible combination of the first three letters of the SKU? If so, make a column in that table that is the concatenation of columns A, C, and E. This would be the first three letters of the SKU. Instead of looking up the SKU one letter at a time, you would lookup the first three letters all at once.

  • Search for value otherwise select all...decode?

    Hi all,
    I'm wanting a reasonably straight forward (sounding) result from a query: I want to select data where a certain column equals a value, otherwise I want to return all results.
    Let me know if you need more details.
    Thanks!

    Hi,
    djston wrote:
    Hi all,
    I'm wanting a reasonably straight forward (sounding) result from a query: I want to select data where a certain column equals a value, otherwise I want to return all results.
    Let me know if you need more details.Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only). You can skip this if the problem is based on commonly available tables, like those in the scott schema.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    If the problem involves parameters, give a couple of examples of different parameters, and the results you want from each.
    Always say which version of Oracle you're using.
    For example:
    "I'm using Oracle 10.2.0.3.0.
    I want to find all the people in the scott.emp table who have a given job; but if nobody has that job, then I want to select everybody.
    For example, if I give 'MANAGER' as the parameter, then I want these results:
    {code}
    ENAME JOB
    BLAKE MANAGER
    CLARK MANAGER
    JONES MANAGER
    {code}
    because those are the only people in the table with job='MANAGER'.
    However, if I give 'DBA' as the parameter, then I want to see all 14 rows from the table, because there is no row where job='DBA'."
    If that happens to be what you want, here's one way to do it:
    VARIABLE     target_job     VARCHAR2 (10)
    -- EXEC     :target_job := 'DBA';
    -- EXEC     :target_job := 'PRESIDENT';
    EXEC     :target_job := 'MANAGER';
    SELECT       ename, job
    FROM       scott.emp
    WHERE       job          = :target_job
    OR       NOT EXISTS     (
                           SELECT  1
                       FROM    scott.emp
                       WHERE   job     = :target_job
    ORDER BY  ename
    ;Noticed that this query involves an extremely rare un-correlated EXISTS sub-query. (At least intentionally un-correlated EXISTS sub-queries are rare.)
    You could get the same results using DENSE_RANK and a CASE expression.

  • How do I search for a file across all my macs on my network

    I have three macs. Two operate wirelessly, one does not, but they are all part of the same network.
    Does anyone know how to search all macs simultaneously for a particular file? I have leopard installed on all macs.
    Thanks
    Buck

    Apparently, the "Shared" search location button only shows up if you first connect to some 'sharepoint' from the Sidebar "SHARED" list and the sharepoint 'volume' then appears in the Sidebar "DEVICES" list. For me, not all 'volumes' do this -- just those that are really some sub-directory of a remote Mac do, but not (for instance) those that are that Mac's complete, top level startup volume.
    BTW, even when the button does show up, the searches are very slow & usually don't find items on the remote Mac that I expect they should.
    I think it is a bug, or more accurately an incompletely implemented feature.

  • How to make allow null for a column in all table.

    Hi,
    I have a column "col1" in all tables (user made table) , i want to make it allow null
    please tel me how can it be done using single script.
    i mean in short way.
    yours sincerely.

    yes. absolutely you can.
    Look, what i got -
    Ranit>>  select 'alter table ' || table_name || ' modify("TIMESTAMP" null) ; ' from user_tab_columns where column_name='TIMESTAMP' and nullable ='N';
    'ALTERTABLE'||TABLE_NAME||'MODIFY("TIMESTAMP"NULL);'                           
    alter table FIXED_OBJ$ modify("TIMESTAMP" null) ;                              
    alter table SUMPARTLOG$ modify("TIMESTAMP" null) ;                             
    alter table SUMDELTA$ modify("TIMESTAMP" null) ;                               
    alter table ALL_SUMDELTA modify("TIMESTAMP" null) ;                            
    alter table DBA_EXP_FILES modify("TIMESTAMP" null) ;                           
    alter table WRI$_DBU_CPU_USAGE modify("TIMESTAMP" null) ;                      
    alter table DBA_CPU_USAGE_STATISTICS modify("TIMESTAMP" null) ;                
    7 rows selected.But, it is not over.
    Either - You have to do an 'EXECUTE IMMEDIATE' over these 'alter' scripts.
    OR - Take these scripts, put it into a <script_name>.sql file and then execute this file.
    Hope you understand.
    Edited by: ranit B on Dec 22, 2012 3:17 PM
    -- code added

  • How to search for a column in a database

    Hi All,
    I am having 100 tables in the database. I know a column name say "column1", i dont know in which table(s) this column exists. How can i know the column is in which table.
    Thanks,
    Santosh

    Query dba_tab_columns/all_tab_columns/user_tab_columns
    e.g.
    select owner, table_name, column_name
    from dba_tab_columns
    where column_name= 'EMPNO';

  • Each time that I sign in to Adobe I have to search for my files and my purchased package. What am i doing wrong? Why can't I just sign in and be taken to my package and documents?

    I find the Adobe site to be very unfriendly. I believe that I should be able to sign in and be taken to my purchased package (PDF Converter, Cloud, etc), without having to spend 5 minutes searching the site. I would appreciate any tips as it takes me longer to convert 1 PDF than it does to create the 5 Excel documents that I need to convert.

    Hi lakepretty,
    Are you logging in directly to https://cloud.acrobat.com/exportpdf? That should take you directly to where you need to be. (You could also bookmark that page in your web browser, which would make it even easier to get there!).
    Please let us know if you have additional questions.
    Best,
    Sara

Maybe you are looking for

  • 11g Faces, How do i get the id of a selectOneChoice in JavaScript

    Hi, I can't seem to get the id of a selectOneChoice in JavaScript using the ClientListener API. I've tried to find the ID using the JS AdfRichSelectOneChoice and AdfValueChangeEvent but neither provide a method to give the ID of the changing componen

  • Acrobat doesn't obtain online license in one Win 7 Profile, but will in another.

    Acrobat 8 Professional loaded fine, but would not download a license..The screen to do so appears, but even though the Accept button flashes when 'clicked on', nothing happens.  The widow must be X'ed out. Making a new profile ( a new user on the sam

  • Adobe muse - can't see my Edge animation in design tab!?

    I have a problem, when i have made mit edge animation, and placed it in muse, i can't see it in the design tab, but when i click the preview tab i shows, and i can also see the animation in browser!? Anyone who can help? :/

  • JDBC Adapter - Connection Pooling

    Does anybody know if we can specify a Connection Pool to the JDBC Adapter? I mean the number of connections that the Adapter can have open to say Oracle Data. Regards Mike

  • Document Templates in MS Word (Office-Integration)

    Hi there, i´m desperately looking for help concerning the following problem with integration of MS Word-Templates to our CRM: We are using CRM 5.0 (as well as PCUI) and Office Integration with MS Word 2003. We created Document Templates (for Object T