Chinaunix首页 | 论坛 | 博客
  • 博客访问: 220314
  • 博文数量: 93
  • 博客积分: 1430
  • 博客等级: 上尉
  • 技术积分: 1060
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-06 09:47
文章分类

全部博文(93)

文章存档

2009年(3)

2008年(26)

2007年(57)

2006年(7)

我的朋友

分类:

2007-08-04 10:27:46

sp_addlogin loginame, passwd [,defdb[, deflanguage [,fullname]]]
 
examples
 
1.sp_addlogin ppzlyg ,meijia,beatrice
 create an adaptive server login for "ppzlyg" with the password"meijia" and the
 default database beatrice
 
2.sp_addlogin ppzlyg,meijia,beatrice_db,french
 create an adaptive server login for "ppzlyg" password is "meijia" default database
 is beatrice_db,and default language is french
 
3.sp_addlogin ppzlyg,meijia,beatrice_db,null,"pan pin zhou"
 create an adaptive server login for "ppzlyg" password is "meijia" default database
 is beatrice_db,and full name is "pan pin zhou" do not enclose null in quotes.
 
4.sp_addlogin ppzlyg,meijia,null,null," pan pin zhou"
  create an adaptive server login for "ppzlyg" password is "meijia" and full name
  is "pan pin zhou" and the server's default database and language .do not enclose
  null in quotes.
 
5.sp_addlogin ppzlyg,meijia,"pan pin zhou"
 
 
 
comments
. after assigning a default database to a user with sp_addlogin,the database owner
  or system administrator must provide access to the database by executing 
  sp_adduser or sp_addalias.
 
.although a user can use sp_modifylogin to change his or her own default database
 at any time,a database cannot be used without permission form the database owner
 
.a user can use sp_password at any time to change his or her own password. a system
 security officer can use sp_password to change any use's passowrd
 
.a user can use sp_modifylogin to change his or her own default language. a system
administrator can sp_modifylogin to change any user's default language
 
. a user can use sp_modifylogin to change his or her own fullname.a system
  administrator can use sp_modifylogin to change any user's fullname
 
阅读(1463) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~