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 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 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 ArticleHow performance counte sql server objects are captured in tables in a DB
Hi,During a cleanup activity, i saw huge table which is occupying almost 3/4th of the size of my DB. When i decided to dig in and seethe table is actually storing , i saw lot of tables in that DB which...
View ArticleOccasional deadlock when deleting rows from table 1 and inserting rows into...
Hi,I am getting a deadlock in SQL Server. I have attached the deadlock report from the SQL Server error log below:deadlock-list deadlock victim=process3a9c990c8 process-list process id=process3a9c990c8...
View ArticleFILESTREAM files not deleted
I'm having problem deleting data from FILESTREAM enabled database.It seems that garbage collector is missing some files.If I run this query : DELETE from FSCache CHECKPOINTThen BACKUP LOGThe data...
View ArticleLog Shipping with No Monitor Server
Hi,I have inherited a log shipping environment configured with no monitor server. I am getting the error explained in the article below, however there is no monitor server. What is the best practice on...
View ArticleShrinking database
HI all,Does shrinking of database is same as shrinking log file.Regards,Venkat.
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 ArticleTemp tables and transaction log
Hi All,I am on SQL 2000.When I am inserting(or updating or deleting) data to/from temp tables (i.e. # tables), is transaction log created for those DML operations?The process is, we have a huge input...
View ArticleLog Shrink
Hi Gurus,Why should the log backup required before shrinking. What happens if i shrink the log file directly.Thnaks in advance.Regards,Venkat.
View ArticleGetting Started with SQL Server 2012 Express LocalDB: SQL Server installation...
Hi all,Yesterday, our Computer Team ran x64/SqlLocalDB.MSI to install SQL Server 2012 Express LocalDB in my C://Program Files/Microsoft SQL Server/110/LocalDB/Binn/ for me. This morning, I clicked on...
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 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 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 shrunking
Hi All,This is a urgent request. we have sqlserver 2000 its old database. the log and data files filled the drive completely. what is the possible way .Should i shrunk the log file and what are the...
View Article