mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -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);
|
this.LoadDefinition(databaseName);
|
||||||
}
|
}
|
||||||
else
|
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
|
try
|
||||||
{
|
{
|
||||||
@@ -1763,6 +1770,7 @@ WHERE do.database_id = @DbID
|
|||||||
context.Server.SetDefaultInitFields(typeof(Database), databaseDefaultInitFields);
|
context.Server.SetDefaultInitFields(typeof(Database), databaseDefaultInitFields);
|
||||||
this.originalState = new DatabaseData(context);
|
this.originalState = new DatabaseData(context);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// New database should not inherit ReadOnly from model database (Fix TFS 885072)
|
// New database should not inherit ReadOnly from model database (Fix TFS 885072)
|
||||||
this.originalState.isReadOnly = false;
|
this.originalState.isReadOnly = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user