Many friends have a headache for the publisher after writing a SQL Server based program, because it's not enough to just publish applications and BDE, you have to install SQL Server client software, do you want to provide a CD-ROM for SQL Server?
The script executes at the Distributor! I use it primarily to monitor replication. Here is a case, for reference only! Modify the relevant parameters according to the actual situation
/*Description: command is used to monitor replication performance
Often use the statement!
--Bulk Export Orders table: Insert
DBCC dropcleanbuffers
DBCC Freeproccache
Go
SET NOCOUNT on
BEGIN TRANSACTION
INSERT into test.dbo.orders with (TABLOCK) SELECT * FROM
Bak.dbo.Orders
WHERE ordertime BETWEEN ' 2010-0
Exact number Type
Decimal[(p[, S])] and numeric[(p[, S]) are also referred to as numeric data types with fixed precision and decimal numbers.
Fixed precision and number of decimal places. When using maximum precision, valid values are from-10^38
This backup and restore topic is associated with all SQL Server databases.
A differential backup is based on the most recent full data backup. A differential backup captures only data that has changed since the full backup. The full backup on which
In SQL Server, the usual version number is named a large version. Iteration update this form, such as 9.X.XXX, is SQL Server 2005. I'll make a list of versions in SQL Server that correspond to the version number for easy access.
SQL Server 2005
Microsoft SQL Server 2008 Reporting Service provides a fully server-based platform to support, as well as an entire enterprise reporting lifecycle, enabling businesses to send relevant information to where they need it within the enterprise ...
The last three versions of SQL Server have been labeled with unofficial labels, each of which is tailored to the user base that most of the new features are targeting. For example, SQL Server 2005 is considered to be a developer-oriented version,
1. Install the latest service pack
One of the most effective ways to improve server security is to upgrade to SQL Server Service Pack 3a (SP3a). In addition, you should also install all published security updates.
2. Use the Microsoft Baseline
In the process of using the database, due to power outages or other reasons, there may be some small errors in the database, such as the retrieval of some tables is particularly slow, the query does not meet the conditions of the data.
These
In the application system, especially in the online transaction processing system, the data query and processing speed has become the standard to measure the success or failure of the application system. And the use of index to speed up data
After all Component Services are set up, Microsoft's unified Installation Statistics collection option, which is part of Microsoft's Experience Improvement Program, is to optimize the installation interface by collecting error messages and user
1. Introduction
The except and INTERSECT operators allow you to compare the results of two or more SELECT statements and return values that are not duplicates.
2. Differences
The except operator returns all the distinct values returned by the
Because Access does not really serve high-performance applications, a site that wants to have multiple simultaneous users must deploy a data source that is more appropriate than access. This article describes how to get data from Microsoft SQL
When the log file is full and the SQL database cannot write to the file, there are two methods available:
The first method: empty the log.
1. Open Query Analyzer, enter command
The following is a reference fragment:DUMP TRANSACTION database name
When doing a project to get a only 280M database backup, but in SQL Server 2000 recovery when waiting for a long time did not recover complete, it is incredible, so suspect there is something fishy. To the data file directory next look, sure enough
Recently due to work needs, I hope that a more comprehensive summary of SQL Server database performance optimization related considerations, search on the internet, found a lot of articles, and some are listed hundreds, but look at the discovery,
--Reference
Compress log and database file size
/*--Matters needing attention
Follow the steps, do not follow the steps, or you may damage your database.
Generally do not recommend to do 4th, 62 steps.
The 4th step is unsafe, and it is possible
Adding, deleting, or modifying the object of the database, once it is wrong, can cause a lot of trouble, requiring a database administrator or developer to rewrite code for related entities that might be affected.
In order to be able to track the
Follow the steps to avoid damaging your database if you do not follow the previous steps.
Generally do not recommend to do 4th, 62 steps, 4th step unsafe, it is possible to damage the database or loss of data. 6th step if the log reaches the upper
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.