Skip to content

Commit 6cbeb22

Browse files
Merge pull request #33673 from MicrosoftDocs/revert-33630-250327-regexp-update
Update REGEXP_LIKE() specify compatibilty level
2 parents 8c4b962 + 2aaf9a8 commit 6cbeb22

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/t-sql/functions/regexp-like-transact-sql.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ REGEXP_LIKE
2929
)
3030
```
3131

32+
**REGEXP_LIKE** requires database compatibility level 170 and above. If the database compatibility level is lower than 170, **REGEXP_LIKE** is not available. Other [regular expression scalar functions](regular-expressions-functions-transact-sql.md) are available at all compatibility levels.
33+
34+
You can check compatibility level in the `sys.databases` view or in database properties. You can change the compatibility level of a database with the following command:
35+
36+
```sql
37+
ALTER DATABASE [DatabaseName] SET COMPATIBILITY_LEVEL = 170;
38+
```
39+
3240
## Arguments
3341

3442
#### *string_expression*

0 commit comments

Comments
 (0)