filmov
tv
SQL Server DBA Tutorial 56- How to Find Out Owner of Any Database in SQL Server
Показать описание
*****************************************************************************************
* How to Find Out Owner of Any Database in SQL Server *
*****************************************************************************************
We will be using two ways in SQL Server
1. Using Store Procedure
2. Using System views
/**************scripts starts here*****************/
--Finding owner of all database using Store Procedure
sp_helpdb
--Finding out Owner of any or all databse using sysdatabses system view
select name as DatabaseName,SUSER_SName(sid) as Database_Owner from sysdatabases
--Where name = 'Your desired database name'
--Where name = 'Your database name'
/**************scripts end here*****************/
Note : Flow the Process shown in video.
😉Subscribe and like for more videos:
💛Don't forget to, 💘Follow, 💝Like, 💖Share 💙&, Comment
Tutorial Link :
Thanks & Regards,
Chitt Ranjan Mahto "Chirag"
_________________________________________________________________________________________
Note: All scripts used in this demo will be available in our website.
Link will be available in description.
#ChiragsTutorial
#DBATutorial
#DBATutorialLearning
#DBAEducation
#DBATutorialFree
#DatabaseTutorial
#SQLServerDatabaseTutorial
#SQLServerDBATutorial
#MicrosoftSQLServerDatabaseTutorial
#ChiragsDBATutorial
#ChiragsDatabaseTutorial
#ChiragsSQLServerDatabaseTutorial
#ChiragsSQLServerDBATutorial
#ChiragsMicrosoftSQLServerDatabaseTutorial
#CreateDatabaseinSQLServer
#CreateDatabasewithT-SQL
#SQLServerVulnerabilityAssessment
#SQLServerDBOwner
* How to Find Out Owner of Any Database in SQL Server *
*****************************************************************************************
We will be using two ways in SQL Server
1. Using Store Procedure
2. Using System views
/**************scripts starts here*****************/
--Finding owner of all database using Store Procedure
sp_helpdb
--Finding out Owner of any or all databse using sysdatabses system view
select name as DatabaseName,SUSER_SName(sid) as Database_Owner from sysdatabases
--Where name = 'Your desired database name'
--Where name = 'Your database name'
/**************scripts end here*****************/
Note : Flow the Process shown in video.
😉Subscribe and like for more videos:
💛Don't forget to, 💘Follow, 💝Like, 💖Share 💙&, Comment
Tutorial Link :
Thanks & Regards,
Chitt Ranjan Mahto "Chirag"
_________________________________________________________________________________________
Note: All scripts used in this demo will be available in our website.
Link will be available in description.
#ChiragsTutorial
#DBATutorial
#DBATutorialLearning
#DBAEducation
#DBATutorialFree
#DatabaseTutorial
#SQLServerDatabaseTutorial
#SQLServerDBATutorial
#MicrosoftSQLServerDatabaseTutorial
#ChiragsDBATutorial
#ChiragsDatabaseTutorial
#ChiragsSQLServerDatabaseTutorial
#ChiragsSQLServerDBATutorial
#ChiragsMicrosoftSQLServerDatabaseTutorial
#CreateDatabaseinSQLServer
#CreateDatabasewithT-SQL
#SQLServerVulnerabilityAssessment
#SQLServerDBOwner