Allen's profileLi's spacePhotosBlog Tools Help

Blog


    June 24

    SQL Server 管理常用语句

    --创建登录用户并指定用户的密码
    CREATE LOGIN lizhiyue WITH PASSWORD = 'lizhiyue';
    --打开指定的数据库
    USE TEST_TEST;
    --创建数据库用户,并指定此用户的登录名
    CREATE USER lizhiyue FOR LOGIN lizhiyue;
    --为用户lizhiyue授权(Control是可完全操作此数据库)
    GRANT CONTROL TO lizhiyue;
    GO

    --删除登录用户
    DROP LOGIN lizhiyue;
    --删除用户
    DROP USER lizhiyue
    GO

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://lislog.spaces.live.com/blog/cns!29F76575168CBBB9!254.trak
    Weblogs that reference this entry
    • None