Learn more about SQL Server tools

mssqltips logo
 

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Whitepapers          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories

 

SQL Server video to find objects that reference invalid objects


By:   |   Last Updated: 2014-09-09   |   Comments (3)   |   Related Tips: More > Stored Procedures



 






Enter your business email address to
get free SQL Server tips.

Problem / Solution

One of the tasks of DBAs is to maintain the database and correct or remove any objects that reference invalid objects.  If you have a database with lots of objects, it can be very time consuming to check each object for invalid references.  In this video tip we will look at using PowerShell along with sys.sp_refreshsqlmodule to help you identify which objects may be referencing invalid objects.

Key Learning Items
  • Using PowerShell to loop through servers, databases and database objects
  • Using sys.sp_refreshsqlmodule
Read Companion Tip

Click Here



Last Updated: 2014-09-09


next webcast button


next tip button



About the author
MSSQLTips author Tim Smith Tim Smith works as a DBA and developer and also teaches Automating ETL on Udemy.

View all my tips




Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 


Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.



    



Tuesday, September 09, 2014 - 1:53:14 PM - Tim Back To Top

@Kris

The article, here (and also a link is under the video), has the script, as well as this GitHub location.


Tuesday, September 09, 2014 - 12:46:24 PM - Kris Back To Top

I enjoyed watching this video and recommend others to watch.

Thanks for educating the community and appreciated your volunteership


Tuesday, September 09, 2014 - 12:45:06 PM - Kris Back To Top

Good video but you were little fast in narrating. Any how I could rewind and and watched.

Where the powerShell script stored?

Can we do with another procedure instead PowerShell script?

Appreciate your comments


Learn more about SQL Server tools