http://technet.microsoft.com/en-us/library/ms189631.aspx
http://www.sql-server-performance.com/articles/audit/2005_server_configuration_pt1_p1.aspx
Adding fuel to my passion on SQL Server
SELECT name, SUSER_SNAME(sid)
FROM master.dbo.sysdatabases
WHERE SUSER_SNAME(sid) IS NULL2) Execute
sp_changedbowner 'sa'
Powered by ScribeFire.
To find out if your operating system is 64bit or 32bit, open a
command prompt and type "SET Processor" <enter>. This will show
you all the environment variables that start with PROCESSOR. For
example, if your operating system is 64bit, whether AMD or Intel eith
EM64T extensions, you'll see:
PROCESSOR_ARCHITECTURE=AMD64
On an Intel Itanium you would see:
PROCESSOR_ARCHITECTURE=IA64
Powered by ScribeFire.
SET OPTION considerations when running DBCC with indexes on computed columns
Error Message:
[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 1934: [Microsoft][ODBC SQL Server Driver][SQL Server]DBCC failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER, ARITHABORT'.
Also refer KB: http://support.microsoft.com/kb/902388/en-us
Powered by ScribeFire.
Performance Audit Checklist
Counter Name Average Minimum Maximum Memory: Pages/sec Memory: Available Bytes Physical Disk: % Disk time Physical Disk: Avg. Disk Queue Length Processor: % Processor Time System: Processor Queue Length SQL Server Buffer: Buffer Cache Hit Ratio SQL Server General: User Connections
Powered by ScribeFire.
Faced this problem today on Windows 2000 Advanced server with SP4.
Just followed as advised on the KB# 555496, it resolved the problem.
Powered by ScribeFire.
Server-side tracing is the process of having your SQL Server machine save events to a physical file on that machine without using the Profiler client tool. Server-side tracing is enabled and controlled by using SQL Server system-supplied stored procedures and functions. With these system-supplied processes, you can identify what to trace, when to start and stop tracing, what traces are running, and view trace information stored in the trace file.
Here is how you view the number of traces currently running:
SELECT count(*) FROM :: fn_trace_getinfo(default)
WHERE property = 5 and value = 1
Here is how you can find more detail about the running traces:
SELECT * FROM :: fn_trace_getinfo(default)
You can terminate a trace with the 'sp_trace_setstatus' stored procedure using the traceid:
EXEC sp_trace_setstatus 1, @status = 0
EXEC sp_trace_setstatus 1, @status = 2
setting the status to 0 stops the trace
setting the status to 2 closes the trace and deletes its definition from the server
Powered by ScribeFire.
sp_reassign_dtspackageowner
powered by performancing firefox
PERFORMANCE
http://www.microsoft.com/technet/prodtechnol/sql/2005/tsprfprb.mspx Troubleshooting Performance Problems in SQL Server 2005
http://www.microsoft.com/technet/prodtechnol/sql/2005/recomp.mspx Batch Compilation, Recompilation, and Plan Caching Issues in SQL Server 2005
http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/performance_tuning_waits_queues.mspx SQL Server 2005 Waits and Queues
DEADLOCKS
http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/05/617960.aspx Troubleshooting deadlocks in SQL2005
CONNECTIVITY
http://blogs.msdn.com/sql_protocols/archive/2005/10/22/sql-server-2005-connectivity-issue-troubleshoot-part-i.aspx SQL Server 2005 Connectivity Issue Troubleshoot - Part I
http://blogs.msdn.com/sql_protocols/archive/2005/10/29/486861.aspx Troubleshoot Connectivity Issue in SQL Server 2005 - Part II
http://blogs.msdn.com/sql_protocols/archive/2005/12/22/506607.aspx Troubleshoot Connectivity Issue in SQL Server 2005 - Part III
http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx Understanding Kerberos and NTLM authentication in SQL Server Connections
START UP FAILURE
http://blogs.msdn.com/sql_protocols/archive/2006/04/28/585835.aspx Error Messages of SQL Server 2005 Start Up Failure
DATA RECOVERY
http://blogs.msdn.com/sqlserverstorageengine/archive/2006/06/18/636105.aspx Emergency mode repair
http://blogs.msdn.com/sqlserverstorageengine/archive/tags/DBCC+CHECKDB+Series/default.aspx DBCC CHECKDB Series
INDEXES
http://www.microsoft.com/technet/technetmag/issues/2007/03/SQLIndex/?related=/technet/technetmag/issues/2007/03/SQLIndex New Tools to Diagnose Index Health
http://www.microsoft.com/technet/technetmag/issues/2007/04/SQLQA/default.aspx Rebuilding Indexes, Disk Queue Length, and More
FRAGMENTATION
http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/dbcc_showcontig_improvements.mspx DBCC SHOWCONTIG Improvements in SQL Server 2005 and comparisons to SQL Server 2000
TRANSACTION LOG
http://support.microsoft.com/default.aspx?scid=kb;EN-US;873235 How to stop the transaction log of a SQL Server database from growing unexpectedly
http://support.microsoft.com/default.aspx?scid=kb;EN-US;317375 A transaction log grows unexpectedly or becomes full on a computer that is running SQL Server
MEMORY PRESSURE
http://support.microsoft.com/default.aspx?scid=kb;EN-US;309256 How to troubleshoot SQL Server error 8645
http://support.microsoft.com/default.aspx?scid=kb;EN-US;907877 How to use the DBCC MEMORYSTATUS command to monitor memory usage on SQL Server 2005
TEMPDB
http://www.microsoft.com/technet/prodtechnol/sql/2005/workingwithtempdb.mspx Working with tempdb in SQL Server 2005
http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/tempdb_capacity_planning_index.mspx TEMPDB Capacity Planning and Concurrency Considerations for Index Create and Rebuild
SQLOS - SCHEDULING
http://www.microsoft.com/technet/prodtechnol/sql/2005/diagandcorrecterrs.mspx How To Diagnose and Correct Errors 17883, 17884, 17887, and 17888
BOOKS ONLINE LINKS
http://msdn2.microsoft.com/en-us/library/ms188314.aspx Troubleshooting the Database Engine
http://msdn2.microsoft.com/en-us/library/ms138039.aspx Troubleshooting Integration Services
http://msdn2.microsoft.com/en-us/library/ms159135.aspx Troubleshooting Reporting Services
TOOLS
http://search.live.com/macros/sql_server_user_education/booksonline Link para efectuar uma pesquisa através do live.com nos Books Online
http://msdn2.microsoft.com/en-us/library/ms162833.aspx SQLdiag Utility
http://www.microsoft.com/downloads/details.aspx?familyid=1d3a4a0d-7e0c-4730-8204-e419218c1efc&displaylang=en SQL Server 2005 Performance Dashboard Reports
Nota: Para utilizar esta nova ferramenta é necessário ter previamente instalado no servidor e no cliente o SQL Server 2005 SP2.
http://www.microsoft.com/downloads/details.aspx?familyid=da0531e4-e94c-4991-82fa-f0e3fbd05e63&displaylang=en SQL Server 2005 Best Practices Analyzer (CTP de Fevereiro 2007)
http://blogs.technet.com/beatrice/archive/2007/03/23/sql-server-2005-performance-troubleshooting.aspx SQL Server Profiler + System Performance Monitor
http://sqlblogcasts.com/files/folders/custom_reports/default.aspx Exemplo de um custom Report – TASKPAD view
http://www.microsoft.com/technet/support/ee/ee_advanced.aspx Events and Errors Message Center
http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/default.mspx SQL Server Best Practices
WEBCASTS
Troubleshooting and Performance Tuning
TechNet Webcast: A SQL Server DBA’s Guide to CLR Integration (Level 300)
TechNet Webcast: Performance Diagnosis in SQL Server 2005 (Level 300)
TechNet Webcast: SQL Server 2005 Database Tuning Advisor (Level 300)
TechNet Webcast: SQL Server 2005 Troubleshooting: Supportability Features for SQL 2005 (Level 300)
TechNet Webcast: Troubleshooting Performance Problems in Microsoft SQL Server 2005 (Level 200)
TechNet Webcast: Troubleshooting SQL Server 2005 Integration Services (Level 300)
WHITE PAPERS
Online Indexing Operation in SQL Server 2005
Physical Database Storage Design
Database Mirroring Best Practices and Performance Considerations
SQL Server I/O Basics, Chapter 2
http://www.microsoft.com/sql/techinfo/whitepapers/default.mspx White Papers General
ACTION: Problems with truncating the transaction log even though the
database is not configured for replication.
RESULT: When truncating the transaction log by executing DUMP TRANSACTION db
WITH NO_LOG the following error was generated:
"The log was not truncated because records at the beginning of the log are
pending replication. Ensure the Log Reader Agent is running or use
sp_repldone to mark transactions as distributed."
Also executing sp_repldone then fails stating, "The database is not
published."
CAUSE: The database has been left in an intermediate state where replication log records is still available in the transaction log even though SQL Server does not have publishing enabled, the database is not published and no objects are marked for replication.
RESOLUTION: Enable publishing again and then run sp_repldone and after that remove replication again.
First, enable publishing:
1. In SEM, choose Tools\Create and Manage Publications
2. Select the database whose log we want to shrink and click Create
Publication
3. Select 'Next' on the Create Publication Wizard
4. Choose Yes, use local machine as the distributor, and then click Next
5. Click OK on any messages that might appear warning that SQL Agent is running under the local system account
6. Select Transaction Replication, the click Next
7. Accept No, do not allow immediate-updating subscriptions, and then click Next
8. Accept All subscribers will be servers running SQL Server, then click
Next
9. Click 'Publish All" then click Next
10. Accept the default publication Name and Description, then click Next
11. Accept No, create a publication without data filters, then click Next
12. Click Finish. Enter the 'sa' password if prompted. Click OK, Close,
Close to exit remaining dialog boxes.
Second, clear log of transactions marked for replication:
13. Login to Query Analyzer as 'sa' and open the database who log we want to shrink.
14. Execute "sp_repldone NULL, NULL, 0, 0, 1"
15. Check that this worked using "sp_repltrans". It may take a little time before all the transactions have been marked as distributed.
16. Execute "dump tran with no_log"
17. Confirm that the log file shrank by running "DBCC sqlperf(logspace)". It may take a little time before the % used shows as decreased.
18. Disable publishing through SEM by choosing Tools= />
Publishing= />
powered by performancing firefox
powered by performancing firefox
EXEC sp_addsrvrolemember 'Corporate\HelenS', 'TargetServersRole'