Unable to release Tempdb free space
Hi All,My tempdb drive size is 50 GB. Now it is occupied 43 GB. when i checked sp_spaceused, the result as below.database_name | database_size | unallocate spacetempdb | 43161.94 MB |...
View Articlechecking cores for sql server
Hi,How to check how many cores on per cpu in sql server orhow many cores our sql server instance is using. I need this for licensing purpose.Thanks
View ArticleSQL Audit fail
Hi I see many audit fail for MSSQLSERVER at eventlogand the login is from a remote computer and the login name is"domainname\REMOTESERVERNAME$"But I don't know which login it is referring to . Any hints?
View ArticleCan xp_instance_regread be error handled
I have a small script generator which will try to find which folder a backup file needs to be restored to and eventually print the restore script in the messages section in SSMS. During location of the...
View ArticleReplication and Clustering
Hi, Is it possible to set up a Publisher-subscriber replication on a SQl cluster that has two nodes? I have never seen this kind of configuration before. Thanks.
View ArticleSQL Server 2008 R2 - Memory Problem - Error: 17803, Severity: 20, State: 13.
Hi, since a few back we been having some memory problems with our sql server, nothing have really change in the enviroment but these issue are kind of new. ANY HELP WOULD BE APPRECIATE THANKS. here is...
View ArticleSQL Server 2008 R2 { An Error occured when attaching database(s) }
Hello Guys!I just installed SQL Server 2008 R2 a couple of days ago, on the first day use i can attach database(.mdf) with out any problem.on the day 2, i keep getting this...
View ArticleSOLUTION TO MINIMIZE TEMP DB
HI GUYS...We are working on sql server 2005 and the problem is with the temp db,it is frequntly becoming full and forcing us to restart the srever every time when it is full.Can anybody tell me about...
View ArticleDBCC_OBJECT_METADATA & DBCC_CHECK_AGGREGATE latch
what does DBCC_OBJECT_METADATA & DBCC_CHECK_AGGREGATElatch wait mean?Manish
View ArticleDBCC How Repair_Allow_Data_Loss works actually.
As per the articlehttp://www.sqlskills.com/blogs/paul/corruption-last-resorts-that-people-try-first/Kindly let me know Repair_Allow_Data_Loss will not rectify the logical error $1000. it means data...
View ArticleAttachement to adventure database failed
Unable to open the physical file,operating system error 5:failed to retrieve text for this reason:15105(Microsoft SQL error 5120
View ArticleSQL transaction log question
I have database which is 800GB big, recovery is set to full and there is also 700GB transaction log file. I need to do something about this log size:). Database and log file is on RAID10 SAS drives. 1)...
View ArticleWhy decrease MAXDOP?
Hi All,I'm doing research on WHY decreasing MAXDOP for my SQL Server (2 sockets x 6 cores + HT = 24 logical cpus) would benefit my system? According to one of my previous posts here and based on MSFT...
View Articlehelp to rewrite the query and make it run faster
I have a function but it runs very slow, I think the reason is because it has Order by case statement.Can anyone help to restructure this query , that may runs faster but the same result.The table...
View ArticleHow to setup SQL Alert on any error in SQL Server
I am looking for any possible ways to setup SQL Server Alerts on any error that occurs in SQL Server, is there a simple way to achieve this? I know, I can configure separate SQL Server Event Alerts...
View Articlecalculate the size of tables in bytes
Dear all,Is there any sql function to calculate the size in bytes for each table? Thx a lot.Best regards,Wallace
View ArticleTable Partitioning
Hi All,How to check wheather my data is partition created on the table is in use or not. Or Data is storing as per created partitioned.
View ArticleTable level, partial data restore.
Hello,I'm trying to solve the following problem. I have a central DB that holds data for many organizational units. Data for every organizational unit spans many tables. The problem is how to process a...
View ArticleSelect @@Servername shows incorrect entry
Hello,i migrated all databases from a SQL Server 2008r2 Cluster (Name: Cluster01) to a SQL Server 2012 Cluster (Name: Cluster08). After the migration I renamed the 2008r2 Cluster to ClusterOL and the...
View ArticlePeriodic server crashes on DB server, no cause?
We've got 2 DB servers, connected to a SAN via fiberchannel connection.We've had periodic (1-2) crashes a week off an on, but have become more frequent.The only thing running on the servers is SQL...
View Article