SQL server equivalent for Oracle Spool
I am try to run a report every hour and send the results to a csv file. I have scheduled the job is SQL server agent but I cannot seem to be able to spool the records to an excel file(or any file).I...
View ArticlePartial Restore of primary file group issue.
hi,I have done a partial backup of few file groups that includes primary file group. I started restoring primary file group.. while restoring it on different server, I get an issue as below.What's...
View ArticleUndetected Deadlocks
Hi all,I've having problems on a SQL 2008 R2 (10.50.4266) Enterprise server, 32 cores and 512GB RAM. Since we installed the latest CU patches we have been getting a lot of undetected deadlocks. By this...
View ArticleReclaim space from filegroup.
Hello,Here is the scenario..this is a datawarehouse with all historic and current data. The filegroups for 2011 and 2012 have data for respective years. The filegroups have unused space in each file...
View ArticleSQL Server 2008 R2 - Error Message
Hi Guys,Will you pl lookin to the below error and advise, please:Error...
View ArticleSQL server Agent Job email notifications not being sent
I trying to set up some failure job Email notifications on Sql Server Agent jobs. So, I configured database mail and tested and was able to receive mail through sp_send_dbmail and "Test mail" option...
View ArticlePowershell runs differently in SS2008 Agent Jobs
I have started adding Powershell to my Agent jobs. However, Powershell scripts which run on my desktop do not always run in a SQL Server Agent Job step as type "Powershell". Once the syntax errors...
View ArticleSQL consistency based I/O error, help needed
Hello everyone.I'm new to database errors so I'm not really sure what I should do next. I'm using an accounting program running on SQL Server Express 2005 (9.0 SP3) on a Windows Server 2008R2. While...
View Articledoes Max Server Memory Setting has an effect on the execution plan - and how?
Hi,we face some strange execution plan changes while upgrading the server hardware.SQL Server Version: Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) Jun 28 2012 08:36:30 Copyright (c)...
View ArticleLog file backup
Hi All,My database have active connections. Do i need to keep it in offline in order to take logfile backup.another question is what is the use of transaction log backup. Please help me.Regards,Venkat.
View ArticleMemory clerk misleading info?
I am trying to reconcile memory usage on my servers as some of em have memory issues...Its been 2 days and going through numerous articles including Salvo/bobward, i created below code to see all...
View ArticleBest Practice to maintain data
Hi All,Am new to sqlserver DBA. What is the best practice as a DBA for maintaining data. All my databases are in production. Am slightly confused how to manage data in databases, the recovery models...
View ArticleLog Restrict
Hi All,Is it good practice to keep log file in restricted mode to 2 GB.what happens if the log file reaches to 2GB.please reply, Appreciate ur help.Regards,Venkat.
View ArticleLog file truncation
Hi Gurus,What is the need for truncating the log file. I have a log file which is of 41 GB its filling the disk. I dont have any other drive. I am taking the backup of transaction log. Do i have to...
View Articlesp_who2 v.s dm_os_waiting_tasks... session missing in dmv.
Hi,If a task is in a runnable state, should not it be available to be seen in dm_os_waiting_tasks? My understanding is anything thats waiting for a resource should be in this dmv. Since a task is...
View ArticleSQL Server will not start
SQL Server will not Start. We have attempted several times. I have 4 other instances running fine on the same machine. in the application error log, i get the followingEvent Type: Error Event...
View ArticleQuestion on Online Restores.
Greetings. I'm trying to get up the learning curve on Online restores, as it's been a few years since Ive done anything like this. I'm looking at this doc, and thinking its either inaccurate, or Im...
View ArticleShrinking database
HI all,Does shrinking of database is same as shrinking log file.Regards,Venkat.
View Article