tempdb won't shrink
SQL 2008 R2 We’ve been on SQL 2008 R2 for about a year and have had zero tempdb problems. SQL does a good job of managing its size, until now. Tempdb is configured with 8 data files and 1 log file....
View Articletotal drives capacity inforamtion
hi,We have cluster set up active and passive nodes here active node allowing only 2 remote connections, those two remote connections are full I am unable to accessing the server.Here client asking me...
View ArticleQuery Timeout expired
Dear All, I am having a serious problem. I have a system running in VB6 and SQL 2008 in the backend. It was running smooth for last three years. But for last three months all on a sudden I am facing a...
View ArticleSQL 2012 SP1 - How to determine a query that causes Error 8623 in SQL Log:...
We are getting multiple 8623 Errors in SQL Log while running Vendor's software.How can you catch which Query causes the error?I tried to catch it using SQL Profiler Trace but it doesn't show which...
View ArticleSQL Server 2012 Always On Availability Issue
Hi,SQL Server 2012 EE with SP1 - Windows 2008 R2 EE.I am trying to setup SQL Server 2012 Always on Availability Groups - HADR. I am testing this on a 3 node cluster but all nodes are in the same...
View ArticleUsing PowerShell to Reset Credentials Services Use to Login
I have to come up with a way to reset all the sql server credentials on our domain. I realize PowerShell is great for this type of change, I havn't had the opportunity to learn it and now I have a...
View ArticleSQL server is Running Very Slow
hi, I used this following query for finding out how many connection are connected, it is showing that 70 connections,my ram is 16GB, but still my sql server is running very slow. how can i increase my...
View ArticleSQL Server Memory
Hi All,I am not sure if this is a fair ask or no but this is something i want to learn much internals about sql server memory and how sql server responds to memory pressure and i wanted to see that...
View ArticleMoving the log file of a publisher database SQL Server 2008
There are many threads on this here. Most of them not at all helpful and some of them wrong. Thus a fresh post.This post regards SQL Server 2008 (10.0.5841)The PUBLISHER database primary log file which...
View ArticleStrange problem when updating database
I have an odd problem with a small application that is written in VB.NET, reading from and updating an SQL Express 2012 server. The app pulls a datareader from a view and then loops through it and...
View ArticleBackup maintenance plan not working on remote drive -SQLServer 2008 r2
We are using SQL Server 2008. We have a maintenance plan for data backup which places backups on local and remote drives.We are getting error while specifying remote drive.Regards,Salman
View Articlewhat permission is needed for a login to access the restored database(backup...
what permission is needed for a login to access the restored database(backup from different server)frequently reach the situation, when vendor restores a database, but he cannot access it unless I...
View ArticleResult to Text : Spaces
hi~ I am writing a query to result to text:select db_name(dbid),dbid from sys.sysprocesses but there is alot of spaces after the column of db_name...how to trim them ??
View ArticleTemp DB is full in Production server
Hi,Temp Db is full, what we have to do.ThanksShashikala
View ArticleUnexpectedly error - ex_handle_except encountered exception C0000005 - Server...
Hi Guys,I've faced an unexpected error in my test and production environment. The SQL Server was shutdown and it was created a dump file with the follow information:* BEGIN STACK DUMP:...
View Article2012: disable/enable(rebuild) index. Why are compression settings lost?
I noticed this a few versions ago and just verified that it's still the case on 2012; disabling an index and issuing a rebuild (alter index <index> on <table> rebuild) causes some set...
View Articlesysindexes states that sys.sysrscols contains 50 million rows. How to free up...
HiWe have a problem with a database that has some hidden data somewhere. We cannot shrink the files or database any more, but when we query table sizes, index sizes we do not come near the database...
View ArticleRestore DB from backup with move - need to set to single user mode first and...
Im going to restore a recent backup from a production server DB to a test server DB and I want to do it through tsql. The DB already exists on the test server, I just want to overwrite it with a fresh...
View ArticlePermanently Drop database triggers from tempdb
We installed an security application that created database triggers in all the databases to include tempdb. We have found that the database triggers in tempdb are causing out main transactional...
View ArticleApplication Role
Hi All,In SQL Server, we can create application role by using the Create Application Role command and set the application role executing the sp_setapprole stored proc. But how and when does the binding...
View Article