SQL Server Agent Jobs

(1) The jobs in the MS SQL Agent are saved in the msdb database, and the job list can be queried by the following SQL statementselect * from msdb.dbo.sysjobs(2) MS SQL Agent job history is also saved in the msdb database, and the job history list

SQL Server Backup Recovery efficiency

How to improve the speed of backup?In fact, this problem and how to make the system run faster is the same, to want the system to run faster, nothing else is: optimize the system, or even better and more powerful servers, especially more CPU, larger

Differences between Select and SET on variable assignments in SQL Server stored procedures

Transferred from: http://www.cnblogs.com/micheng11/archive/2008/07/08/1237905.htmlThere are two ways to assign values to variables that are already defined in SQL Server, SET and SELECT, respectively.The differences between these two approaches are

SQL Server DBA Eve Q (Enhanced edition)

dba

Original link: http://www.cnblogs.com/fygh/p/3288701.htmlFrom the initial release of SQL Server DBA Eve asked for more than a year, you have some of the issues discussed more intense, to answer these questions need more solid SQL ServerBasic and

SQL Server 2008 Shrink log Empty Delete large log file

SQL2008 's Shrink logBecause SQL2008 is optimized for file and log management, the following statements can be run in SQL2005 but have been canceled in SQL2008:(SQL2005)Backuplog Dnname with No_logGoDumptransaction Dnname with No_logGoUse DnnameDBCC

SQL SERVER modifies the database name (including modification of the db.mdf name)

Toss SQL SERVER 2012, get a morning to modify the database name, mainly need to modify the name of Db.mdf and Db_log.ldf, finally solved. Write it down here, and change it later, and don't forget it.Assuming the original database name is DB, the

SQL Server processing for concurrency-optimistic and pessimistic locks

https://www.cnblogs.com/dengshaojun/p/3955826.html SQL Server processing of concurrency-optimistic and pessimistic locksIf two threads modify the same record in the database at the same time, it causes the latter record to overwrite the previous one,

Summary of SQL Server string splitting (split) methods

--method 0: Dynamic SQL method declare @s varchar ( -), @sql varchar ( +)Set@s='1,2,3,4,5,6,7,8,9,10'Set@sql ='Select Col=" "+ Replace (@s,','," "UNION ALL Select" ")+" '"PRINT @sqlexec (@sql)--Method 1: Cyclic interception methodifExists (Select*

SQL Server 2016 row-level permission control

Original: SQL Server 2016 row-level permission controlBackgroundIf we have key data stored in a table, such as the staff table contains employee, department and salary information. Only allow users to access information from their respective

SQL Server Kanji to phonetic alphabet

/*Chinese Pinyin First letter*/Create function fun_getpy (@str nvarchar (4000))Returns nvarchar (4000)AsBeginDECLARE @word nchar (1), @PY nvarchar (4000)Set @PY = ' 'While Len (@str) >0BeginSet @word =left (@str, 1)--If non-kanji characters, return

[Reading notes] SQL Server Enterprise Platform Management practice reading notes 01

1. SQL Server information collectionSQLDIAGUsing the interfaceC:\users\administrator>sqldiag2018/01/02 08:13:26.10 SQLDIAG Collector version2018/01/02 08:13:28.19 SQLDIAGIMPORTANT: Please wait until ' see ' Collection started ' before attempting

SQL Server Tuning Series Basics (Union operator summary)

ObjectiveIn the last two articles, we describe how to view the query plan, and some of the common optimization techniques for join operators, and we summarize how the federated operators are used and how to optimize them.Talk less and go straight to

Share SQL Server R2 data backup, synchronize server data (i. Local backup)

A recent deployment of a system, in the data security considerations, so the corresponding database server scheduled backup, and data synchronization to the backup service. Before in another project also did the corresponding operation, but the

Build SQL Server 0 AlwaysOn third (install data, configure AlwaysOn)

This is the third article from 0 to build SQL Server AlwaysOn, this article really started to build AlwaysOn, the first two is to build AlwaysOn to prepareOperation Steps:1. Install SQL server2012 ( Note: Be sure to install. NET fromwork 3.5 and log

SQL Server 2016 authorization notes-standby

SQLthe licensing approach is somewhat complex and is explained below:1. version: Standard Version and Enterprise Edition, software features are not different, but the standard version has the following limitations :a) memory Max 64Gb) 4

SQL Server DBA Eve Q (Enhanced edition)

dba

1. Talk about the difference between clustered index, nonclustered index, hash index and their merits and demerits, include covering index's function, relative to the advantage of composite index;2. What is the structure of the log file, what is the

SQL Server Introduction Order: First level, Introduction to Indexes

SQL Server Introduction Order: First level, Introduction to Indexesby David Durant, 2014/11/05 (first PUBLISHED:2011/02/17)Original address:Stairway to SQL Server Indexes:level 1, Introduction to IndexesThis article is part of the SQL Server cable

SQL Server takes all the dates or all the months in a certain time period

Take all months:DECLARE @begin datetime, @end datetime set @begin = ' 2015-2-6 ' Set @end = ' 2015-12-2 ' declare @months int set @months =datediff ( Month, @begin, @end) Select CONVERT (varchar (7), DATEADD (Month,number, @begin), as month from

The difference between char, varchar, nchar, nvarchar in the "string difference" SQL Server:

First, the definitionChar: fixed length, storing ANSI characters, insufficient complement English half-width space.NCHAR: fixed length, storing Unicode characters, insufficient complement to English half-width spaceVARCHAR: variable length, storing

Installation and configuration of SQL Server 2012 database under Win7 system

Due to the requirements of the data Warehouse and data mining courses and the integration of many data analysis tools in the SQL Server database, there are many advantages to the Data Warehouse deployment, OTAP data analysis and so on. Simply write

Total Pages: 923 1 .... 282 283 284 285 286 .... 923 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.