Setting up a user in SQL Server can only access a particular attempt (to an external call) other than the no permission setting

Source: Internet
Author: User


--Current database creation role
exec sp_addrole ' Rapp '
--Assign View permissions GRANT SELECT on veiw to [role]

--Specify the View list Viewcardbaseinfo
--grant SELECT on v_city to Rapp
--grant SELECT on V_LP to Rapp
--grant SELECT on v_qy to Rapp

GRANT SELECT on Viewcardbaseinfo to Rapp


Go
--Add only users who are allowed access to the specified view: EXEC sp_addlogin ' login name ', ' Password ', ' Default database name '
EXEC sp_addlogin ' CD ', ' CD ', ' Campuscard '

You may not be able to do this here, require password strength, then you create it by hand

-----Control Panel-Administrative Tools---Local Security policy---account policy---Password policy-password complexity length set to Disabled

Go
--Add only users who are allowed access to the specified view into the RCRM role: exec sp_adduser ' login name ', ' username ', ' role '
EXEC sp_adduser ' CD ', ' CD ', ' Rapp '

Setting up a user in SQL Server can only access a particular attempt (to an external call) other than the no permission setting

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.