Useful SQL statements (deleting duplicate records and shrinking logs)

These are some useful SQL statements. For more information, see. These are some useful SQL statements. For more information, see. Delete duplicate records and save the non-Repeated Records in TABLE_NAME to # TABLE_NAME Select distinct * into #

Set SQL Server to automatically back up databases on a regular basis

Set SQL Server to automatically back up databases on a regular basis Set SQL server to regularly and automatically back up databases Tools and Database Maintenance Planner in Enterprise Manager can set Regular automatic backup schedules for

Use of SQL Server's built-in SQLDiag tool Program

SQLDiag is a built-in diagnostic collection sharing program of SQLServer. [SQLServer2005] default location: C: ProgramFilesMicrosoftSQLServer90ToolsBinnSQLDiag.exe you can execute SQLDiag in any path because this path has been added to the path

IBMDB2pureScale cluster database application configuration

Part 1 of this article summarizes the architecture and technology of DB2pureScale. When thinking about the advantages of a cluster database and a variety of reliable components that DB2 luw integrates into the pureScale feature, it is easy to

Methods and implementation of distributed ing compatibility in DB2

Database Version compatibility is an important issue. From DB2V9.7, the distribution buing (distributionmap) has been extended from 4096 entries to 32768 entries, how can we achieve compatibility between high and low versions of distribution

Files or file groups cannot be backed up because they are not online.

Problem description: an error is returned when a full backup is performed on the database. Backup statement: usemastergobackupdatabasexxxx_stodiskF: DBBACKUPxxxx_S_20080124.bak; error message: Message 3007, level 16, status 1, row 1st cannot Back Up

MySQl optimizes SQL statements for fast paging of tens of millions of data records

Now we use mysql to directly use limit for database paging. There is no error in this case. If tens of thousands of data entries are not a problem, if you have tens of millions of records, you will want to die. Let me analyze them for you. Now we

View the running status of SHOWSTATUS in MySQL

In mysql, SHOWSTATUS is our best friend. It allows us to quickly view the running status and optimize the database in a timely manner. Below I have summarized some usage. In mysql, show status is our best friend. It allows us to quickly view the

Summary of various causes of MYSQL startup failure and Solutions

We often encounter inexplicable mysql startup failure errors when using MYSQL. Below I summarize the common causes and solutions for MYSQL startup failure. We often encounter inexplicable mysql startup failure errors when using MYSQL. Below I

MySQL is case sensitive.

MySQL is case sensitive based on the user's operating system. You can force mysqld to be started with the-Olower_case_table_names1 parameter (if -- defaults-file... \ my. if the cnf parameter is used to read the specified configuration file and

MySql Regular Expression query records whose filtering fields are Chinese

Using Regular Expressions in MySql can get twice the result with half the effort. In php and asp, there are regular expressions. What about mysql, next, I will take an instance to find the SQL statement of the record whose filtering field is Chinese.

Mysql error code Summary

1005: Table creation failed 1006: database creation failed 1007: database already exists, database creation failed 1008: Database not found, database deletion failed 1009: database files cannot be deleted, resulting in database deletion failure 1010:

In linux, the mysql link is blocked by the firewall. Solution

This article describes in detail how to prevent mysql connections from being blocked by the firewall in linux. For more information, see. This article describes in detail how to prevent mysql connections from being blocked by the firewall in linux.

Two Methods for SQL Server regular Database Backup

Today we will summarize two methods for backing up SQL Server databases on a regular basis. If you need to back up SQL server data on a regular basis, refer to this tutorial. Today we will summarize two methods for SQL server timed backup of the

SQL to improve query efficiency

In SQL development, SQL query efficiency is a very important reference. Accidentally, your web server crashes because of a mysql query statement, it affects normal network access. In SQL development, SQL query efficiency is a very important

SQL cut string Split () function

We used php or asp for data cutting. Today, we suddenly found that the Split function in SQL can also be used to cut strings in SQL queries. If you need it, please refer to it. We used php or asp for data cutting. Today, we suddenly found that the

Detailed process of creating MSSQL table partitions

Currently, table partitions exist in almost all databases, but some details about MSSQL table partitions are different. I also have some knowledge about them. Therefore, this article does not explain the principles in detail, this section describes

How to Use sqlrtrim () and ltrim () Functions

The TRIM function in SQL is used to remove the character header or end of a string. The most common purpose is to remove the leading or trailing blank spaces. This function has different names in different databases: MySQL: TRIM (), RTRIM (), LTRIM (

SQL uses the stored procedure to import data in batches

Storedprocedure is a set of SQL statements for specific functions. It is a program written in the transact-SQL language provided by sqlserver. Compiled and stored in. A stored procedure is an important object in a database. You can specify the name

"SQLSERVER service on the local computer is stopped after it is started" SOLUTION

This method is mainly used to solve the problem that "the MSSQLSERVER service on the Local Computer stops again after it is started. Some services are automatically stopped if they have no "solution. My ASP runtime environment: the operating system

Total Pages: 12780 1 .... 2305 2306 2307 2308 2309 .... 12780 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.