From: http://www.cnblogs.com/masterfy/archive/2009/04/09/1432283.html
Alter procedure [DBO]. [usp_deletemm_sbkp] (@ id int)BeginSet xact_abort on -- roll back if an error occursBegin tran -- start transaction......-- Delete device Image Tag
Subquery refers to embedding an SQL Sever statement into another SQL Sever statement. The database engine uses subqueries as virtual tables to perform queries. A subquery can be used as a table in a join statement and can be used as a value in a
When you use the Report Server that comes with SQL Server to design a report, you need to calculate the queried data orOutput FormatYou can use multiple arithmetic expressions provided by the designer.Easy to useThe method is to useBuilt-in text
I. Access to XML data type SQL Server (SQL Server 2005 or 2008)
1. Store XML data into the database
Note:[Spprf] The type in dB is XML.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Select
O. Name
As
"
Table
Name ", I. rowcnt
As
"Row
Count
"
From
Sysobjects o, sysindexes I
Where
I. ID
=
O. ID
And
I. indid
In
(
0
,
1
)
And
O. xtype
=
'
U
'
--
Count only user
Author: pbsql (Fengyun)Date: 2005-12-06
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.
2. Avoid using left join and null values as much as possible. Left
1. when no return value is returned for a stored procedure (that is, no return or other statements are included in the Stored Procedure statement), use the int COUNT = executenonquery (...) method (..) the returned values of a stored procedure are
in the previous section of SQL Server's commonly used date functions (1), we introduced the first two date functions in the table below. In this section, we will continue to learn the following three functions.
function
The following table summarizes several time functions commonly used in SQL Server.
function
description
getdate ()
returns the current date and time
convert ()
display
SQL Server Installation suspension solution
About: PreviousProgramHow to install a file that has been suspended on the computer I installed SQL server before and deleted it later. Now, "a previously installed program has created a suspended file
Calling the stored procedure of SQL Server in ASP can be accelerated
Program Therefore, the SQL server stored procedure has been used in ASP over the past few days. Many of the ideas are also obtained directly from the chinaasp Forum, hoping to
1. What is Table Partitioning?
SQL Server uses three different types of files to store data:. MDF,. NDF, And. LDF. The main data is stored in
. MDF files, such as tables, indexes, and stored procedures .. The NDF file is also used to store the data
SQL Server performance optimization execution plan in-depth analysis section 1 SQL Execution Process, it is also an important aspect of database performance tuning and provides a lot of data basis for optimization. This series
Article There will be
1. Open the query analyzer, enter the command dump transaction database name with no_log2, Open Enterprise Manager -- Right-click the database you want to compress -- all tasks -- contract database -- contract file -- Select log file -- select
Set datefirst 1 select the week of the current year = datename (Week, '2017-01-01 '). Today is the day of the week = datename (weekday, '2017-01-01 ') select the week of the current year = datename (Week, getdate (), today is the day of the week =
How do it:
(1) create a solution
(2) InIn the Web. config configuration file Add
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Authentication Mode="Windows" />Identity impersonate="True" /
Create a database, select chinese_prc_90_ci_ai as the sorting rule of SQL Server 2005, and select chinese_prc_100_ci_ai as the sorting rule of SQL Server 2008.
If you do not select this rule, use the default chinese_prc_ci_ai.
Select * From DBO.
The launch of SQL Server 2005 has brought enterprise-level applications to a new level,It also makes the foundation of the. NET platform more solid, because the combination of the two makes the database development simpleIt is self-evident that
How to use SQL statements to import data from each table in a remote SQL Server database to the corresponding table in the local databasePosting time:
How can I use SQL statements to import data from each table in a remote SQL Server database to
From: http://topic.csdn.net/t/20040430/11/3024328.html
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
How to create, maintain, and connect a backup server
-
SQL)The establishment of the backup
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.