Sys.dm_os_sys_info bpool_commited bpool_visible
BOL states:bpool_commited The total number of buffers with pages that have associated memory. This does not include virtual memory. --Here no doubt, Sql server Physical memory consumptionbpool_visible...
View ArticleCheckpoint on Readonly db
1) Are there checkpoints issued on Readonly database as there's no modification done?2) Internal Sql 2008 book....." most writing to disk doesn’t actually happen during checkpoint operations....
View ArticleSQL 2012 SP1 system_health security_error_ring_buffer_recorded Events
Hello,I recenlty upgraded My SQL 2005 server to SQL 2012 SP1. The system_health in Extended Events is now continuously reporting the event listed below.After upgrading to SQL 2012 SP1 I installed a...
View ArticleSQL 2012 database stuck in Recovery Pending status
Hey all. Thanks in advance to anybody that can please help me. I have a SQL cluster which ran out of disk the other day. I threw plenty more disk at the SAN. However, 1 of the databases came back...
View ArticleHow The Query display the resul
HI ALL,How the query give the result.select * from BranchTable data isDENABANK1 1900-01-01 00:00:00.000 ANDHRABANK2 1900-01-01 00:00:00.000 ICICIBANK 3 1900-01-01 00:00:00.00--1--declare...
View ArticleBlob data pages have a lot of unused space.
I have a table with blob data that has a truckload of unused space that I can't get rid of. SELECT * FROM sys.dm_db_index_physical_stats (DB_ID(N'Test_dbname'), OBJECT_ID(N'tableName'), NULL, NULL...
View ArticleRunning DTS package through job in SQL Server 2008
Hi,I have imported DTS packages from SQL Server 2000 to 2008. Under Management-Legacy they show there. I already changed connection strings before importing. I want to run these dts packages through...
View ArticleSliding Window Partition Left Range
Hi All,I am in a tight time line and need some help to achieve it.below is the senario1. Create Database CREATE DATABASE [SPICA] CONTAINMENT = NONE ON PRIMARY ( NAME = N'SPICA', FILENAME =...
View ArticleUpdating many statistics on the same table quickly.
We have a table which has close to 400 columns, about 950 million rows and 3400+ partitions. There are 4 statistics created with indexes and another 40+ column statistics. When I tried updating all...
View ArticleSQL Server Agent Schedule Job to run every 3 months
I am trying to create a schedule for a job to run on the 8th day every 3 months. However, when i look at the Job Activity Monitor, the "next run" column shows the job as running the 8th day of the...
View ArticleQuestion about how to resolve SQL Event ID 833 SQl Server
Hello all,I work in an environment where we get a lot of the SQL error-event id 833. SQL server has encountered a number of I\O requests taking a long time to complete. I also notice that the...
View Articlesys.dm_os_wait_stats
Sometimes i had problem with slow working of sql server.After reading some article i find about running sys.dm_os_wait_stats. In my sql server i ran query select * fromsys.dm_os_wait_stats order by...
View ArticleSQL-Server 2008 memory
Hello,i need to limit the memory of the sql-server. I configured the needed limit in the management studio but after one day the sql-server uses the complete memory again. We have to run an other...
View ArticleClustered index on a varbinary column
Hi,I just wanted to ask if there are any consequences to using a varbinary(120) column on a table and having a clustered index on it. How does this affect inserts etc.This column is used in a checksum...
View ArticleInserts taking longer time
Hello,I am noticing that the inserts are slow on our production. I started a sql profiler trace to see which inserts are taking longer time to complete. A bunch of inserts appear to complete around 700...
View ArticleSQL Server Maintenance Plan on a Network Drive
Hi,I am using SQL Server 2008 R2 and trying to do Maintenance Plan for database backup on a network drive.The network drive is based on CIFS that required us to login with username and password. I am...
View ArticleSQL Server 2012 Diagnostic Information Queries by Glenn Berry (updated...
http://dl.dropbox.com/u/13748067/SQL%20Server%202012%20%20Diagnostic%20Information%20Queries%20%28January%202013%29.sqlThank you Glenn Berry!Frank Garcia
View ArticleHow to get the command text in a trigger that cause the update?
Hi AllI create a update trigger for a table, if the specific column is updated, my trigger will save the old value, new value and the sql statement to another table, now old value and new value is in...
View ArticleWhy SQL Database files ware called Virtual File
Hi,Why SQL Database files ware called "Virtual File". Like sys.dm_io_virtual_file_stats - defination of this DMV is "Returns I/O statistics for data and log files. This dynamic management view replaces...
View ArticleMaintenance Plan authentication issue after AD Migration
We have a Windows 2003 server running SQL Server 2005 that was provided to us pre-configured by our point of sale system provider. We had to move this server manually from an NT4 domain to an Active...
View Article