1. The question
The system has a module that needs to query the data in the Oracle database. It is now implemented by establishing a linked server.
SQL Server access Oracle implementation can refer to this article http://www.cnblogs.com/gnielee/archive/2010/09/07/access-oracle-from-sqlserver.html
The current query statement is a simple query with a where condi
than using cursors. If development time permits, a cursor-based approach and a set-based approach can all be tried to see which method works better. 28. Set NOCOUNT on at the beginning of all stored procedures and triggers, set NOCOUNT OFF at the end. You do not need to send a DONE_IN_PROC message to the client after each statement that executes the stored procedure and trigger. 29. Try to avoid large transaction operation and improve the system concurrency ability. When using constraints and t
to archive, partition, table sharding, etc)
Software System (operating system optimization, database system configuration, resource planning and monitoring, etc)
Hardware infrastructure (Device specifications, hardware performance, Server Load balancer, Disaster Tolerance, etc)
SQL statement writing, indexing and statistics, transactions and locks, application a
SQL Server database performance optimization http://www.blogjava.net/allen-zhe/archive/2010/07/23/326927.htmlRecent project needs, did a period of time SQL Server performance optimization, encountered some problems, but also accum
When we want to count the total number of records in a datasheet, we use the T-SQL function count (*). If this function is executed in a large table containing millions of rows, it can take a long time to return the total number of records in the entire table, which results in a decrease in query performance.
First, the general approach: using the count () function
Each database administrator knows how to
In the last 3 articles, we discussed a list of different queries that reflect the current state of the server.
Initial SQL Server performance issues (1/4): Server overview
Initial SQL
] ')This allows you to see the foreign keys in the SalesOrder table (if any)But if so, I do not have to query every table, Google to find a solution, with a SQL statement to do all, as follows:--using Sysreferences--Delete foreign keyDECLARE @SQL VARCHAR( -)DECLARECur_fkCURSORLOCAL forSELECT 'ALTER TABLE ['+ object_name(Fkeyid)+ '] Drop constraint' + object_name(ConstID) fromsysreferences--Delete all foreig
can specify whether the event can be "lost". This means that if there is not enough memory to buffer an event, it can be discarded directly. The default setting is to allow a single event to be discarded, but you can also allow the entire event buffer to be lost (for sessions where the event buffer is quickly filled up), or even to specify that no events should be lost.You should take extra care when using the last option, because it forces the code that fires the event to wait until there is e
fragmentation has occurred? Execute the following SQL statements in your database. (Sql2005 or earlier database, replace the database name "adventureworks") Select object_name (DT. object_id) tablename, Si. nameindexname, DT. avg_fragmentation_in_percent asexternalfragmentation, DT. avg_page_space_used_in_percent asinternalfragmentationfrom (select object_id, index_id, avg_fragmentation_in_percent, avg_page_space_used_in_percent from sys. dm_db_index
Permission management is involved in program development. The system uses an integer to record user permissions. The permission level is set:
Level1
1
Level2
2
Level3
4
Level4
8
Level5
16
Level6
31
Level7
32
Level8
64
Level9
127
Level10
128
Level11
255
Level12
65535
In the database, if a user A has a permission level of 1, his three
Tags: max des from work query optimization select Run ASE Query1. Import trace files, such as duration >5000ms, collected by SQL Server profile into the sample table analysis or with the query optimizer advisor 2. You can use the DMV dynamic management view to query analysis SQL Server
system into multiple nodes, each node's processor can only access its own local resources, is a completely unshared architecture. Data exchange between nodes requires software implementation. Its advantage is that scalability is very good, the disadvantage is that data exchange difficulties with each other, the need to control a lot of software work to achieve communication and task allocation, scheduling, for the general enterprise applications is too complex, inefficient.
NUMA (non-uniform
Transferred from: http://www.cnblogs.com/MR_ke/archive/2010/08/25/1807856.htmlSQL 2005 Performance TuningSQL Server runs for a period of time, and as data accumulates, SQL runs less efficiently, and in order to use business system normal actions, IT departments often need to spend a high price on SQL tuning experts to
uses the pubs database.
SELECT au_id, au_lname, au_fname from authors
WHERE au_lname = ' White ' the index established on the following columns will be useful for the optimizer
au_lname
au_lname, au_fname The indexes built on the following columns will not work well for the optimizer
Au_address
au_fname, au_lname consider using narrow indexes on one or two columns, narrow indexes are more efficient than multiple indexes and composite indexes. With a narrow index, there will be more rows a
Some common performance problems in SQL Server:
1. When optimizing the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.
2. Try to avoid using left join and null values. Left join consumes more resources than inner join because it contains data that matches null (non-existent) data. Therefore, y
Http://blog.csdn.net/tuoxie5431/archive/2010/01/19/5214010.aspx
When executing SQL queries, the main bottlenecks are: CPU computing speed, memory cache size, and disk Io speed. For queries of large data volumes, the bottleneck is generally concentrated on disk Io and memory cache. In order to improve the efficiency of SQL queries, we need to minimize the number of data entries designed for queries-create a
The person who writes the program often needs to analyze whether the SQL statement that has been written has been optimized, and how fast the server responds, this time it needs to use the statistics state value of SQL to view it. by setting statistics we can view the system situation when executing SQL. The options ar
Label:Database for SQL Server to do performance testing, in the Internet to find a lot of is introduced RML utilities, at that time on the Internet to see some other people's test results, feel this tool is magical, so dark determination must take the tool master, the next time to introduce my RML Utilities the way to study.The first step: Learning
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.