SRC: http://topic.csdn.net/t/20051209/13/4448680.html
Run MMC, console -- add/delete snap-in -- add -- find Microsoft SQL Enterprise Manager -- add -- close -- OK
Go back to the console -- option -- select "user mode full access" in Console mode --
Select Table name = case when. colorder = 1 then D. name else ''end, table description = case when. colorder = 1 then isnull (F. value, '') else'' end, FIELD No. =. colorder, field name =. name, id = case when columnproperty (. ID,. name,
Document directory
Modify the updatetext field:
Read field readtext:
SQL Server 2000 provides functions for processing text, ntext, and image fields. They are:Textptr
Textvalid
Readtext
Updatetext
Writetext
General functions:Writing segment
Author: Land island Studio
Sometimes you need to check whether the SQL Server version is good. The following code is collected from the Internet. The test passed in Delphi.-- SQL Server 2000
Select serverproperty ('productversion'),
Today, I used the attach function of SQL Server 2008 to attach a database. A problem occurred. The error message is:
Unable to open physical file "D: \ Documents ents \ dalt \ XXXX. MDF" Operating System Error 5: "5 (error not found)" (Microsoft SQL
One of the ways to solve the confusion of concurrent database reading is to use transactions for operations and set the corresponding transaction isolation level. Now let's explain the four isolation levels of SQL Server.
SQL ServerFour
Next, the previous chapter
When the subscription end has not been connected for a long time and there are a large number of insert statements on the release end, let's take a look:
USE mysales_normalGOINSERT INTO [mysales_normal].[myinventory]
Lock upgrade threshold
If you do not use alter table set lock_escalationWhen the table lock upgrade is disabled and any of the following conditions are met, the lock upgrade is triggered:
A single Transact-SQL statement can obtain at least 5,
Today, I am struggling with this problem for a day.
The following code is reproduced on the Internet.
Create Partition Function pf_orders_orderdaterange (datetime)AsRange right for values ('2017-01-01 ','2017-01-01 ','2017-01-01')Go-- Create a
When we copy, rename, move, or delete SQL Server, the system cannot directly perform operations because the SQL service is enabled, and the service must be stopped, after the operation is complete, enable it again. You can use SQL Server Management
1. Use Management Tools
Start-> Administrative Tools-> performance (or enter MMC in the running) then, you can add common SQL statistics by adding counters and select user connections in the projects listed below to query the number of database
Msdn: http://msdn.microsoft.com/zh-cn/library/ms188796.aspx
DBCC is a set of Console Commands provided by SQL Server. It has powerful functions and has some necessary statements, which is helpful for database operations. Therefore, we decided to
1. Improved version of "Russian stored procedure"
Create procedure pagination1(@ Pagesize int, -- page size, such as storing 20 records per page@ Pageindex int -- current page number)As set nocount on
Begin
Declare @ indextable table (ID int
1. xml. existIf the input is an XQuery expression, 0, 1 or null is returned. 0 indicates no, 1 indicates yes, and null indicates that the input is null.2. xml. ValueThe input is an XQuery expression and returns an SQL Server scalar value.3. xml.
5To execute the T-SQL statement for a clustered index table:
Run the following script:
Use [testdb]
Go
Alter table dbo. Nums add Constraint
Pk_nums primary key clustered
(
N
) With (statistics_norecompute = OFF, ignore_dup_key = OFF,
In the query analyzer, perform the following three steps in sequence, where databasename is your database file name1. Clear logs: Dump transaction databasename with no_log
2. truncate transaction logs: backup log databasename with no_log
3. shrink
An Asp.net website is created and used for membership authentication. When debugging and running in vs2010, everything works normally. However, when IIS (7.5) is used, the following error occurs:
Server Error in '/me' application.-----------------
In SQL, the possible values of logical expressions include true, false, and unknown. They are called three-value logic. The three-value Logic is unique to SQL. Most logical expressions that change to a language have only true or false values. The
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.