Tag: Value copy disk -- action prediction specified job Deletion
Trigger:
A trigger is a special type of stored procedure that automatically takes effect when a language event is executed. SQL Server includes three common types of triggers: DML
1. How to lock a row in a table
Execute in connection
SET transaction isolation level Repeatable read
Begin tran
Select * From tablename with (rowlock) Where id = 3
Waitfor delay '00: 00: 05'
Commit tran
If you execute
Update tablename set
Alter proc proc_updateinfomation (@ c_id varchar (50), @ State int output)
As
Begin
Declare @ Tran varchar (50)
Set @ State = 0
Begin Tran @ tran
Delete from companyinfo where c_id = @ c_id
If @ error0 or @ rowcount> 1
Begin
Rollback Tran @ tran
Set
A transaction is a unit of concurrency control and a sequence of user-defined operations. These operations are either done or not done. They are an inseparable unit of work.
Through transactions, SQL Server can bind a set of logical operations to
Asp tutorial. net mssql stored procedure output parameter callSimplest syntaxCreate proc pAsSelect * from tbConcepts, advantages, and syntax of SQL Stored ProceduresBefore learning the program process, let's first understand what a stored procedure
A transaction is a mechanism and an operation sequence. It contains a group of database operation commands. All the commands will be used as a whole, and they will be submitted or revoked together to the system. The requests will either be executed
A transaction (Transaction) is used to set the number of consecutive program operations that must be performed successfully, otherwise you must immediately reply to a state that does not perform any program operationsThere are four properties in the
1. Introduce
Now the site with the increase in traffic, a single server can not afford a huge amount of traffic, there is no convenient way to solve this problem, the answer is "there"! For example, set up a server farm, to carry out a balanced
In developing Web applications, we often need to process drives, folders, and files in a file system, such as collecting information about drives, creating, adding, moving, or deleting folders and files. A new set of the FSO (File system object)
Query table name in 1.SQL Server 2000
Often encountered some forget the table name, at this time only remember the approximate, at this time can be queried system table sysobjects find the table name you want, if you want to find the name of the
First the code, you can see the SQL statement to remove duplicate records, get duplicate records
Copy Code code as follows:
ALTER procedure [dbo]. [Proc_itemmaster_getunique] @PAGEINDEX int, @uid int, @itemnumber varchar (50)
As
transactions and locks in SQL Server
The transaction is all about Atomicity (atomicity). The concept of atomicity refers to the idea that some things can be treated as a unit. From a database standpoint, it refers to the smallest combination of one
1. What is a transaction: a transaction is an indivisible working logical unit that is used as the smallest control unit when performing concurrent operations on a database system.
All of the database operations commands he contains are either
Sybase configuration Parameters sp_configure ' max online engines ', 4
Go
--Configure the number of boot CPUs
sp_configure ' number of engines at startup ', 4
Go
--Configure Maximum memory count
sp_configure ' max memory ', 2097151
Go
--Allocating
When a transaction is used in a stored procedure, if there is no Try...catch statement, when set XACT_ABORT on, if an error occurs, all SQL operations are automatically rolled back after the batch statement is completed.
When set Xact_abort off, if
For the various errors in SQL, and orphaned transactions in T-SQL programming must pay attention to the trap of isolated transactions, to avoid wasting or isolate resources, Microsoft publicly announced Sqlserve the next version of Yukon will have
The garden has a very good article about SQL Server transaction isolation, feeling a lot of the introduction from the concept, for those beginners, see the touch of understanding is profound, so no longer repeat, the emphasis is on the example
Programming guidelines: (Simply speaking)
The data is logically placed in a piece
Business logic on a piece of
Interface as a interface
Minimum network transport
------------
1, the data logically put in a piece
For example, table: History
Data | database | Data synchronization
Using database replication technology to realize data synchronization update
The concept of replication
Replication is the technique of copying a set of data from one data source to multiple data sources, 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.