Supporting SQL DW in Object explorer (#380)

* supporting sql dw in oe
This commit is contained in:
Leila Lali
2017-06-15 12:53:32 -07:00
committed by GitHub
parent d9e68831ab
commit 71b349f67b
20 changed files with 544 additions and 152 deletions

View File

@@ -299,7 +299,16 @@ WHERE do.database_id = @DbID
ResourceManager manager = new ResourceManager("Microsoft.SqlTools.ServiceLayer.Localization.SR", typeof(DatabasePrototype).GetAssembly());
this.owner = db.Owner;
try
{
this.owner = db.Owner;
}
catch (Exception)
{
// TODO: fix the exception in SMO
this.owner = string.Empty;
}
// Databases that are restored from other servers might not have valid owners.
// If the logged in user is an administrator and the owner is not valid, show