对着db1.user1单击右键,选择属性,在数据库角色中允许 db_datareader,db_datawriter前打上钩就行了,user2同理

解决方案 »

  1.   

    --Create a login account for the 'test' user
    execute sp_addlogin 'test','1234','Northwind',null
    go
    --Create a group
    execute sp_addgroup 'testgroup'
    go
    --Add the test user to Database
    execute sp_adduser 'test','test','testgroup'
    go
    grant update,insert
    on customers    -- YOU CAN DEFINED WHICH TABLE YOU WANT GRANT TO TEST USER
    to testgroup