The team Foundation server of the project team is ready for operation, but some problems have also been found during the past few days. It is no wonder that in Microsoft products, I feel that TFs is the most integrated with many products and services, therefore, the problem is also a strange competition from other heroes, and TFs problems are particularly difficult to solve, so from this Maintenance note, I
Studio, right-click, select new = "task; 3. In the General page of the New Task dialog box, enter the task name and other details: 4. On the steps page of the New Task dialog box, click New and enter the SQL command for the user database. 5. On the Advanced page of the New Task Step dialog box, enter the name of the output file that reports the fragmentation analysis results: 6. Click the OK button to return to the new Job dialog box; 7. On the schedule page of the New Task dialog b
is the same, whether retrieving data from the current local database storage engine or retrieving data from the storage engine of a remote database. If you know a little bit about the internal structure of the database, it's very easy to understand the problem:Friends see the graph above, the query engine (also known as the "relational Engine") accesses the access method through the OLE DB interface provided by the storage engine. Here, the OLE DB provider can access the Remote Storage engine's
Step one: See if maintenance is required to see if scan density/scan density is 100%
DECLARE @table_id int
SET @table_id=object_id (' table name ')
DBCC SHOWCONTIG (@table_id)
Step two: Refactor SQL Server database table indexes
DBCC DBREINDEX (' table name ', PK_ index name, 100)
Redo the first step, such as finding the scan density/scan density or less than 100% to ref
it under F:\Database_Backup, and later backup files are placed in this directory.GODECLARE@backupTime VARCHAR (a)DECLARE@fileName VARCHAR (+)SELECT@backupTime = (convert (varchar (8), GETDATE (), +) +REPLACE (convert (varchar (5), GETDATE (), 114), ' : ', ' ) SELECT@fileName =' F:\Database_Backup\DB_ ' [email protected]+'. Bak 'Backup database DBName to [email protected] DBName is the name of your database, and the file name of the backup is like Db_201302252140.bak.2. Write a batch file
/1000 N ' Total time spent in MS ',total_worker_time/1000 N ' Total CPU time MS ',Total_physical_reads N ' Total number of physical reads ',Total_logical_reads/execution_count N ' Each logical read ',Total_logical_reads N ' Logical reads total number of times ',Total number of total_logical_writes N ' logical writes ',Execution_count N ' execution times ',Creation_time N ' statement compilation Time ',Last_execution_time N ' Last Execution time ',SUBSTRING (St.text, (QS.STATEMENT_START_OFFSET/2)
modification is listed as key columns colmodctr+2=colmodctrBulk Insert is similar to n Rows insertTruncate table is similar to n Rows deleteNote: Modification counters non-transactional (such as when inserting 1000 data, and then rollback. COLMODCTR will be added)The filter statistics (filtered statistics) trigger updates to the overall data range rather than the filter interval. Manual Maintenance once createdThe optimizer applies statistics.How the
Label:--Maintenance Database---- Trigger -- --Overview:Note:a trigger is a special type of stored procedure,used to enforce business rules。 On invocation, triggers cannot be called directly by the user through T-SQL statements, as stored procedures do, but require the execution of INSERT, UPDATE, delete events that occur on the database to fire the automatic execution of the trigger. Therefore, when creating and using triggers, you need to consider th
Linux server maintenance-count the number of connections to view the external connection ip-Linux Enterprise Application-Linux server application information. For details, see the following. Server statistics:
1) count the number of connections on port 80
Netstat-nat | grep-I "80" | wc-l
1
2) count the number of ht
You need to use SVN as your code control server at work. So operations need to master the SVN server building and some common operations.
Installing Apache Serviceswget http://pkgs.fedoraproject.org/lookaside/pkgs/httpd/httpd-2.2.22.tar.bz2/ 9FE3093194C8A57F085FF7C3FC43715F/HTTPD-2.2.22.TAR.BZ2Tar jxvf httpd-2.2.22.tar.bz2CD httpd-2.2.22./configure--prefix=/data/svn_base/httpd--enable-so--enable-dav--e
1#uname-A # view kernel/OS/CPU Information2#Head-N1/etc/issue # Viewing the operating system version3#Cat/proc/Cpuinfo # Viewing CPU information4#hostname# view Computer name5# LSPCI-TV # List all PCI devices6# LSUSB-TV # list all USB devices7#Lsmod# list the loaded kernel modules8#Env# View Environment Variables9# Free-m # View memory usage and swap area usageTen#DF-H # View the usage of each partition One#du-SH# View the size of the specified directory A#grepmemtotal/proc/Meminfo # View Total
Here are some of the information found online to solve this problem:Get this job_id first:USE [msdb]GO/****** Object: Job [dbbackup_diff.Subplan_1] Script Date: 04/08/2015 10:22:46 ******/@job_id=N‘588acfb8-630b-41c3-aa47-90d3671bda90‘@delete_unused_schedule=1GOAccording to job_id to subplan_id:select subplan_id FROM msdb.dbo.sysmaintplan_subplans where job_id=‘588acfb8-630b-41c3-aa47-90d3671bda90‘subplan_idFE56B397-4704-4AA7-BE49-767C1574E7D0Remove subplan_id from system tables Msdb.dbo.sys
Hello everyone, long time no blog, recently in the deployment of the site, you need to write the console module is deployed to the server.However, Windows comes with the Task Scheduler is not enough, before the company has been developed gerneralservicehost, that is, a managed service program, unfortunately no source, then write a!Characteristics:
Specify an executable file as a task, you can manage this task to do additions and deletions
Specifies how the task runs, can be run peri
Maintenance statement
DBCC dbreindex rebuilding one or more indexes of a table in the specified databaseDBCC dbrepair remove corrupted DatabaseDBCC indexdefrag sorts out clustered indexes and secondary index fragments of a specified table or view.DBCC shrinkdatabase: shrink the data file size in the specified databaseDBCC shrinkfile: compresses the specified data file or log file size of the relevant databaseDBCC updateusage reports and corrects inc
, @level0type = N ' SCHEMA ', @level0name = n ' dbo ', @l Evel1type = N ' TABLE ', @level1name = @tableName;
END
ELSE
BEGIN--Modify
EXEC [SYS]. [Sp_updateextendedproperty] @name = n ' ms_description ', @value = @tableDesc, @level0type = N ' SCHEMA ', @level0name = n ' dbo ', @level1type = N ' TABLE ', @level1name = @tableName;
END
GO
2, fill in paragraph description
Select the table you want to set, right-click on "Design"
3
=" Wkiom1xqo3yi7ryjaarcoi8nre4327.jpg "/>You can also get some useful information using the task Manager below.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/71/wKioL1XQpYaxrCtnAAYdSZVabKM457.jpg "style=" float: none; "title=" 2015-08-15_002046.png "alt=" Wkiol1xqpyaxrctnaaydszvabkm457.jpg "/>650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/75/wKiom1XQo32Tu7JSAANcxGRONao995.jpg "style=" float: none; "title=" 2015-08-15_002105.png "alt=" Wkiom1xqo32tu7jsaancxgronao995.
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.