更改现有用户或数据库的密码。

语法

ALTER DATABASE PASSWORD newpasswordoldpassword

ALTER USER user PASSWORD newpasswordoldpassword

ALTER USER 或 DATABASE 语句包含以下部分:

部分

说明

user

要添加到工作组信息文件的用户的名称。

newpassword

要与指定的用户数据库名称关联的新密码。

oldpassword

要与指定的用户名称关联的现有密码。



Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Office Insiders

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?

Thank you for your feedback!

×