Defragging database on SAN storage
HelloWe have a 4TB SQL 2005 database which has a MDF and LDF file on SAN storage. We have a defragging sql job which takes 8-9 hours.I have read several posts which says if the database is on SAN we...
View ArticleCheck scheduler_id's for parrallel queries using Extended Events
Hi,we followed the rule to set the maxdop = numer of schedulers per NUMA node. I now want to check how often parallel queries can use different schedulers within the same NUMA node. Following scripts...
View Articlewhy when assgin null value to a variable, you select the variable the value...
declare @var varchar(max)set @var='1'select @var=vars from ( select '2' as vars) ct where 1=4select @varthe result is that "select @var equaly select 1" Hope is a good thing.Maybe the best of things
View ArticleThere was an error setting private property 'RequireKerberos' to value '1'...
Hi, I am trying to setup sql cluster on 2008 R2 Machine and its falling with the below error message.There was an error setting private property 'RequireKerberos' to value '1' for resource 'SQL Network...
View ArticleCorrelate query to missing index
Hi all,The following query is returning unexpected results on my server:SELECT mig.*, statement AS table_name, mid.equality_columns, mid.inequality_columns, mid.included_columns, user_seeks *...
View ArticleHow to find unused logins in SQL Server 2008?
Hi,Is there any way to find unused logins in sql server 2008.Regards,SivaSivaG:Please Marked as Answered, if it resolves your issue.
View ArticleTypical Alerts to setup to monitor system resources?
I want to set up an alert to notify me when our DB server starts runs into trouble due to low memory.I was wondering what some of the typical Alert configurations other DBA's use to keep an eye on...
View ArticlePage Life Expectancy
My boss wants to cut down on the RAM that is being allocated to our virtual sql servers wherever possible. The problem is that you cannot say that sql server is not using any memory as it will of...
View ArticleRestore Database Failed
I think this post belongs to the SQL Database Engine Forum since we are focusing on what the Restore Command is doing. Here is the situation I am in.I have a ssis package which restores database from...
View ArticleConsistency Error, tried with DBCC checktable ('Table...
Consistency Error, tried with DBCC checktable ('Table name', REPARI_ALLOW_DAT_LOSS) not able repair this error Problem remains same . The CREATE UNIQUE INDEX statement terminated because a...
View ArticleMoving to proprietary database. Advice earnestly seeked!
I very much appreciate any help I can get for this. Thank you in advance for your time to read and hopefully respond.I work for a national/government health service. In this country there exists a new...
View ArticleTempDB growth and huge reads
I am working on a report query generated by COGNOS. This report when run sumetimes bloats the tempdb to 100+GB filling the disk space, this is on a read-only logshipped database. The query takes almost...
View ArticleSQL Server Connectivity Issue
I am able to connect the server but not to the SSMS. getting the below error:"The client was unable to establish a connection because of an error during connection initialization process before login....
View ArticleSQL server backup for 3 months only.
Hi all,I have database which having data across last four year.Now I need to take a backup of only last 3 or 6 months data.PLease let me know how can take only 3 or 6 month backup instead of...
View ArticleHow to connect different SQL servers without using linked server connection...
Hi,We're trying to read data from another SQL Server through our SQL server but we're not allowed to do that using Linked Servers. Please suggest an alternative here as the DBA says Linked Servers are...
View ArticleThe client was unable to reuse a session with SPID XX, which had been reset...
Hello,We have a recurring problem with one of our MS SQL Servers (Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64) ). The error message from the applicatoion log: Event Type: Error Event Source:...
View ArticleTransactionScope locks table in SQL Server
Hello, I need a little help with a big problem. In my application I need open a Transaction to SQL Server 2005 and call a stored procedure that returns a result set. But executing some stored...
View ArticleProcedure within the merge
My scenarioMERGE Books USING ( SELECT MAX(BookId) BookId, Title, MAX(Author) Author, MAX(ISBN) ISBN, MAX(Pages) Pages FROM Books GROUP BY Title ) MergeData ON Books.BookId = MergeData.BookId WHEN...
View ArticleMaster db restored and services not started
I have restored master database in single user mode .After that when i tried to restart sqlserver i got below error.What is the solution?2013-07-19 17:42:24.64 Server Microsoft SQL Server 2008 R2...
View Article