Released on: 11/15/2004 | updated on: 11/15/2004
Itzik Ben-gan
This article is based on Beta 1 of Microsoft SQL Server code "Yukon". All the information contained here may be changed.
Download the code in this article: tsqlinyukon.exe
Recently done a small project, encountered such problems, recorded, is a summary.
This project is divided into two parts, one is news data acquisition, one is the audit of information acquisition, the final generation of XML files.
After data is
Objective
In this section, we continue our trip to SQL, this section of the title to say some basic knowledge and need to pay attention to the place, if there is something wrong, but also hope that the short content, in-depth understanding.
The code just filters a subset of the labels, such as span or no filtering, and if there is a better way, you can help to addCreate FUNCTION [dbo]. [Cleanhtml] (@HTMLText VARCHAR (MAX))RETURNS VARCHAR (MAX) asBEGINDECLARE @Start INTDECLARE @End
1.1.1 Summary
If you want to optimize the database, we can mainly through the following five ways to optimize the database system.
1. Computer Hardware tuning
2. Application Tuning
3. Database Index Optimization
4. SQL statement Optimization
5.
Identity (1,1) means that the value of this field is increased by 1 each time a statement is inserted,
GrammarIDENTITY [(seed, increment)]
ParametersSeed
The value used by the first row loaded into the table (indicating the seed).
Increment
The
In a team project, there is no agreement on collation, and programming in MS SQL Server encounters this problem:Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "sql_latin1_general_cp1_ci_as" in the equal to OP Eration.
--1, with the help of NEWID ()Go --Create a view (because NEWID () cannot be used directly in the function)Create ViewVnewid as Select newid() N'macoid'; Go --Create a functionCreate functionGETRANDSTR (@n int) returns varchar(Max) as begin Declare
As we all know, the most effective way to improve the data query speed of SQL Server is to create indexes for the table, while indexes are new, deleted, modified, index fragment, index fragmentation is more, the index needs to be re-organized or
When developing, it is not necessary to use SQL to directly interact with the database, when the table names and field names in the database are used more. If you copy one every time you use it, the egg hurts. So consider making it a const constant.
Original: SQL datalength and Len distinguished usageLen (string_expression) parameter: The string to be evaluatedLen () functionThe Len function returns the length of the value in the Text field.SQL Len () syntaxSelect Len (column_name) from
-- during maintenance, it is often necessary to kill all the processes in a database, and it is a bit too cumbersome to kill manually. Wrote a stored procedure--usage:proc_kill ' PSADBA 'Create proc Proc_kill (@db varchar (24))AsBeginDECLARE @str
about the databaseAs a "feeling" (b-grid higher). NET Development engineer, how much need to know some of these little stories. Even if it's just a matter of some nonsense. 1. File TypeDatabase (Common) Access SQLite SqlServerCe 2. There are two
DirectoryThe origin of a Codd RDBMS12 law--rdbmsDesign phase of two-relational databaseThree design principlesFour naming rulesDatabase design, a cornerstone of the success of a software project. Many practitioners agree that database design is not
SQL Server database administrators frequently need in especially development and test environments instead of the pro Duction environments to kill all the open connections to a specific database in order to process SQL Server main Tenance task over
Original address: Http://msdn.microsoft.com/zh-cn/library/ms190969.aspxThe basic unit of data storage in SQL Server is the page. The disk space allocated for the data file (. mdf or. ndf) in the database can be logically divided into pages (numbered
PrefaceThis is my work more than two years later, starting from the most basic SQL start, seriously learn SQL Server, Leackage Check and consolidation have all; because I was just beginning to learn, always upset, recently changed work, found 1-2
SQL Server has introduced the concept of Columnstore since 2012, and so far 2016 support for Columnstore has been very friendly. Because my side of the online environment is primarily 2014, this article is an introduction to the 2014-based column
Migrate local SQL Server database to Windows Azure SQL database via the SSMs toolMicrosoft's product updates are getting faster, almost every year there are product updates, today, we mainly introduce how to migrate the local SQL Server database to
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.