In SQL Server databases, roles and permissions are used to restrict each user's operations on the database. Their role is equivalent to a "Visa". If you do not have a visa, you will naturally not be able to embark on a land outside the motherland.
I have been studying SQL Server for more than 20 days. I followed the instructor's video. Although it is impossible to understand all of them, it is necessary to summarize the learning in the previous stage. Otherwise, the knowledge that is
Set nocountThe returned results do not contain information about the number of rows affected by the transact-SQL statement.
SyntaxSet nocount {on | off}
NoteWhen set nocount is on, no count is returned (indicating the number of rows affected by
Set nocount onDeclare @ procedure sysname -- used to obtain the stored procedure name set, @ STR nvarchar (200) -- set fixed variables for ease of use, @ Str1 nvarchar (200) -- saves the execution string for cyclic operations, @ Username nvarchar (30
We can use the openxml function and the two system stored procedures sp_xml_preparedocument and sp_xml_removedocument in SQL Server 2000 to map the XML document to the corresponding fields and insert them into the database.
The system stored
Use SQL statements to delete a specified recordDelete a specified record using the delete statement in an SQL statement.The delete statement syntax is as follows:Delete from [where ]Parameters:Table Name: name of the data table.Where: Specifies the
A Foreign ForumArticle, First add to favorites and then try again when you are free
If you are familiar with these two tools, there is no problem ~~~
How to Use fiddler and SQL Server Profiler to look for database performance bottlenecksPosted
In databases, strings in certain formats are often used for parsing. I have previously written a similar method, and today I have written another one, and I will share it with you.
Create Function [DBO]. [func_splitstringtotable] (-- string to be
When SQL Server Management studio is connected using Windows, select windows and SQL for "security" in "attribute" of the real column for verification, restart the SQL Server, create a new query, and execute the followingCode
(Several different
Row_number (): indicates the number of rows in the overall result set, and Adds 1 in sequence.
Rank (): group (or not group) first, then each group of rows indicates the serial number, and Add 1 in sequence. If the value of the sequence in this
This blog introduces some classes in ADO. Net, which are not very familiar with coding. Therefore, make a summary!
Oledbconnection class: provides a data source link
Parameters
Description
Provider
Specified oledb provider
Later I found that this part was not completed, so I made a supplement to the SELECT statement-nested query and join query.
SQL Server statements are classified into three types:
Data Definition Language (DDL): used to define the data structure.
When I started sqlserver2000 login in SQL Server mode today, I suddenly reported error 18456. I tried a lot of methods on the Internet and finally solved the problem by using the following methods. I changed the sa Login Password, however, the error
In the previous article, Zhou Gong briefly described some basic concepts of SMO. In fact, the SMO architecture is far more than that described by Zhou Gong in the previous article. It is a complete structure diagram provided by msdn:
Diagnosis and identification of SQL Server deadlocks
Deadlock often occurs in sqlserver. You must connect to the Enterprise Manager> Manage> current activity> lock/process ID to find the deadlock process and locate the cause of the deadlock.The
How to append a text field value to a database in SQL ServerAppend and update the text field values. A simple update statement was used at the beginning of the operation. An error occurred,
In the past, fields of the text and ntext types cannot
SQL Server Lock Mechanism
All SQL Server activities produce locks. The smaller the lock unit, the more concurrent processing capability the higher the management lock overhead. It is difficult for SQL Server to find a balance between concurrency and
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.