Link to home
Create AccountLog in
Avatar of butte-y
butte-y

asked on

SharePoint 2010 Upgrade-spcontentdatabase

We have recently upgraded from MOSS 2007 the SharePoint 2010 enterprise.  When you run this commnad against a database that is not fully upgraded it tries to upgrade it.  When you run it again and upgraded database it confirms the database is upgraded.  We are looking fro a way to get this confirmation without it running though the upgrade.  test-spcontentdatabase just tells you issues with the database not whether it has been upgraded or not.  I know you can check the status in central admin but I need a programitic way to do it also.  any ideas?
ASKER CERTIFIED SOLUTION
Avatar of jessc7
jessc7
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of butte-y
butte-y

ASKER

jessc7 - Thanks for your help and getting back to me.  I tested your first option and it jsut tells me the db is online.  The second one looked more promising.  When I run it even against a content db that says some sites are not upgraded it returns false for needs upgrade.  Any other otions?
Avatar of butte-y

ASKER

great feedback.