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
Copy file name to clipboardExpand all lines: articles/sql-database/sql-database-serverless.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,8 +168,6 @@ Creating a new database or moving an existing database into a serverless compute
168
168
|Min vCores|Depends on max vCores configured - see [resource limits](sql-database-vcore-resource-limits-single-databases.md#general-purpose---serverless-compute---gen5).|0.5 vCores|
> Using T-SQL to move an existing database into serverless or change its compute size is not currently supported but can be done via the Azure portal or PowerShell.
173
171
174
172
### Create new database in serverless compute tier
175
173
@@ -194,6 +192,17 @@ New-AzSqlDatabase `
194
192
-AutoPauseDelayInMinutes 720
195
193
```
196
194
195
+
#### Use Transact-SQL (T-SQL)
196
+
197
+
The following example creates a new database in the serverless compute tier.
For details, see [CREATE DATABASE](/sql/t-sql/statements/create-database-transact-sql?view=azuresqldb-current).
205
+
197
206
### Move database from provisioned compute tier into serverless compute tier
198
207
199
208
#### Use PowerShell
@@ -213,6 +222,17 @@ Set-AzSqlDatabase `
213
222
-AutoPauseDelayInMinutes 1440
214
223
```
215
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?view=azuresqldb-current).
235
+
216
236
### Move database from serverless compute tier into provisioned compute tier
217
237
218
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