Tuesday, May 21, 2013

[SQL 2012] DB restore file must not be in C:\Temp

[SQL 2012] DB restore file must not be in C:\Temp


DB restore file must not be in C:\Temp

Posted: 21 May 2013 01:40 AM PDT

I copied a full backup of my SQL Server 2008R2 production database to the directory C:\Temp on my SQL Server 2012 test server (both Windows Server 2008R2), and tried to restore it to a newly created database. I selected the device and located the backup file, but do not see it, so pasted the file name in. Then selected the destination database (the new SS12 db), selected "Overwrite the existing database", but do not see a backup set. "OK" is grayed out, and the top of the Restore task screen says "No backupset selected to be restored".Then I copied the same backup file from C:\Temp to C:\Backup, on the same server, and the Restore screen can now see the backup file. I also copied it to C:\Restore and the SQL Server 2012 likes that directory too. Why must the restore file not be in C:\Temp? Or am I not understanding the real problem? Thank you for your help.

AlwaysOn Secondary Replica - Resolving state

Posted: 20 May 2013 07:34 PM PDT

Hi allI have an AlwaysOn Availability group configured between 2 nodes (Synchronous)Automatic failover was working fine until recentlyI can failover between the nodes manually but automatic failover doesn't seem to be working. In my earlier test, I would shut down the SQL Service on the primary and within seconds, the secondary replica would take over. Recently I have performed the same test and the secondary replica enters the resolving state and the DB in unavailable.I have tried everything here: [url]http://support.microsoft.com/kb/2833707[/url]The only change I made was changing the availability mode from Synchronous to Asynchronous - Could that be the cause?Thanks

Need to buy sql server 2012 developer edition

Posted: 09 Feb 2013 04:36 AM PST

Greetings all!So I want to purchase the 2012 developer edition, and while I know I could go to Amazon or newegg or an online vendor, I was hoping to purchase either 1) A local copy from a store or 2) Purchase a digital version I have searched the online stores of local stores to no avail and I am not sure where one would physically be able to buy a copy of Developer edition. I tried a few google searches as well for a Digital copy. I will order a copy here shortly from Amazon most-likely however I have a few needs to get this today to get prepared for next week. Is there anyway I can do this?

SQL Server 2012 upgrade.

Posted: 20 May 2013 02:30 PM PDT

What are the benefits of upgrade to SQL Server 2012?Can someone direct me to webcast benefits upgrade SQL Server 2008 R2 to SQL Server 2012 Thanks in advanced.-Edwin

optimizer memory constantly growing

Posted: 20 May 2013 02:15 PM PDT

Hello, we are using SQL Server 2012: select @@version; --Microsoft SQL Server 2012 - 11.0.2100.60 (X64) --Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)and our server over the past few weeks has seen the optimizer memory grow from only a few tens of MB to 20GB, 30GB, 40GB, and beyond. It is completely hogging the memory on the server. Our page life expectancy has decreased significantly since more than half of the 60GB of memory available is going to the optimizer. There seems to be no way to stop the optimizer memory from increasing. Our workload is pretty ad hoc, so I enabled optimize for ad hoc workloads, but this did not slow it down. We tested clearing the caches, but it appears optimizer memory is not the plan cache, so clearing them did not help, in fact it may have made it worse since it freed up even more memory for the optimizer to consume. On our healthy servers, this memory is usually less than 1 GB so having it grow to 40GB and higher is surprising to me. Here's some relevant stats: total memory for the server is 60GB with 4GB left for the OS. This instance is the only instance of SQL Server and the only software running on the server. No anti-virus is running on it. The flag for process_physical_memory_low is 1, process_virtual_memory_low is 0. The server memory status is "Available physical memory is high". All 60GB are being used. PLE (page life expectancy) ranges from 0 to a few hundred to a thousand, but we are used to 10s or even 100s of thousands. We also collect stats on page reads or hard-faults by taking two snapshots and taking the difference since the counters are cumulative. So page reads /sec is oddly 0 in the past few hours, but I can see as PLE goes down to 0-10, page reads /sec goes way up. Our stolen memory counter is positively correlated with the optimizer memory --- with stolen memory reaching 50GB when the optimizer memory is at 47GB, currently. I can see latch waits /sec is much higher than normal and lots of IO wait stats, probably b/c the disks are being used much more than normal since most memory is going to the optimizer. Any ideas as to why the optimizer would behave like this in SQL Server 2012? Restarting the server will return us to a low optimizer memory and allow data caching as usual, but I am more interested in possible causes of this behavior as I would expect it to come back over a few weeks anyway after a restart. Thanks much!

No comments:

Post a Comment

Search This Blog