sql2005建立遠端登入帳戶的sql語句

2022-09-24 20:33:09 字數 732 閱讀 2187

複製** **如下:

/*建立伺服器登入角色*/

create login h程式設計客棧njm with password='hnjmxy123'

/*開啟指定資料庫*/

use [job]

go /*建立資料庫角色 並關聯伺服器登入角色*/

create user hnjm for login hnjm

/*賦予某個表給角色許可權*/

grant select on serverattachments laojnngeto hnjm

grant select on servercompanies to hnjm

grant select on serverdocument to hnjm

grant select on serverfrontusers to hnjm

grant select on serverjobpos程式設計客棧tings to hnjm

grant select on serverrecommen程式設計客棧dedcompanies to hnjm

grant select on serverrecommendedpostings to hnjm

grant select on servercompanyjobpostingupdate to hnwww.cppcns.comjm

本文標題: sql2005建立遠端登入帳戶的sql語句

本文位址:

SQL2005建立多個例項經驗

1.跟正常安裝sql2005一樣。但要注意的是安裝其他例項時,安裝選項裡只要選擇最基本的sql server database services即可 2.安裝時必須取乙個名字,不能使用預設例項了 3.安裝後必須指定另外乙個埠,預設埠為1433,其他例項不能再使用這個埠,否則將啟動服務失敗 4.sql...

sql2005資料庫遠端備份

開啟高階設定 exec sp configure show advanced options 1 reconfigure 開啟xp cmdshell擴充套件儲存過程 exec sp configure xp cmdshell 1 reconfigure declare strdirname varc...

mysql建立遠端帳戶 mysql 建立遠端帳戶

linux上安裝的mysql。預設狀況下只有乙個帳戶 root 此帳戶只能進行本地鏈結 對外拒絕鏈結 mysql 咱們須要建立乙個容許遠端登陸的資料庫帳戶 這樣才能夠方便的進行遠端操做資料 linux 預設狀況下 linux內的mysql資料庫mysql,user表內的使用者許可權只是對localh...