C# 클래스 SonarQubeBootstrapper.Helpers.SqlConnectionExtensions

파일 보기 프로젝트 열기: SonarQubeCommunity/sonarqube-windows-installer

공개 메소드들

메소드 설명
ChangeSqlUserDbRole ( this connection, string rolename, string username ) : bool

Changes role of the user for given database

Needs connection to sql server with a database

CreateNewSqlServerLogin ( this connection, string username, string password ) : bool

Creates a new sql server login that is used to create users in database

Needs connection to sql server only without specifying any database

CreateSqlServerDatabase ( this connection, string databaseName ) : bool

Creates a new sql database

Needs connection to sql server only without specifying any database

CreateSqlUserFromSqlLogin ( this connection, string username, string loginName ) : bool

Creates a new user for a database from a login

Needs connection to sql server with a database

메소드 상세

ChangeSqlUserDbRole() 공개 정적인 메소드

Changes role of the user for given database
Needs connection to sql server with a database
public static ChangeSqlUserDbRole ( this connection, string rolename, string username ) : bool
connection this
rolename string eg. db_owner
username string user name
리턴 bool

CreateNewSqlServerLogin() 공개 정적인 메소드

Creates a new sql server login that is used to create users in database
Needs connection to sql server only without specifying any database
public static CreateNewSqlServerLogin ( this connection, string username, string password ) : bool
connection this
username string
password string
리턴 bool

CreateSqlServerDatabase() 공개 정적인 메소드

Creates a new sql database
Needs connection to sql server only without specifying any database
public static CreateSqlServerDatabase ( this connection, string databaseName ) : bool
connection this
databaseName string
리턴 bool

CreateSqlUserFromSqlLogin() 공개 정적인 메소드

Creates a new user for a database from a login
Needs connection to sql server with a database
public static CreateSqlUserFromSqlLogin ( this connection, string username, string loginName ) : bool
connection this
username string
loginName string
리턴 bool