We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80618ee + 771659d commit 1eae262Copy full SHA for 1eae262
1 file changed
docs/t-sql/functions/has-dbaccess-transact-sql.md
@@ -36,7 +36,7 @@ monikerRange: ">=aps-pdw-2016||=azure-sqldw-latest||>=sql-server-2016||=sqlallpr
36
37
## Syntax
38
39
-```
+```syntaxsql
40
HAS_DBACCESS ( 'database_name' )
41
```
42
@@ -62,15 +62,15 @@ HAS_DBACCESS ( 'database_name' )
62
## Examples
63
The following example tests whether current user has access to the `AdventureWorks2012` database.
64
65
+```sql
66
SELECT HAS_DBACCESS('AdventureWorks2012');
67
GO
68
69
70
## Examples: [!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]
71
The following example tests whether current user has access to the `AdventureWorksPDW2012` database.
72
73
74
SELECT HAS_DBACCESS('AdventureWorksPDW2012');
75
76
0 commit comments