mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 11:01:39 -05:00
Skip querying model database for Azure database prototypes. (#2095)
This commit is contained in:
@@ -1738,6 +1738,13 @@ WHERE do.database_id = @DbID
|
||||
this.LoadDefinition(databaseName);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (context.Server.DatabaseEngineType == DatabaseEngineType.SqlAzureDatabase)
|
||||
{
|
||||
// Azure instances don't have a model database we can query, so just use the defaults
|
||||
this.originalState = new DatabaseData(context);
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -1763,6 +1770,7 @@ WHERE do.database_id = @DbID
|
||||
context.Server.SetDefaultInitFields(typeof(Database), databaseDefaultInitFields);
|
||||
this.originalState = new DatabaseData(context);
|
||||
}
|
||||
}
|
||||
|
||||
// New database should not inherit ReadOnly from model database (Fix TFS 885072)
|
||||
this.originalState.isReadOnly = false;
|
||||
|
||||
Reference in New Issue
Block a user