Because the version of a maintained project cannot be affected, many developers have experienced it, especially as the table data volume increases, so the performance of some SQL statements is getting worse and worse. In this way, as the number
Why use transactions?When updating multiple tables, an execution fails. Transaction rollback is required to maintain data integrity. Display Set transactions
Begin Try Begin Transaction Insert Into Shiwu (ASD) Values ( ' Aasdasda '
Objects such as tables in the SQL Server database are stored in the sysobjects data table, and temporary tables are saved in the tempdb database.
1. Determine whether a common table exists. You can use the object_id function to return the Object
I wrote a stored procedure the other day and used transactions in the stored procedure.CodeComment out to debug and find the error. Suddenly, a table is locked. It turns out that the code for creating the transaction has forgotten to comment out.
ArticleDirectory
1. Start the MSDTC Service.
2. Set the MSDTC component.
3. Check whether two machines can ping each other through hostname.
4. Start the distributed remote connection of SQL Server.
I. symptom Assume that the
This article is from http://stackoverflow.com/users/6461/splattne. Thanks to his effort.
In order to optimize tempdb performance pay attention to physical disk configuration, file configuration, as well as some settings within the database.
It is a coincidence and helpless move to use this thing. Accidentally inserted some data after httputility. urlencodeunicode in the database. Some fields in the database are structured like % uxxxx.
Search for the half-day T-SQL urldecode function,
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Create
Function
DBO. splitstring(
@ Expression
Nvarchar
(
4000
),
--
String to be split
@ Delimiter
SQL server2005 failed: error40; unable to open the connection to SQL Server, set TCP/IP and other issues that cannot be connected.
TCP/IP is set to allow.
The username and password are correct.
Sqlserver2005 built-in management tools can be
I. Data Definition Language)A document language is a language defined for the format and form of a document. It is the first thing that every database needs to create, the table relationships, column primary keys in the table, and the reference
(1) Char, varchar, text and nchar, nvarchar, ntextChar and varchar are both between 1 and 8000 characters in length. The difference is that char is a fixed-length character data while varchar is a variable-length character data. The so-called fixed
Preface
This seriesArticleThere are four parts:
1.CLR overview.
2. Perform CLR integrated programming in Visual Studio and deploy it to SQL Server, including stored procedures, triggers, custom functions, custom types, and aggregation.
3.
SQL ServerHorizontal scaling: Design, implementation and maintenance (3)-distributedPartitionView implementation
In the previous articleArticle, We have already mentionedDistributed partition ViewThe linked server technology is used for
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> -- Member table If Object_id ( ' Userinfo ' , ' U ' ) Is Not Null Drop Table Userinfo Go Create Table
From yesterday's online search for "Data Synchronization", the most frequently-used
Article It is an entry to your understanding of this knowledge!
Concept of ReplicationReplication is a technology that copies a set of data from one data source
SQL Server provides a special data type: image, which is a type that contains binary data. The following example shows how to put text or photos in the database. In this article
Article To see how to store and read images in SQL Server.
1.
It mainly uses case statements to solve the problem of Row-to-column conversion.
The row-to-column conversion problem is mainly divided into two types:
1) Simple row-to-column conversion:
Example Table:
Id Sid Course Result
1 2005001
Transaction attributes
Transactions have ACID properties
That is, atomic atomicity, consistent consistency, isolated isolation, durable permanent
Atomicity
That is, the transaction should be taken as a unit of work, and the transaction is
From: http://atkins.5d6d.com/viewthread.php? Tid = 6847
Analyze and solve the SQL Server deadlock problem Deadlock. In short, two or more trans simultaneously request an object being requested by the other party, causing both parties to wait for
1. 'essential' of a trigger ':
A trigger is a special stored procedure. It cannot be explicitly called. Instead, it inserts records, changes records, or deletes records into a table. When an event occurs, automatically activated.
2. The 'function ':
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.