If exists (select * From DBO. sysobjects where id = object_id (n' [DBO]. [sp_who_lock] ') and objectproperty (ID, n' isprocedure') = 1)Drop procedure [DBO]. [sp_who_lock]Go/*************************************** ************************************/
Introduction
In the actual development process. In many cases, we need to insert a large amount of test data into the databaseProgram. The generated test data often needs to comply with specific rules. Although you can write a program to insert
Beginners who develop Windows Mobile phones may be so confused about sqlce data synchronization. Here, I will share some of my experiences with you.
There are two ways to synchronize SQL ce and SQL Server:1. synchronize data in the mobile database
-- Create a test table and insert data
Create Table Test (Code varchar (
50 ), [Values] varchar (
10 ), [Count]
Int )
Insert test select
'
001
' ,
'
AA
' ,
1
Union all select
'
001
' ,
'
Bb
' ,
2
Union all select
'
002
In application systems, especially online transaction processing systems, data query and processing speed have become the criteria for measuring the success or failure of application systems. Using indexes to accelerate data processing has become an
I forgot a detail in the previous article. What exactly does the range T-K represent? Range T-K lock represents a type of lock mode (avoiding Phantom reads) at the serializable isolation level to protect data within a range from being affected by
Recently I am working on a framework for my company Program (Data application-oriented application system) as a data management module, the requirements of this module are relatively simple: backup, recovery and log clearing. My company's software
This includes prompting pending operations, shrinking databases, compressing databases, transferring databases to new users with existing user permissions, checking backup sets, and restoring databases during installation.
1. suspend the
If the default value of the column is set when a column is added dynamically, an error is reported when the alter table tablename drop column columnname statement is used. For example,
"Message 5074, level 16, status 1, 1st rowsThe object 'df _
If you want to put the session into the SQL database, you need to create an aspstate table in the database. This table is provided by Microsoft and contains a wide range of SQL statements. Is the generated data table.
The SQL statement is
I have done such a thing some time ago, and moved all the databases (except SQL server system files) originally on drive C to drive D, it is mainly used to facilitate subsequent management and reduce disk I/O blocking (C and D are two independent
This article describes how to use row_number () over () to automatically generate row numbers in SQL Server databases.
The SQL Server database row_number () over () to automatically generate row numbers is what we will introduce in this article.
Introduction
Replication in SQL Server is one of the core features of high availability of SQL Server. In my opinion, replication is not just a technology, but a collection of column technologies, this includes data forwarding from storage to
SQL
Server Temporary tables of are divided into local temporary tables and global temporary tables, which are described as follows in books online:
There are two types of temporary tables: local and global, both of which have different names,
The default datetime format of the Chinese version of SQL Server is yyyy-mm-dd thh: mm: Ss. Mmm.
For example:
Select getdate ()
11:06:08. 177
I sorted out the date format conversion methods that may be frequently used in SQL Server:
Example:
Select
SQL ServerBasic syntax
--View data tables
Select * from student
--UseSQLQuery data
-- 1Query all the class capacities in the table
Select * From tablename
-- 2Query the specified field category in the table
Select
From: http://www.cnblogs.com/steven-zhou-2005/archive/2006/08/09/472042.html
Recently, when I was working on a database, I found that the disk space is often insufficient due to the large size of tempdb. To solve this problem, we use a solution
Quickly append SQL Server database files without log files:
1
Create
Database
[
Database Name
]
2
On
(Filename
=
'
Database file path and file name (for example, D: \ dB \ mydb. MDF)
'
)
3
For
SQL server sorting rules are usually not used many times, and many beginners may be unfamiliar, but someA common error occurs when you query a database that is connected to multiple tables in different databases.If the default Character Set of 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.