Browsing articles in "Sql Server 2008 R2"
Jul
15
2016

Transaction log file full because of log_reuse_wait_desc=replication, CDC, goldengate

071516_1725_Transaction1.png

Came across weird situation where received alert for SQL Server transaction log file full and found log_reuse_wait_desc=replication from sys.databases   Now before mentioning troubleshooting step, setup of the database is question is little bit complex because Database is part of SQL Server replication where database publisher is at vendor side and we don’t have access to publisher DB Oracle Golden Gate replication is configured from this database to Oracle DB Database in question is in […]

Jan
19
2016

Fix: Cannot drop server because it is used as a Distributor in replication

While trying to drop a linked server received following error,   Drop failed for LinkedServer ‘XYZ.ABC.COM’. (Microsoft.SqlServer.Smo)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.6000.34+((KJ_SP3).140819-1214+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+LinkedServer&LinkId=20476—————————–ADDITIONAL INFORMATION:An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)——————————Cannot drop server ‘XYZ.ABC.COM’ because it is used as a Distributor in replication. (Microsoft SQL Server, Error: 20581)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.6525&EvtSrc=MSSQLServer&EvtID=20581&LinkId=20476 After going through online posts, found following script to drop distributor settings on Pinal Dave site (link),   EXEC sp_dropdistributor @no_checks = 1, @ignore_distributor = 1 […]

Aug
24
2015

SQL Server TDE (Transparent Data Encryption) alternatives

082415_1354_SQLServerTD1.png

TDE (Transparent Data Encryption) is an inbuilt encryption feature of SQL Server Enterprise Edition introduced by Microsoft from SQL server 2008 onwards, this comes in handy when someone has to secure the PII (Personal Identifiable Information) from prying eyes, as it is Enterprise Edition feature only hence comes with a premium price. So while I got a request to analyze implementation of it on more than 200+ SQL standard edition then first thing which has […]

Jul
24
2015

Shrink Data file failed with Error 3140

072415_1344_ShrinkDataf1.png

While shrinking a large (950GB) database file to move data to a secondary NDF, got below 3140 error, it is a normal error occurs while shrinking files of that capacity, please find resolution below,   Error:   Environment: SQL Server 2005 ENT. ed.   Issue: Data file shrink fails for large data file size with Error: 3140   Fix: The following example query truncates the primary data file in the AdventureWorks2008R2 database. The sys.database_files catalog […]

Jul
20
2015

SQL server setup failure – Updating permission setting for file E:\**** failed

072015_1536_SQLserverse1.png

While re-installing SQL server, got below error,       To fix this execute below commands with elevated access in command prompt so that permissions get applied to respective path,   Eg: takeown /F c:\Windows\system32\drivers /D y /R    In our scenario commands are provided below:   Here path is “F:” which is a parent folder.   takeown /F F: /D y /R   cacls F: /E /T /C /G “<<<user_AD_account_name>>>“:F

Apr
23
2015

SQL Server Configuration Manager – Cannot connect to WMI provider – Invalid class [0x80041010]

042315_1916_SQLServerCo1.png

Error Screenshot:       Resolution: Open command prompt and execute below command,   mofcomp.exe “C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof”   Note: to cross verify, ensure that sqlmgmproviderxpsp2up.mof exists as above said location, if you are using SQL 2012 or later, go to appropriate shared folder on C: and update the command and execute   This will show results like below,     Now, SQL Server configuration manager should open fine without any issues.   […]

Apr
21
2014

SSRS 2008R2 Error: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms

042114_2129_SSRS2008R2E1.png

While trying to open Report Manager URL via IE received HTTP STATUS CODE 500 error   In order to troubleshoot further, reporting log files are analyzed present in MSSRS root folder   Log file folder: <driver>:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\LogFiles\   Error logged: Error resolution: As per link, this error is because FIPS (Federal Information Processing Standard 140-1) Compliance was enabled and in order to meet certain standards this is required for audits. One option […]

Jan
1
2014

SQL Server CXPACKET waittype and MAXDOP settings – Tips

010114_1808_SQLServerCX2.png

  Recently while troubleshooting performance issue on a server, found that the CXPACKET waittype is high,   WaitType Wait_S Percentage AvgWait_S AvgRes_S AvgSig_S CXPACKET 1402132.06 56.82 0.0067 0.0063 0.0004   CXPACKET waits in the server are not an immediate sign of problem; they may indicate another problem, associated with one of the other high value wait types in the instance for e.g. Queries are executing with parallelism   Now when dealing with CXPACKET waittype do […]

Jan
1
2014

Database Backup Compression using SQL Server 2008 R2

010114_1301_DatabaseBac2.png

Database backup compression is a feature provided by Microsoft which reduces the native backup size by up to 66% depending upon the type of data stored in a database and similar other factors. By default backup compression is disabled as it has some limitations which needs to be looked as per environment setup and if suites one’s need then it can be enabled as default or a parameter can be added to backup script to […]

Oct
7
2013

Fix: Operating System Error 5 (failed to retrieve text for this error. Reason: 15105). (Microsoft.SQLServer.Smo)

100713_1042_FixOperatin4.png

When trying to take Microsoft SQL Server database backup to a network shared disk then receiving following error,     Error text: Cannot open backup device “\\xxxxxxxx\xxxx.bak” . Operating System Error 5 (failed to retrieve text for this error. Reason: 15105). (Microsoft.SQLServer.Smo)   The error may vary, you may also receive Operating system error 5(Access denied) and that too for local disk instead of network disk. But symptom is same.   Solution to fix this […]

Pages:1234»

Subscribe to this blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 457 other subscribers

Translate this blog!

EnglishFrenchGermanItalianPortugueseRussianSpanish

Calender

August 2017
M T W T F S S
« May    
 123456
78910111213
14151617181920
21222324252627
28293031  

View Post by Categories

%d bloggers like this: