Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | sunsanvinMaster Smack Fu Yak Hacker
 
 
                                        1274 Posts | 
                                            
                                            |  Posted - 2013-06-19 : 09:26:45 
 |  
                                            | Hi All,I'm in need to find a string on all the objects if any object has a specific string in the entire database.script to find out any object with has the string used "organization_seq" in the code.Thanks in advanceArnavEven you learn 1%, Learn it with 100% confidence. |  |  
                                    | bandiMaster Smack Fu Yak Hacker
 
 
                                    2242 Posts |  |  
                                    | visakh16Very Important crosS Applying yaK Herder
 
 
                                    52326 Posts | 
                                        
                                          |  Posted - 2013-06-19 : 10:47:12 
 |  
                                          | script to find out any object with has the string used "organization_seq" in the code.sounds like this to me select OBJECT_NAME(object_id) AS Name,definitionFROM sys.sql_moduleswhere definition LIKE '% organization_seq %'------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |  
                                          |  |  |  
                                    | visakh16Very Important crosS Applying yaK Herder
 
 
                                    52326 Posts | 
                                        
                                          |  Posted - 2013-06-19 : 10:59:31 
 |  
                                          | http://visakhm.blogspot.in/2012/03/advantages-of-using-syssqlmodules-view.html------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |  
                                          |  |  |  
                                |  |  |  |