We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 840ece8 commit 41e6dd1Copy full SHA for 41e6dd1
source/Public/Set-SqlDscDatabaseDefaultFullTextCatalog.ps1
@@ -157,9 +157,6 @@ function Set-SqlDscDatabaseDefaultFullTextCatalog
157
try
158
{
159
$sqlDatabaseObject.SetDefaultFullTextCatalog($CatalogName)
160
-
161
- # Refresh the database object to get the updated DefaultFullTextCatalog value from the server
162
- $sqlDatabaseObject.Refresh()
163
}
164
catch
165
@@ -180,6 +177,9 @@ function Set-SqlDscDatabaseDefaultFullTextCatalog
180
177
181
178
if ($PassThru.IsPresent)
182
179
+ # Refresh the database object to get the updated DefaultFullTextCatalog value from the server
+ $sqlDatabaseObject.Refresh()
+
183
return $sqlDatabaseObject
184
185
0 commit comments