Jan
16
2013

Using Concatenate function in excel without impacting custom format

Suppose you have date time text in one column (format as YYYY-MM-DD) which you want to use in your concatenate function without changing custom format, because if you don’t do it then in concatenate function it will come in some numerical form for e.g. 40513 instead of 2010-12-01. It happens because excel ignores formatting.   Use below to fix it, Say column name is A1 where date value resides and you want to sue it […]

Jan
15
2013

[sqsrvres] CheckQueryProcessorAlive: sqlexecdirect failed

011513_2011_sqsrvresChe1.png

Found SQL Server 2005 SP4 CU3 A/P failover cluster SQL services are stopping and starting several times in interval of 30mins to 1 hour. Following errors are found,   Application Log Errors: [sqsrvres] printODBCError: sqlstate = 08S01; native error = 0; message = [Microsoft][SQL Native Client]Communication link failure [sqsrvres] CheckQueryProcessorAlive: sqlexecdirect failed [sqsrvres] OnlineThread: QP is not online. [sqsrvres] printODBCError: sqlstate = 08S01; native error = 2746; message = [Microsoft][SQL Native Client]Communication link failure [sqsrvres] […]

Jan
14
2013

Delete Blank rows from long list in excel

To quickly remove unwanted blank rows from long list in excel, do following, Select column having blank rows Press the F5 key on your keyboard (or select Edit, Goto). Click the Special… button. Click the Blanks option and click OK. This will select all blank cells in the range you had previously selected. Now right click and choose delete or choose Edit, Delete, select the Entire Row option and click OK.   Useful references: http://chandoo.org/wp/2010/01/26/delete-blank-rows-excel/ […]

Jan
14
2013

How to drop Publisher database in Transactional Replication

Dropping publisher database may be required in various scenarios; please find steps which can help you to drop in case you are facing issues with it. I am including roll back approach as well, it helps sometimes.   First step -> Drop Publication and subscription Second Step -> Drop Database   First step, Right click Publication > Generate Scripts > Generate Drop replication and objects script > Save script to local drive Right click Publication […]

Jan
14
2013

Restore Publisher Database which is part of Transactional Replication

Today I have to restore a publisher database from production backup in QA environment which is part of transactional replication in SQL Server 2005, now there are multiple ways to do it, visit this link for Microsoft recommendation. My approach was, Stop and remove replication, restore database, recreate replication without reinitializing   Before beginning ensure that there is no pending distributed items by going to replication monitor > publication > double click the subscription > […]

Jan
14
2013

Copy folder along with security parameters (ACL) using Robocopy utility

Robocopy is very useful Microsoft provided utility and it comes preinstalled in SQL Server 2008 onwards and can be installed via rktools.exe toolkit in Windows Server 2003 (link)   You can check if Robocopy is installed or not via opening command prompt as, Run>CMD> <type Robocopy /?> If it shows parameter list then Robocopy is installed on your system else download and install (if you are not allowed to install anything on your server, then […]

Jan
14
2013

SQL SERVER 2005 Resource Fails to come online on cluster after SQL Resource removed and re-added in cluster group

011413_1123_SQLSERVER209.png

In my case System admin accidently deleted SQL Server 2005 SQL Service resource from SQL cluster group (when trying to remove a disk from cluster) and re-added again but after re-adding SQL server failed to come up and following error noted in SQL Error log, ———– Error: 26054, Severity: 16, State: 1. Could not find any IP address that this SQL Server instance depends upon. Make sure that the cluster service is running, that the […]

Dec
27
2012

MSDB database is growing due to sysmaintplan_logdetail table!

122712_1335_MSDBdatabas2.png

Today found an issue where MSDB database size was 4GB and the table which was utilizing more space is sysmaintplan_logdetail, now to fix it first identified the number of records present in table and the oldest dated, then deleted and truncated the maintenance plan history to clear those records, please find how all this is achieved using troubleshooting steps below,   Troubleshooting Steps: 1. First connect SQL Server via SSMS, then go to MSDB database […]

Dec
27
2012

Size of Transaction Log Increasing and cannot be truncated or Shrinked, log_reuse_wait_desc = replication

Today while troubleshooting log full issue, came across following scenario where two sql servers are in different domain and both are part of simple transactional replication where log file full was on subscriber, after investigation found that replication is working fine and no transaction are in undistributed state still log file is not shrinking, we tried changing recovery model to simple, etc but still issue didn’t get resolved. Finally we manually executed script to mark […]

Dec
27
2012

Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library [CLIENT: xx.xx.xx.xx]

Error:   Error: 17836, Severity: 20, State: 1 Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of the client library [CLIENT: xx.xx.xx.xx]   Troubleshooting tips: Perform nslookup of the CLIENT IP Address that is listed in the error message [CLIENT: xx.xx.xx.xx] and find out what computer it is that is connecting. Then you need to check that machine and determine what […]

Subscribe to this blog via Email

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

Join 446 other subscribers

Translate this blog!

EnglishFrenchGermanItalianPortugueseRussianSpanish

Calender

June 2017
M T W T F S S
« May    
 1234
567891011
12131415161718
19202122232425
2627282930  

View Post by Categories

%d bloggers like this: