1. Introduction
There are two difficulties in realizing the function of tape backup data: first, ms SQL Server (SQL) the overall backup and recovery functions of the provided database cannot directly meet the requirements of the system for data rolling backup. Second, we need to solve how to implement the tape data backup function in the Web environment.The
Xp_schedulersignal
xp_sendmail
Xp_servicecontrol
Xp_snmp_getstate
Xp_snmp_raisetrap
xp_sprintf
Xp_sqlinventory
Xp_sqlregister
Xp_sqltrace
xp_sscanf
Xp_startmail
Xp_stopmail
Xp_subdirs
Xp_unc_to_drive
Xp_dirtree
10. Disable the default login under Security options in Enterprise Manager. (Only SQL 6.5) when using consolidated security, this allows unauthorized users in the syslogins table to log on to a valid database
It is very inconvenient to process dates in PHP, for example, to find the month of the difference between two dates? What should I do? File name: date. inc. php3 before using these two functions, you must first convert the date or date to the timestamp type. For example: $ todaymktime (0, 0, 0, date (m), date (d), date (Y); ***** simulate the dateadd function in sqlserver *
duplicate values, but the values of all columns in the primary key must be unique
Second, use SSMS Operation data table
Each database in SQL Server can store up to 2 billion tables, each table can have 1024 columns
Table row data and total size are only limited by available storage space and can store up to 8060 bytes per row
(1), data type
A data type is a property of data that specifies the type of
Log cleanup methods under SQL Server 2008 (2011-07-14 10:30:45) Transfer from http://blog.sina.com.cn/s/blog_4bdd3d0b0100wfvq.html
Tags: it
Every time the database log to see the explosion of some big head, so random search a way to get rid of the log, the next big head, and search for half a day, so or write a blog, do not look for a mess.1. Set the database to Simple mo
the date part, DATEDIFF returns the number of midnight between two specified times, including the second date but excluding the first date.When you use month as the date part, DATEDIFF returns the number of the first day of the month that occurs between two dates, including the second date but excluding the first date.When you use week as the date part, DATEDIFF returns the number of Sunday between two dates
Tags: cat rds put business logic SYS includes call to create intoAnalyze and compare execution time plan reads 1. View execution time and CPU Set STATISTICS TIME on
select * from Bus_devhistorydata
SET STATISTICS time off You can see it in the message after execution. 2. View the operation of the query for I/O Set STATISTICS IO on
select * from Bus_devhistorydata
SET STATISTICS IO off Results after the execution: Scan count: Index and number of tabl
C # synchronize data in the SQL Server database-Database Synchronization tool [synchronize new data],C # synchronize data in the SQL Server database 1. Write an SQL processing class first:
using System;using System.Collections.Generic;using System.Data;using System.Data.SqlC
Objective
In this section, we'll talk about indexing knowledge, followed by date types in data types, short content, in-depth understanding.
Force Index query criteria
We also spoke a little bit about forcing the index query, and we'll go through the whole story in this section.
(1) SQL Server uses default index
Use TSQL2012
go
SELECT *
sales.orders
I'm not going to bother with that. Use
contiguous pages (64KB of space). In order to allocate space more efficiently, SQL Server 2008 does not allocate space for a small amount of data to a data table. SQL Server 2008 has two types of extents.
The area of the unified type is owned by a single object, and all 8 data pages in the zone can only be used by th
Sqlserverb column are sql_latin1_general_cp1_ci_ai. This can be caused by the initial data or ETL help generating the table, which causes the column to be sorted as Sql_latin1_general_cp1_ci_ai. Delete tables, import data from SSIS data sources to Sqlserverb, automatically create tables (note that there are times when you need to manually modify a generated table's SQL). At this point the column is sorted correctly, as long as
Label:Objective About SQL Server Tuning series is a huge content system, not a word two words can be analyzed clearly, this article first in the SQL tuning in the most commonly used query plan to parse, to do a good job of the basic grasp, tamping basic skills! Then we talk about the overall statement tuning. Learn how to read and understand query plans, and enum
still integrates a large number of internal UDFs (read-only, system-supplied). At the same time, although the UDFs feature was originally released in SQL SERVER 2000, it was provided However, we find that only in SP3, Microsoft is used for its own purposes, and all the UDFs functions provided by the system are started with ' fn_ ' and stored in the master database.
Com
(3,4) value 81O:select Power (3,4) value from dual 81
12. Take random numberS:select rand () valueO:select Sys.dbms_random.value (0,1) value from dual;
13. Take the symbolS:select sign ( -8) value-1O:select sign ( -8) value from Dual-1
14. PiS:select PI () value 3.1415926535897931O: I don't know.
15.sin,cos,tan parameters are in radiansFor example: Select Sin (PI ()/2) value gets 1 (SQL Server)
16.asin,aco
measurement, and the optional value is shown in remarks. DATEADD (day, 3,date) is the date 3 days after the date of calculation, and DATEADD (month, -8,date) is the date DATEDIFF (datepart, StartDate, 8 months before the date of calculation). EndDate)-Calculates the difference between two dates. DatePart is the unit of measure, the desirable value reference DateAdd. --Get a part of the date: DATEPART (datepart,date)--Returns a specific part of a da
), and length is the maximum length of the substring.
SELECT SUBSTRING (' abcdef111 ', 2,3)
REPLACE (string,oldstr,newstr)
Convert (Decimal (18,2), num)--Retains two decimal places 4) Date correlation function GETDATE ()--Gets the current datetime
DATEADD (datepart, number, date)-the date after which the calculation increases. The parameter date is the day to be calculated, the parameter number is increment, the parameter datepart is the unit of measurement, and the optional value is
(controlling Utilities) contain tools for controlling the storage engine, such as bulk load (bulk-load), DBCC commands, full-text index management (full-text index Management), Backup and restore commands, and so on.SqlosSqlos is a separate application layer, located at the lowest level of the SQL Server engine. The main features of Sqlos include:
scheduling (scheduling)
Memory Management (Man
()-returns 8
(2) DATEPART (datepart, date)
Returns an integer that represents the specified date of a specified date.
Select datepart (year, Getdate ()-returns 2006
(3) DATEADD (datepart, number, date)
Returns the new datetime value after the specified date plus a time interval.
Select dateadd (week, 1, GetDate () -- the date after the current date plus one week
(4) DATEDIFF (datepart, startdate, enddate)
Returns the number of date boundary and time boundary that span two specified
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.