Use full-text index in SQL Server Article Category: Generally, the full-text index in SQL Server is used for databases. After four steps: 1 ). install full text search Full Text Index Service; 2 ). create a full text catalog full text index
Today, I investigated a defect in the project and found that SQL Server sorts the guid column andClusterSpecial processing of index. Two knowledge points are involved. One is how SQL Server sorts guid columns.AlgorithmImplementation. The second is
1. Paging solution 1: (use not in and select top pages)
Statement format:Select top 10 *From testtableWhere (id not in(Select top 20 IDFrom testtableOrder by ID ))Order by ID
Select top page size *From testtableWhere (id not in(Select top page
Run the following statement to query the Excel content:
Select * From OpenDataSource ('Microsoft. Jet. oledb.4.0 ', 'Data source = c: \ book1.xls; extended properties = Excel 8.0')... [t_table $]
C: \ book1.xls is the path of the Excel file to be
When the SQL Server database on the server is installed, the "Windows Authentication Mode" is selected. in the. NET database connection string, you cannot use the mode with user logon. the connection string in config can be written as "Data Source =
We often encounter this situation. It is often used to create a temporary table with in the stored procedure. This temporary table is used multiple times in this function module. If you use with to create a temporary table with the same function,
This article is a collection of SQL Server practical operations tips, this includes prompting pending operations, shrinking databases, compressing databases, transferring databases to new users with existing user permissions, checking backup sets,
Cursors are evil!
In relational databases, we think about queries in a set. The cursor breaks this rule and changes the way we think about it into a row-by-row approach. For C-like developers, this approach is more comfortable.
The normal way of
You can use the "generate SQL script" tool that comes with SQL Server 2000 to generate SQL scripts for creating tables, views, and stored procedures. So can we generate SQL scripts for the data in the table and automatically import the data to SQL
1. Open "SQL scripts View", 1
Figure 1. Open the SQL Script View
2
, Create a connection, assuming"Masterconnection", According to the figure2And Graph3Set the connection attributes.
Figure 2 establish a connectionFigure 3 set connection
I 've built a Entity Framework Model against a 2008 database. All works OK against the 2008 database. When I try to update the entity on a 2005 database I get this error.
The version of SQL Server in use does not support datatype 'datetime2
I
Compressed log and database file size
/* -- Pay special attention
Follow these steps. Do not follow these steps.
Otherwise, your database may be damaged.
Generally, steps 4 and 6 are not recommended.
Step 3 is not safe, and may damage the
The first one supports a unique primary key, and the second one supports multiple primary keys, which have been tested and are efficient.
Create proc p_viewpage/*No_miss paging Stored Procedure 2007.2.20 QQ: 34813284Applicable to tables or views
Sqlserver2000 synchronous ReplicationI. Preparations1. On the Publishing Server, the subscription server creates a Windows user with the same name, and sets the same password as the valid user who accesses the snapshot folder.-- Management Tools--
Majority
SQL Server
The table needs to be indexed to speed up data access. If no index is available,
SQL Server
You need to scan the table to read every record in the table to find the requested data. Indexes can be divided into cluster
If exists (select * From DBO. sysobjects where id = object_id (n' [DBO]. [sp_decrypt] ') and objectproperty (ID, n' isprocedure') = 1)
Drop procedure [DBO]. [sp_decrypt]
Go
/* -- Crack functions, processes, triggers, and views. Limited to sqlserver2
Unfortunately today, the power is stopped when the computer is started in the morning and the password is entered. After a call in the afternoon, the SQL server cannot start. The following error occurs when viewing database logs:Error: 9003,
I. symptom
Assume that the client and server (maybe N) of the distributed transaction are not on the same server, for example, the applicationProgramThe following errors often occur on servers and database servers:
①An error occurred while
Recently, a new job was to archive the old-year data (contracts, payments, reimbursement, and other documents) stored in SQL Server for year 45, because the daily data increase is large, historical data is not frequently used and affects data
Li honggen
SQLDMO (SQL Distributed Management Objects, SQL Distributed Management object) encapsulates Objects in the Microsoft SQL Server 2000 database. The SQL-DMO allows you to write applications in languages that support automation or COM 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.