SQL Server record (updating ...)

Source: Internet
Author: User
SQL Server record (updating...) sys. databases

Show all database information

Sys. tables

Displays information about all tables in the current database.

Go

Sends a batch of signals to the SQL Server utility that the Transact-SQL statement has ended, Go itself is not a T-SQL statement

Sq_addrole, etc.

The SQL Server system stored procedure starts with the character sp.

EXEC or EXECUTE

Execute a command string or string in a Transact-SQL batch process or execute one of the following modules: System stored procedures, user-defined stored procedures, CLR stored procedures, scalar value user-defined functions, or extended stored procedures.

N 'XXX' used in sqlserver'

The N 'XXX' Mark forcibly converts the xxx character in single quotes to a Unicode character, without garbled characters in Chinese.

Because ASCII code (one character occupies one byte) is commonly used in English ), however, the Chinese character we use occupies two bytes, so we need to forcibly convert the N 'xXx' To a Unicode character. in this way, both English characters and Chinese characters occupy two bytes in single quotes, unified, no garbled characters! Plus N indicates that the database is stored in Unicode format.

EXEC sp_helpuser 'username'

View all roles assigned to a specified user. If no user name is specified later, the roles of the users used are listed.

Separated identifiers (database engine)

For more information, see me.

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.