Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

Start a Blog

Develop Your Skill

Develop Your Skill



Develop Your Skill

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
Camera Offer Christmas Cushion Covers


How to check you have the database access?
Question Posted on 15 Jun 2024

Home >> DataBase >> sql questions >> How to check you have the database access?




How to check you have the database access?
To check the database access we use below syntx to check the access on database.

Select HAS_DBACCESS('Database_Name')

And from above query will if it returns 1 then user have access to database. And if return 0 that means you have no access to the database. And this will return NULL if name is no valid.

HAS_DBACCESS returns 0 if the database is offline or suspect.

HAS_DBACCESS returns 0 if the database is in single-user mode and the database is in use by another user.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Define N in nvarchar and in nchar?
difference between drop and truncate command
difference between procedure and function
different types of databases in sql
Difference Between Update Lock and Exclusive Lock






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |