Transactional replication is a commonly used means in data synchronization, replication process will inevitably encounter a lot of problems, in the author's problems, there are generally two categories: one is to solve the problem by restarting the
Sometimes, to reduce the number of records stored, multiple records may be merged into one display. This situation is mainly reflected in the record in the other fields of the table are the same, only a certain field is a change in this case, such
1.xml.exist
Enter an XQuery expression that returns either 0,1 or null. 0 means not present, 1 indicates existence, NULL indicates NULL input
2.xml.value
Enter an XQuery expression that returns a SQL Server scalar value
3.xml.query
Enter an XQuery
Sometimes, because of project development, some tables in the SQLServer2005 must be synchronized to the Oracle database, which can be read by other systems. Data synchronization between different database types can be implemented using linked
IF object_id (N ' usp_queryalltablefieldcontent ') is not nullbegindrop PROC usp_queryalltablefieldcontentendgocreate PROCEDURE usp_queryalltablefieldcontent (@queryFieldType VARCHAR (max),--type to query @queryContent VA Rchar (max),--the content
If object_id (' Sp_create_table_sql ', ' P ') is not nulldrop proc sp_create_table_sqlgocreate proc Sp_create_table_sql (@ TableName varchar (255)) as Begin--exec sp_create_table_sql ' ad_adgroup '--0. Hiro--1. Indexes that do not support
With CTE as (SELECT A.fnumber,a.fmaterialid as mainid,b.fmaterialid as Chileid,cast (B.fmaterialid as VARCHAR (max)) as Lev from T_eng_b Om AJOIN dbo. T_eng_bomchild B on A.fid =b.fidWHERE A.fid = ' 100150 'UNION AllSELECT
Problem Description: My device per second data inserted into the database,2 devices A total of 4000, when in the program directly with the insert When the statement is inserted, the two devices are inserted at the same time about a total of about
Sometimes we use the bulk operation to split the string, but SQL Server does not have the Split function, so you have to implement it yourself. There's nothing to say, just take it with the friends you need.SETAnsi_nulls onGOSETQuoted_identifier
When doing data migration or replication, it is sometimes necessary to verify the data differences between the target table and the source table. Here are a few ways to verify data differences:1. Two table connection queries, comparing the values of
Copy codeThe Code is as follows:SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO/*By kudychen 2011-9-28*/CREATE function [dbo]. [SplitString](@ Input nvarchar (max), -- input string to be separated@ Separator nvarchar (max) = ',', -- a string that
Sometimes we use batch operations to Split strings, but SQLServer does not have its own Split function, so we need to implement it ourselves. There's nothing to say. You need to use it directly.
Sometimes we use batch operations to Split strings,
Sometimes, to reduce the number of stored records, multiple records may be merged into one display. In this case, the other fields recorded in the table are the same, and only one field is changed. For example, in personnel management, the IDS of
Shard creation 2004.4Copy codeThe Code is as follows:/* -- Call exampleExec p_lockinfo1--*/Alter proc p_lockinfo1@ Kill_lock_spid bit = 1, -- whether to kill the deadlock process; 1: Kill; 0: only show@ Show_spid_if_nolock bit = 1 -- if there is no
The article tells you how to delete the trim function, which is in SQL. It doesn't feel convenient in php. If you need it, please refer to the operation process.
The article tells you how to delete the trim function, which is in SQL. It doesn't feel
Http://www.cnblogs.com/gaizai/archive/2010/01/11/1644358.html
Before I start, I want to talk about several concepts.
Overwrite Query]
When an index contains all the columns referenced by a query, it is usually called "Overwrite query ".
[Index
1. xml. existIf the input is an XQuery expression, 0, 1 or null is returned. 0 indicates no, 1 indicates yes, and null indicates that the input is null.2. xml. ValueThe input is an XQuery expression and returns an SQL Server scalar value.3. xml.
The previously saved function is used to split a single string into a group of strings. Here, the separator is the English comma "," which can be modified slightly in other situations.
Create Function DBO. f_splitstr (
@ STR varchar (8000)) Returns @
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.