You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For details, see [CREATE DATABASE](/sql/t-sql/statements/create-database-transact-sql.md?view=azuresqldb-current).
205
+
195
206
### Move database from provisioned compute tier into serverless compute tier
196
207
197
208
#### Use PowerShell
@@ -211,6 +222,17 @@ Set-AzSqlDatabase `
211
222
-AutoPauseDelayInMinutes 1440
212
223
```
213
224
225
+
#### Use Transact-SQL (T-SQL)
226
+
227
+
The following example moves a database from the provisioned compute tier into the serverless compute tier.
228
+
229
+
```sql
230
+
ALTERDATABASE testdb
231
+
MODIFY ( SERVICE_OBJECTIVE ='GP_S_Gen5_1') ;
232
+
```
233
+
234
+
For details, see [ALTER DATABASE](/sql/t-sql/statements/alter-database-transact-sql.md?view=azuresqldb-current).
235
+
214
236
### Move database from serverless compute tier into provisioned compute tier
215
237
216
238
A serverless database can be moved into a provisioned compute tier in the same way as moving a provisioned compute database into a serverless compute tier.
0 commit comments