SQL Server 2008 R2 Implicit transactions
A single user connection will open animplicit transaction. The transaction will remain open until the user ends their session, or the connection is manually terminated (KILL (SPID)). Within 5 the open...
View ArticlePowershell invoke-sqlcmd calls stored procedure second time after Query...
We have a very strange issue. We have noticed that a single stored procedure is executed twice when is called by Powershell invoke-sqlcmd command.When we trace it we can see the procedure starts...
View ArticleProblem in changing password of sa account.
Hello, I cant change my password of sa. I have tried with codes belowALTER LOGIN [LOGIN_NAME] WITH DEFAULT_DATABASE=[master]GOUSE [master]GOALTER LOGIN [LOGIN_NAME] WITH PASSWORD=N’NewPassword’...
View ArticleMonthly Partition Implementation for daily Load & Switch IN has to work
Hi All,Any one has Implemented Monthly partition on main table & Load the Temp table daily and switch in this data on daily basis. What I want to ask that How will I switch In data for monthly...
View ArticleChanging column in NOT NULL. Why is there so much transaction log activity on...
Hi guys,the setup is as following: SQL Server 2008R2, recovery model FULL in order to better track what's going on in the transaction log.CREATE TABLE dbo.justnumbers(id INT IDENTITY, number FLOAT...
View ArticleRESTORE DATABASE fails, but only if run from within TRY/CATCH block.
Hi everybody,I'm trying to restore a DB using the following script:BEGIN TRY RESTORE DATABASE [20130717_SERVER4_NS_dat] FROM DISK = N'c:\NS.bak' WITH FILE =1, REPLACE, MOVE N'NS_dat' TO...
View ArticleSQL Server 2012 have more than 600000 active tasks
select task_state,count(*) from sys.dm_os_tasks group by task_stateI ran the above statement on a SQL Server instance, and found it had about 633,000 records.Our server version is 11.0.3000.task_state...
View ArticleSQL Agent Restart time
Hi All..It's it possible to find the sql agent restart time using TSQL: here using SQL 2000.I found a scheduled sql agent backup database job missed at the target schedule.
View Articlechanging block size on database disk
Hi,I have an request from an application demand vendor sighting this below MS link :http://technet.microsoft.com/en-us/library/dd758814(v=sql.100).aspxThe vendor is asking me why this practice was not...
View ArticleCannot open backup device 'F:\foldername'. Operating system error 5(Access is...
SQL 2005 EnterpriseEven if I logon as Administrator and try to backup any of my databases to local partitions, I get this error below. I have been operating fine up until this point and doing backups...
View ArticleSS2012 SSMS New Query Error: BatchParser Missing
It maybe a coincidence, but started 2 days ago after virus/Trojan infestation (anti-virus deleted it?). McAfee technicians from Chennai cleaned my computer today.I cannot do repair from DVD due to...
View Articleshow Task manager data in SSRS
Dear All,We have an application. Which is currently facing performance problems. We are currently working on that.Bit right now we are advised create a report which shows Real time Memory usage and CPU...
View ArticleDecipher waitresource
I am trying to analyze a dead lock trace.I see this in the waitresourcewaitresource=KEY: 9:72057594065256448 (ef008dce9cbe)How can I find the exact key thats causing the problem? Thanks!
View ArticleLog Shipping false status
Hi All,We configure log shipping successfully.Even Backup, Copy & restore Jobs run successfully. I checked the log backup movement from primary drive to secondary drive too its happen properly.But...
View ArticleSQL 2008 R2 x 64 + VSS backup of filestream enabled databases
We are using Veeam to backup our SQL database using VSS and the hot backup is failing.We have extended our VSS timeout for Veeam to 30 minutes but still our backup job times out. Basically the VSS...
View ArticleCapture Process blocked queries
Hello All,I am new to SQL Server DBA, I created an Alert of type: SQL Server performance condition alertobject: SQL Server: LocksCounter: NUmber of deadlocks / secInstance: DatabaseAlert if counter:...
View ArticleIs there a way to characterize the cache by date? (SQL Server 2008R2)
We're using SQL Server Enterprise 2008R2 on a large VM farm. We have hundreds of SQL Server VMs that all run very nicely.However, when they were setup, the VM admins gave them huge amounts of memory -...
View ArticleBetter insert performance on a table only with a clustered index or a table...
Note, I am not talking about a clustered index against a non-cluster index, I mean a clustered index comparing to no index at all for inserting performance.I saw lots of links as below said that, a...
View ArticleSQL server 2012 Installation to put Data and Log on a separate drive
Anyone tell me how to separate the data and log files in separate drive.Can I give separate path for them during the installation or I go ahead with default installation later I move the files to...
View Article