Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

August 28, 2008 12:00 AM

Don’t Shoot the Application

When troubleshooting an application error, you might need to look beyond the application to pinpoint the problem
Windows IT Pro
InstantDoc ID #100131
Rating: (7)

Most of us have heard the expression, “Don’t shoot the messenger” or “Don’t shoot, I’m only the piano player.” That’s still a good admonition when it comes to modern applications that we deal with. Often those ugly errors that we see from application are like a “damsel in distress” calling for help as the freight train speeds toward her.

Let’s take a case of an application that’s used by the A/P and A/R folks at a certain company in the desert southwest, where things get pretty thirsty if the local saloon is shut down. They use Microsoft Dynamics Great Plains, which uses a Microsoft SQL Server-based back end. The server application piece can be installed on its own server or on the SQL Server system for smaller enterprises, and there’s a workstation client piece that’s very much what we IT administrators would refer to as a fat client.

It came about that, although everything was working fine for a year, the billing department called the local administrator with a message of panic about a work stoppage: “We can’t connect or work, so we’re out of business until you get this fixed. Have a nice day!”

At about this time, the administrator emailed me about the problem: “A sidewinder of an error really bit me. I am receiving a message 2759 was missing error on the GP server. The clients cannot connect; they get the error Could not register database trigger. Any ideas, partner?”

I support the client, so I connected remotely and began the “CSI”-like forensic.

First stop was the SQL Server system. For the accidental DBA out there, triggers are a SQL Server object attached to SQL Server table. Something like a stored procedure. So I knew that the error was associated with access to a SQL Server table. Since the Great Plains client was loaded on the server as well, I had the admin join me via a Terminal Services session, and we logged on to the Great Plains application while logged into the SQL server directly without a hitch. I also rechecked all the SQL Server security settings and made sure that the users were members of the DYNGRP and Public groups on those databases regarding the Great Plains Application.

Now we knew that the freight train was not coming from the server. It was time to look at the client machines. A quick look at the SYSTEM DSN on ODBC connections showed us that mixed-mode authentication was indeed working.

I used the Microsoft Dynamics GP Utilities to resync the Great Plains client-configuration files to the servers, but got the same trigger error. The shotgun-blast approach of rebooting the services and the client machines did nothing to resolve the issue.

It was time to ask ourselves deeper questions. The back end is SQL Server 2005. How does a client communicate with the server? And since it was working yesterday, what changed? Perhaps the “surface” of the SQL server was now unreachable. I ran the Surface Area Configuration wizard on the SQL Server 2005 server and zoomed in on Remote Connections.

This configuration ran fine until today. I surmised that this was not an application problem or a SQL Server problem, but rather a network problem. I enabled the option to use both the TCP/IP and named pipes. Named pipes, which are part of the Server Message Block (SMB) suite, are often associated with Windows NT 4.0 authentication.

After I restarted the SQL Server services and clearing the NBT and DNS caches on one of the Great Plains client machines, the authentication went right through. “Whoa! Partner, it’s workin’, and I thought for sure it was the application!” I responded, “Well, sometimes you have to remember not to shoot the application.” I reminded him to check out his network and forest traffic with WireShark and get a rope around what his DCs are doing.

“What say we go over to the saloon and have ourselves a sarsaparilla and watch Rio Bravo on the big screen?” said the admin. “I’ll take a rain check,” I said. “I have to write up the bill, and you have to untie that damsel in distress."

Related Content:

ARTICLE TOOLS

Comments
  • Anne
    4 years ago
    Oct 02, 2008

    Response from Curt Spanburgh: "We always enjoy intelligent responses to our articles. I was hoping that readers would get the idea to start looking at kerberos authentication and realize that this is the preferred use for authentication. As I am sure you have experienced in the field, most networks are filled with traffic that the administrators are unaware of. I looked back in the "Historical Documents" of Windows 2000 books and repeatedly noticed not more than a page or two of coverage of the Kerberos subject. Not surprisingly then, few of the NT 4.0 convertees were aware or took an interest. Now we are at this place almost a decade later and there is serious catchup to do on the part of many. This was inferred in the article, that the administrator get to work on resolving his network problem while the accounting people continue to run the business."

  • Filip
    4 years ago
    Sep 30, 2008

    Hmmm, I don't know... I agree with enabling Named/Pipes as a temporary option to bypass and troubleshoot the actual problem, which is why can't clients suddenly find the SPN and connect over TCP anymore. As a permanent solution it would clutter network traffic and disable Kerberos authentication.

  • Eric
    4 years ago
    Sep 29, 2008

    Very informative, and always entertaining. Well done, Curt. :-) Keep 'em coming!

  • James
    4 years ago
    Sep 03, 2008

    Excellent Article. I agree with netmarcos - so many of our apps today rely on many things outside of their control.

    As the old saying goes "A chain is only a strong as its weakest link."

    JamesNT

  • netmarcos,netmarcos
    4 years ago
    Aug 29, 2008

    Well researched and clearly written. Great advice and a vluable reminder that many of our apps rely on a lot more than the code base of the desktop client to get the job done.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.