A lot of dirty data is inserted in the database, and it is like a haystack if you want to find and delete it one by one. When the useful data of a database is backed up, you can first Delete the data of all tables to make it a database with only a
Method 1:
Step 1:Backup log database_name with no_logOr backup log database_name with truncate_only-- No_log and truncate_only are synonymous here. You can execute any sentence at will.
Step 2:1. compress all data and log files of a specific
1. Repeat a field from 1 to n ):
Declare @ I int
Set @ I = 0
Update Table1 set @ I = @ I + 1, field1 = @ I
2. ranking by scoreUpdate TablesSet a. Ranking = (Select count (*) + 1From orders Table BWhere a. Total score )From orders Table
3.
I used SQL Server 2000 "Enterprise Manager" on the client --> when creating an SQL Server registration, I entered the IP address of the database server. When the registration failed, I was told that the database server I specified was not found.In
Optimal ms SQL Server paging SQL statements
Feature: only one page of data is returned for a single query. Instead of getting all the data.Note:
Pagesize: number of records displayed per pageCureentpage: Current page number
Select * from (select top
Two methods are provided:One method: Clear logs.1. Open the query analyzer and enter the command
SQL code
Dump transaction database name with no_log
2. Open the Enterprise Manager, right-click the database, and choose Properties> Options> fault
SQL Server distributorOne of its responsibilities is to process a snapshot folder containing the content of the published database. It gives iis the channel to read files from the shared folder you created. open the Resource Management window,
1. First, if IIS is not installed, install IIS first. XP is installed with an installation disk.
If the environment is Windows 2008 iis7, the following error message will appear during installation (IIS 6.0) backward compatibility components. The
The query results are multiple rows and one column. Now we need to splice these results into a string!
Select [values] = stuff (select ',' + coal_id from cbm_well_coalbed_info t for XML Path (''), 1, 1 ,'')
It's a bit confusing. I have never
Access
First, let's take a look at the sample code snippet:Program code:
--------------------------------------------------------------------------------
Using system. Data;Using system. Data. oledb;
......
String strconnection = "provider =
SQL ServerBasic Process of database sorting and optimization (3)
Gao Jiangang
Section 2 Index
Section 3 index Maintenance
The engine automatically maintains indexes when the database performs insert, update, and delete operations on data. With
Process of each stage of SQL Server Query Processing
Unlike other programming languages, SQL is most characteristic of code processing. In programming languages with large numbers, the code is processed in the encoding order, but in SQL, the first
Test Environment
Operating System: Windows Server 2003
CPU: Intel (r) Xeon (TM) CPU 3.00 GHz, 4-core
Memory: 2 GB, mainly used to run MySQL services
Hard Disk: CCISS 37g
File System: NTFS, supporting large files
Database Version: SQL Server 2000 sp3
Guidance: Preface This article describes how to use lumigent Log Explorer to analyze SQL Server transaction logs through a bug analysis and how to recover and cancel Common Database misoperations. Bug descriptionThe article module of the website
For example, we want to summarize the consumption items of a person, which correspond to the following two tables: Theme and themedetail.
The theme record is:Themeid (INT) themename (varchar [10])1 dining2 business trips3. Traveling4 others
The
1. Set deadlock_priority
Note: control the session response mode when a deadlock occurs. If both processes lock data and wait until other processes release their own locks, each process can release its own locks, that is, deadlock occurs.
Syntax:
I often see that the for XML Path is used by the experts in the forum. Because it is a search, the detailed usage is recorded.In SQL Server, the for XML Path statement can be used to generate XML data for the queried data. Below are some examples of
How to Use logtaile:After installation, open Log Explorer File => attach log file-> Select Server and login mode-> connect->Select database> attach> browse> view log> In the left-side dialog box to view the log record,Click View DDL commands. There
SQL Server database query tips:
Problem type: When the ACCESS database field contains a Japanese Katakana or other unknown characters, the query will prompt a memory overflow.
Solution: Modify the query statement.
SQL = "select * from Ada
Solutions for SQL database Trojan:
Correct cleaning of Trojans. Note that the database cannot be modified or deleted at will. Proceed with caution when the trojan is mounted. We recommend that you back up the data and then clean it up carefully.
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.