DBA Site


pradyothana
by pradyothana
Posted 15 Dec 2011
Revised 15 Dec 2011
151 views



?

Log in for more options.


Article Summary
DBA Related

Bookmark and Share





Please ask and share the problems and solutions via www.msqlserver.com


                         

Latest Article :

 

 

Difference between a Cumulative Update and Service Pack for SQL Server

 

Cumulative Update


Cumulative Updates are primarily released for hotfix purposes.



Service Pack


Service Pack is they include actual changes or new enhancing features.

 

It is being used by another process

 

The process cannot access the file 'C:WindowsSysWOW64perf-MSSQL10_50.MSSQLSERVER-sqlagtctr.dll' because it is being used by another process

 
Type:Bug
ID:576412
Opened:7/19/2010 8:34:44 AM
Access Restriction:Public
   
1
Workaround(s)
3
User(s) can reproduce this bug
Watch List
Watch List
 
       
Windows 7 x64, SQL 2008 SP1 CU8 upgrade to SQL 2008 R2 RTM. i get this error message everytime:

The following error has occurred:

The process cannot access the file 'C:WindowsSysWOW64perf-MSSQL10_50.MSSQLSERVER-sqlagtctr.dll' because it is being used by another process.

Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1&EvtType=0x60797DC7%25400x24C2C4E7

I tried to use process explorer to determine what has this locked, but i am starting to suspect some type of redirection is not occurring?

WORKAROUND :- 


1) Stop SQL Services.
2) Rename the file
Original name: perf-MSSQL10_50.MSSQLSERVER-sqlagtctr.dll
Renamed: OLD_perf-MSSQL10_50.MSSQLSERVER-sqlagtctr.dll
and was able to 'Retry' the Repair SQL 2008 R2 installation and continue.

This works.

Tuesday, December 13, 2011

Delete Secondary File

 

To shrink a data or log file

  1. In Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance.
  2. Expand Databases and then right-click the database that you want to shrink.
  3. Point to Tasks, point to Shrink, and then click Files.
  4. Select the file type and file name.
  5. Optionally, select the Release unused space check box.
    Selecting this option causes any unused space in the file to be released to the operating system and shrinks the file to the last allocated extent. This reduces the file size without moving any data.
  6. Optionally, select the Reorganize files before releasing unused space check box. If this is selected, the Shrink file to value must be specified. By default, the option is cleared.
    Selecting this option causes any unused space in the file to be released to the operating system and tries to relocate rows to unallocated pages.
  7. Optionally, enter the maximum percentage of free space to be left in the database file after the database has been shrunk. Permissible values are between 0 and 99. This option is only available when Reorganize files before releasing unused space is enabled.
  8. Optionally, select the Empty file by migrating the data to other files in the same filegroup check box.
    Selecting this option moves all data from the specified file to other files in the filegroup. The empty file can then be deleted. This option is the same as executing DBCC SHRINKFILE with the EMPTYFILE option.
  9. Click OK.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 




DBA

pradyothana has a website at www.msqlserver.com

Article Tags


Related Articles

No related articles were found.

More Articles By pradyothana

articleDBA Site
by pradyothana | in Education | 152 Views
DBA Related

All Articles By pradyothana

Add a Comment

Comments (0):

There are no comments for this article yet.

Add a Comment


You must Login to enter comments.

Categories