archive audit log in SQL Server 2008 R2
Hi there,I was just exploring audit features provided in MS SQL Server 2008, i found it interesting and easy to configure, however what i would like to know is that can i configure audit role over...
View ArticleDatabase Mail : Mail Not queued DBMAIL is stopped....
Hello I tried for hours to get my Database mail work, without success, on SQL Server 2005 ent Edition 64bit SP3 in cluster environment I send mail with the test : USE msdb GO EXEC sp_send_dbmail...
View ArticleRecovery model for Datawarehouse databases
Hi We are building up a new Datawarehouse environment where there will be lot of of Inserts/Updates/Deletes will be happening. i would like to know what is the recommended recovery model for databases...
View ArticleSplit existing Partition - Grows log file in GBs and take hours to run
Hi,I have an existing table with around 200 Million rows and couple of partitions.I would like to split the partitions e.g. the Latest partition hold the data where date >= '2012-01-01' and I want...
View ArticleCopy SQL Server 2012 database with SMSS
I want to copy a database within the same SQL Server 2012 Developer instance (e.g. from database1 to database1_new). Here are the steps I followed in SMSS * Right click on database > Tasks >...
View ArticleLog Truncation
Hi,I have a database of 'Sql Server 2008R2 Express' with Simple Recovery Model.When I delete lots of database records, the physical size of the log file increases.how can I reduce the size of log file?...
View ArticleScript required to check whether SQL is installed or not for 300 servers
Hi,I need to check whether SQL is installed or not in 300+ servers. It will take long time if i login manually and check the SQL service is present on each serverHence i need a Script to check where...
View ArticleExecution Plan
Hi All,I have column1 with datatype varchar(50) and in procedure I am taking bigint.when I check Execution plan then it convert bigint to varchar .My question is any performance related issue while...
View ArticleSqlServerWriter
We have a third party tool Unitrends to backup VM ware (snapshot), we see some backup errors in SQL log, this is mentioned in this thread,...
View Articlecan't attach outlook 2013 bcm database in SSMS
Hello,I upgraded my laptop from Windows 7 64 bit Office 2012/BCM 32 bit to Windows 8 Office 2013/BCM.before the upgrade I detached the bcm database in SSMS. made copies of the mdf and ldf...
View ArticleIndexed View Vs. De-normalized reporting table. Opinions wanted.
I have a fairly hairy query that pulls reporting data. Even super optimized it takes 8-10 minutes to run. I now have a new requirement where they want to allow users to be able to pull it on demand. Ok...
View ArticleDeadlocked on lock | communication buffer resources
Warehouse server; MAXDOPS = 12Last command that caused/encountered problem: DBCC UPDATEUSAGE(SPIEWeb)WITHNO_INFOMSGSSQL version:Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011...
View ArticleNumber of users accessing SQL Server 2012
1)find number of users on a database in sql server 2012 2)find number of users accessing in sql server 2012 3)find users using a specific object on a database inn sql server 2012 4) active process in...
View ArticleHigh CPU utilization by SQL server 2008 R2 SP2 when no Application is...
Hi, I have sql server 2008 R2 SP2 installed ,the memory utilization is normal but sqlserver.exe process is taking 97 % of CPU even when no application is accessing it,no job is running, in fact its new...
View Articlehow can find the backup file on Commvault or Tivoli tool?
Hi Guys If anyone using this toold and can guide me for commvault or Tivoli tool for backup. where or how i can find sql backup file in this tool to move to the another server?Thanks.Please Mark As...
View ArticleColumnstore poor optimization (row mode)
Hi all,I am tearing my hair out with the poor optimization that exists with columnstore indexes. As many have pointed out in the past, running something like:SELECT SUM(Measure) FROM FactTableis far...
View ArticleColumnstore index switching to row mode with inner join
Hi all,Considering the following "example" query with a columnstore index:SELECT ClientId, SUM(OrderAmount) FROM Order GROUP BY ClientIdExecution plan shows a nice batch execution mode. When I do...
View ArticleError while enrollment SQL server on UCP
Synonym 'dbo.syn_sysutility_ucp_smo_servers' refers to an invalid object. Could not use view or function 'msdb.dbo.sysutility_ucp_instances' because of binding errors. (Microsoft SQL Server, Error: 5313)
View ArticleDifferent behaviour of dbcc freeproccache and option (recompile)
Hi all,I have a parametrized query, which ran 1sec until we changed MAX DOP from 0 to 1. The change had been recommended by microsoft support due to other issues on this server. The server has 8...
View Articlesys.sysaltfiles and sys.database_files showing different physical file names...
Hi All,I restored a database from our PROD instance to reporting instance. While restoring through ssms i have selected the appropriate path in the "restore as" option and also selected standby mode....
View Article