SQL Express 2008-2016 Sometimes HAVE to shrink to get under the 10 gig limit
Some of our client use Express, if they filled the database we always "shrank" the database. then I read in a forum that after a shrink I should rebuild the indexes. I have seen when doing that it...
View ArticleOrder of columns in an index
Hi, I have a table with columns, FirstName, Middle Name and Last Name. the clustered index is on (FirstName, MiddleName ,LastName). When i run the a query: Select * from table where LastName='cccc'...
View ArticleHow to get number of open cursors in MSSQL?
Hi I'm bit new to SQL Server. Is there any way to get number of client cursors opened on a DB Server.Thanks Manoranjan
View ArticleI cannot drop a database
Dear all,I've checked by using dm_exec_sessions and dm_exec_connections and nothing is opened.No Sql Server Agent jobs against this database.I've stopped services as well. Nothing.No data collections...
View ArticleDeadlocks: How do I avoid them in this scenario?
I have a WCF process that executes continually 24/7 importing data from a hosted environment to a local mssql 2012 server. One of the things that occurs within this process is that the incoming XML is...
View ArticleHow long does a select hold a SCH-S lock?
Here's a situation.A perfectly normal select statement finds maybe 20,000 rows to return to the client, but is apparently held up with ASYNC_NETWORK_IO waits. It's in an SP, it's running read...
View ArticleData file is restoring, log file is online?
Hi All,This is my first time seeing this, data file is in restoring, and log file is in online, have you seen this? Do you know how it end up like this?
View ArticleSQL Server 2012 syspolicy_purge_history fails step 3 "Erase Phantom System...
I recently installed SQL Server 2012 Ent (x64). The install is a stand alone default instance.The syspolicy_purge_history job fails on step three with the following error:Executed as user:...
View ArticleSql server 2008 R2 x64 / SSMS : Intermittent Connectivity Issue
I have read almost everything on this topic, applied each proposed solution, checked all conf settings but I am stil stuck with these frequent but intermittent connectivity issues.I moved our databases...
View ArticleHow to disabled interactive logon for MS SQL service account?
Hi How do you prevent interactive logon for service accounts created in MSSQL 2005? Any advice provided is highly appreciated.Regards,San San
View ArticleCannot shrink log file because all logical log files are in use
SQL 2005 9.0.2153 EE EnglishDatabase has recovery model = FullI have job which is executed at night time. It executes these main tasks (in order of execution)1. Renames transaction log backup of...
View ArticleColumnstore - Optimization Question
Hello, I am trying to query a columnstore table and it looks like the query optimizer - as part of optimzation - is trying to scan all the rows first and then apply the filter. Unfortunately, this is...
View ArticleError 30063 - SQL Server could not set fdhost.exe process to 65535 because...
When starting up SQL Server 2012 (11.0.5634 enterprise edition) the below two lines get logged in the errorlog.2015-10-22 23:25:15.770 spid17s A new instance of the full-text filter daemon host process...
View ArticleLog Buffer and Flushing Time
Hi all,I read in documents that Log Buffer is 60KB and when you commit a transaction or 60KB is filled due to heavy transaction, its contents is written to disk.For the test purpose, I created very...
View Article.Net server explorer error
hello, when I tried to install x86 shared objects ,I got error Installation of microsoft sql server 2012 management objects failed because higher version already exists on the machine.To...
View ArticleHow to transfer a database from one collation to another collation in SQL Server
I am looking for an updated KB article of https://support.microsoft.com/en-us/kb/325335. This article is for SQL server 7.0 - SQL Server 2005. Is there anything for 2008R2 and above?Thank you
View ArticleCHECKSUM
Hi experts,I never seen this before, and I wanted to know if it really makes a difference?In the merge I usually do:merge..when matched andtarget.column <> source.columnBut I have some legacy...
View ArticleAVG Admin SQL issue
Every time I try to set Admin up using SQL I receive the message shown in the attachment. We have to use SQL due to the number of users we have. There ae other applications on this server that use SQl...
View ArticleOne of the two instance of sql server 2014 is using only few megabytes of...
Hello , issue description: We have Virtual Win Server 2012 R2 with two SQL Server Instances 2014. Is anybody face such a situation that when there are two instance of SQL server 2014 for one of them...
View Articlehow to open deadlock graph in big format (XDL files)
The deadlock is too big and when i opening in management studio.its opening in very small format.Could anyone help.Thanks
View Article