1. FOR XML path (' str ')Select Id,createtime from dbo. Articleinfo FOR XML Path (' MyTitle ')Result: (Note: If it is select Id,createtime from dbo.) Articleinfo FOR XML path below results 2. FOR XML Path (")Select ' [' +convert (Varchar,id) + '] ', ' [' +title+ '] ' from dbo. Articleinfo FOR XML Path (")Results:[1] [News Title 1] [2] [News Title 2]3. FOR XML row (raw: The field is displayed as a property)Select Id,menutype from Articleinfo FOR XML rawResults:4. FOR XML row (' str ') (Raw: The f
A few days ago, when I upgraded the database of a Communtiy Server from SQL 2000 to SQL 2005, I encountered a strange problem and reported the following error:Violation of primary key constraint 'pk _ cs_threads'. Cannot insert duplicate key in object 'dbo. cs_threads '.After the analysis, we found that the table's auto-increment field database has reached 6144, and the initial
In daily SQL Server development, identity columns of the Identity type are often used as the auto-increment numbers of a table structure. For exampleArticleNumber, record number, and so on. The reference of the Self-increasing ID column greatly facilitates the databaseProgramDevelopment, but sometimes this stubborn field type also brings some trouble.
1. Modify the field value of the ID column:
Sometimes,
Starting with SQL 2012, Microsoft has made a cache mechanism to make insert auto increment faster.Although this mechanism is good, but also has the troublesome situation, if your SQL suddenly restart, then this cache losesThis time causes your SQL auto increment Id to jump 1000 Suddenly, for example from 45,46...1047.If you care about the order of this number.Then you can turn off the cache mechanism.refer:
in the Changeddirs#traverse the submitted code directory and synchronize to the Web server while[ "$CHANGEDDIRS" != "" ]; DoPROJECT=$(Echo $MASTERDIR| Awk-f/' {print $} ') Myecho"Current project:$PROJECT"#Judging the project folder if[ "$PROJECT"= =" Ipengbei "];then WEB=/usr/local/nginx/html/Ipengbei Myecho MyechoProject$PROJECTSynchronization directory:$MASTERDIR"MyechoThe Sync$MASTERDIRTo TYQ:$WEBROOT/ipengbei "$SVN--non-interactive Update$WEB-
An identity column in SqlServer2012 has an attribute:When the server restarts, the identity column defined as int automatically adds 1000 to the original maximum value. For example, your original self-increment column of the maximum value is 2, then you restart after inserting a piece of data into the table, your self-increment column will be 1002, in 2008 should be 3.The identity column defined as bigint automatically adds 10000 to the original maxim
1. Script section #!/bin/bash#autogetsysteminfoecho-e "\033[34m\033[1m" catShow Results:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/75/F7/wKioL1ZGFUfjycNEAAA1k0jKwpc199.png "title=" 1.png " alt= "Wkiol1zgfufjycneaaa1k0jkwpc199.png"/>Shell Auto-Collection server hardware system information displayed via Web page
MAVEN configuration Jar (WAR) package auto-pack upload Maven server configuration
Create a Jar (war) package project
Create a MAVEN project
To wear a test class in a project
Configure Pom.xml
distributionmanagement> repository> ID>Nexus-releasesID> URL>http://127.0.0.1:8081/nexus/content/repositories/releases/URL> repository> snapsh
A Discovery This method is initiated by the server side and consumes a lot of performance on the service side.Write the intranet address in.Create actions? Select DiscoveryCreate actions that automatically discover Linux and automatically add to specified groups and links.Two Auto registration This method is initiated by the client and is recommended in this way.Modify the Zabbix-agent configuration add a l
A few days ago, when I upgraded the database of a communtiy server from SQL 2000 to SQL 2005, I encountered a strange problem and reported the following error:
Violation of primary key constraint 'pk _ cs_threads'. Cannot insert duplicate key in object 'dbo. cs_threads '.
After the analysis, we found that the table's auto-increment field database has reached 6144, and the initial
Auto: http://www.dabaoku.com/jiaocheng/biancheng/mssql/200910111334.shtml
Recently, the database server has increased its memory to a maximum of 8 GB, and the database uses MSSQL 2005. Previously, the memory was 4 GB, there is no conflict between memory size and 32-bit operating systems. A 32-bit operating system supports a maximum of 2 GB memory for a single process. In this case, the memory is added to
type, which is 0 if the call succeeds. Later, we'll discuss how to handle the return value as non.
Stored Procedure Descriptionsp_OACreate establish an instance of an automatic action objectsp_OADestroy frees an instance of an objectsp_OAGetErrorInfo Get error description information from the HRESULT returned by other processessp_OAGetProperty store An object's properties in a result set or in a local variablesp_OASetProperty change the value of an object propertysp_OAMethod the method of execu
("Wscript.Shell")Set Objdomain = CreateObject ("ADSystemInfo")Wshnetwork.mapnetworkdrive "x:", "\\10.12.8.130\ shared File"Wshnetwork.mapnetworkdrive "Z:", "\\10.12.8.130\ Personal file" + "\" Wshnetwork.usernameNote that the default Group Policy for WIN8 and above will wait 5 minutes before running the logon script, so the mapped drive letter is not immediately visible on boot. We still need to make some changes. Turn on Computer Configuration-policies-Administrative Templates-system-Group Po
]@@z () 13F8D3CDA [Emailprotected]@[emailprotected]@@z () 13f87a80c mysqld.exe!handle_connection () 1402d5932 [em Ailprotected][emailprotected][emailprotected]@[emailprotected]@@[emailprotected] @[emailprotected] () 13ffe7e6c mysqld.exe!my_thread_once () 7fef56e4f7f Msvcr120.dll!_beginthreadex () 7fef56e5126 Msvcr120.dll!_endthreadex () 7703f34d kernel32.dll! Basethreadinitthunk () 77172cc1 ntdll.dll! Rtluserthreadstart () Trying to get some variables. Some pointers may is invalid and cause the
Setcontentview (R.layout.activity_splash); // Bmob SDK Initialization--only this piece of code is required to complete the initialization // please go to bmob official website (http://www.bmob.cn/) to apply for ApplicationID, specific address: Http://docs.bmob.cn/android/faststart/index.html?menukey=fast_start key=start_android Bmob.initialize (this, constant.bmob_app_id); + "Launched! ");Apply Appkey, modify the value of Appkey.Friends Union Automatic Updat
Http://blog.sina.com.cn/s/blog_a342ff0a0101u3kb.htmlSQL Server:Solution 1:select Top * from a where ID not in (select top with ID from a);Solution 2:select Top * from a Where ID > (select MAX (ID) from (select top with ID from a) as A);As I understand it,The first method: first 30 data (the default positive order) is queried based on the ID, and then the first 10 data in the 30 data is queried in the positive order.The second method: first, according to the ID positive sequence query the top 30
Original: powerdesigner-vbsrcipt-Auto set Primary key, foreign key name, etc. (SQL Server)When designing SQL Server datasheets in PowerDesigner, the following functionality is required through VBScript scripting:Primary key: Pk_tablenameFOREIGN key: Fk_tablename_foreignkeycolumnlistWhen the field is a primary key and the type is Smallint,int,bigint, set the ident
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.