I built a powershell script for collecting database information with the help of the class "Microsoft.SqlServer.Management.Smo.Server". My script run into an error because one database has no DatabaseGuid. How could that happen? I thought every database has a database guid?! This database is in state "offline". I set an other database to state "offline" but the database has still a guid.
I thought each database reaceives a persistent guid, or?!