Forum Replies Created

Viewing 15 posts - 31 through 45 (of 286 total)

  • RE: CPU Usage

    Add sys.dm_exec_requests and sys.dm_exec_sessions to the query. Something like this:

    SELECT TOP 50 a.*,

    (SELECT SUBSTRING(text, statement_start_offset/2 + 1,

    (CASE WHEN statement_end_offset = -1

    THEN LEN(CONVERT(nvarchar(max), text)) * 2

    ELSE statement_end_offset

    END - statement_start_offset)/2)

    FROM...

  • RE: documentation

    Here is what I document:

    1) SQL Server inventory (servers, versions, editions, service accounts, SQL Sever services on each server, number and name of named instances)

    2) Hardware configuration (RAID levels, where...

  • RE: Can't add permissions to table

    Try to use different tools than TOAD for start (for example sqlcmd or SQL Server Management Studio) and see if it works.

  • RE: CPU Usage

    Use DMV for this:

    SELECT TOP 50

    SUM(qs.total_worker_time) AS total_cpu_time,

    SUM(qs.execution_count) AS total_execution_count,

    COUNT(*)...

  • RE: Stop the job script

    Good point.

    You can split your job to several jobs as one of the options. Run separate jobs for different databases or large tables.

    Also, try to review jobs schedules. Reindex...

  • RE: TOTAL SIZE OF A ROW IN A TABLE

    If this will be useful - keep in mind that when you use NVARCHAR or NCHAR data types in will take almost twice more space than VARCHAR and CHAR.

  • RE: SQL Server has encountered 86008 occurrence(s) of I/O requests taking longer than 15 seconds to complete on file.

    We had these errors for a while (in most cases when Index rebuild or reorganize jobs were running). SQL Server was installed on Windows 2003 64 bit, database files on...

  • RE: Stop the job script

    You can use sp_help_job @execution_status = 0. This will return list of jobs that currently run. Save results to the Temp table and then stop jobs one by one with...

  • RE: Tables in memory

    David Benoit (2/17/2011)


    magasvs (2/17/2011)


    You can find cache size for the objects with this query:

    Nice! Did you write this or did you find it somewhere? I started writing something like this...

  • RE: Tables in memory

    You can find cache size for the objects with this query:

    SELECT db_name(database_id) dbname,page_type,

    SUM(CASE WHEN ([is_modified] = 1) THEN 1 ELSE 0 END) AS DirtyPageCount,

    SUM(CASE WHEN ([is_modified] = 1)...

  • RE: How to get details about an SQL Trace

    You can check SQL Server logs. When trace started SQL Server logs event: "SQL Trace ID 3 was started by login NNN". The same message has SPID for the process...

  • RE: Maintenance plan and jobs keep failing

    Can you run package from command line using dtexec?

  • RE: SSMS 2008 tools for DB with compatibility level set to 2000

    Run SQL Server Profiler. Change compatibility level for the database to 2008. Run you reports using GUI. Go back to Profiler and find the query. Do it for your all...

  • RE: Maintenance plan and jobs keep failing

    This article has description of this bug in SQL 2005. May be it will be helpful to you as well.

    http://support.microsoft.com/kb/918038

  • RE: exlain the relation between sysxlogins and syslogins

    Sysxlogins is system table that existed in master database. Syslogins is view based on this table. Sysxlogins table doesn't exist in SQL Server 2005 any more.

Viewing 15 posts - 31 through 45 (of 286 total)