'Attach' and 'Attach_rebuild_log' clause confusion in create database
I think I am having some confusion over 'Attach' and 'Attach_Rebuild_log' clauses : BOL says" In contrast, for a read-only database, the log cannot be rebuilt because the primary file cannot be...
View ArticleCL Index columns in NONCL index
HiRecently I come across an index structure where, cl index column are used in non clustered index. Is there any benefit, is this a good index design practice. Please see the image bellowVVTPlease mark...
View ArticleFixed Server Role Auditing in SQL SERVER 2005
Hi Expterts, I have a requirement to keep track of fixed role grants and revoke to users on one of the instance in sql server 2005. I already deployed a ddl trigger to do this on 2008 instance but the...
View ArticleSQL server 2012 slow performance
Hello.I have an SQL server 2012 running on a 32-core IBM machine with a database having 100M rows in a few tables with a couple of columns in each table. The queries performed well with 100%...
View ArticleSQL 2012 SP1 - SSIS Server Maintenance Job poor performance.
I'm using SSIS 2012 on SQL 2012 SP1 and the performance of the SSIS Server Maintenance Job is abysmal. It's been running for 10 days and has still not completed. Worse still it is blocking the other...
View ArticleCannot connect to SQL Server
Error trying to connect SQL Servertimeout expired. the timeout period elapsed prior to completion of the operation or the server is not respondingError while trying to Execute a procedure from Stored...
View ArticleSQL Server Management Studio requirements
Dear,what is the requirement to install SQL Server Managemnt Studio?? will need previously install other components ?Thank youbest regards
View ArticleODBC ERROR: State = 40001 Error = Transaction ( Process ID 235) was...
I am getting below Error, when i am trying insert data from third party applications to SQL Tables by ODBC ConnectionODBC ERROR: State = 40001 Error = Transaction ( Process ID 235) was deadlocked on...
View ArticleDBCC Fails when there are spatial data types and too many Rows
I have found an interesting issue while running DBCC on tables that contain a geometry data type. If I have more than 884500 rows, no matter the number of columns, I receive the following error:Msg...
View ArticleDiscrepancy between sys.dm_os_memory_clerks & sys.dm_exec_cached_plans
There seems to be a discrepancy between the amounts reported in sys.dm_os_memory_clerks & sys.dm_exec_cached_plans.The below 2 queries produce 2 very different amounts --Query 1 - Shows 1171MB...
View ArticleMS sql server 2008R2(RTM) STD 64 bit, Temp db size is increasing continuously
Hi All MS sql server 2008R2(RTM) STD 64 bit, Temp db size is increasing continuously but not releasing the used up space , please suggest us what is the problem with temp db ? I have executed below...
View ArticleMaintenance plans to keep a development server cleaned up
For a development server, what kind of maintenance plans would be a good idea to have in place?I've started with one to cleanup the indexes and rebuild the statistics.However, I realized that my log...
View Articlequery on one particular table is taking too long - how to find the culprit
Sometimes when I query a particular table it takes forever to return, other times its fast.When this slowdown occurs, or even afterwards, what are some good ways to find the culprit by hitting the sys...
View Articleazman + SQL Server 2008 : Access Denied
Hi,I am trying to create a new Authorization store with Azman with SQL Server 2008 R2 on Windows Server 2008 Server machine. However, when i try to do that, i get an error from Azman : "Can not create...
View ArticleTemp db size is increasing not releasing space
Hi All MS sql server 2008R2(RTM) STD 64 bit, Temp db size is continuously increasing not releasing used up space , please suggest us what is the problem with my temp db ? i executed below query ,...
View ArticleHow is it my table has two heaps?
Hi Everybody,We have a heap table 142 records in it. There are no non-clustered indexes on this heap. Oddly, I'm getting two rows returned from sys.dm_db_index_physical_stats, and each row reports...
View ArticleAffinity Mask Error
Hi,I have a SQL 2005 server which is generating this error:The affinity mask specified does not match the CPU mask on this system.It will do this on any sp_configure change. It is stopping me making an...
View ArticleMaintenance plan failing on index rebuilding.
I've created a maintenance plan with the wizard to check integrity then rebuild all the indexes in the database. When it runs it fails. It goes through data integrity okay, but starts to build 4...
View ArticleHow to install SQL Service pack automatically in 100+ servers?
I have around 100+ SQL servers (2005/2008) in my environment. I need to install service pack. I don't want to install service pack manually in 100+ servers. Is there any way I can install service pack...
View Article