Microsoft ODBC SQL Server Driver Named Pipes Connection Broken

Posted on 2007-07-23
Last Modified: 2012-08-13
i'm using vb6 client ap connecting to an sql server 2005 database.  on several machines i have no problems at all.  then on one particular machine, i'm getting this error
[Microsoft][ODBC SQL Server Driver][Named pipes]Connection broken

This is a new one to me.  The user can ping the server with no problem, and is using an sqlserver login that the other machines are using without problem
Question by:Fraser_Admin
    LVL 3

    Expert Comment

    First try to connect with tcp/ip. You can do this by putting tcp: in front of the data source of your connectionstring (ex: "Data Source=tcp:yourserver")

    If you can connect with this it most likely means the named pipes traffic is being blocked by a firewall or virus scanner on the machine of the user. (I think that named pipes traffic goes over tcp port 445 in case you want to enable it.)

    Author Comment

    thanks, i will get back to you at the first of next week on how it worked.

    Author Comment

    We are using a text file that contains the source.

    //Two Forward Slashes at Beginning of Line Means Comments
    //Line 1: Scale ID Number
    //Line 2: Database Server Name
    //Line 3: Customer Printer Name
    //Line 4: Scaler Printer Name
    //Line 5: Main Server Name
    //Line 6: Program Type: Manual (M)/Automatic (A)/Automatic-Simulate (S)
    //Line 7: Allow Lookup Table Inserts On Server -- SET False for Truckers: True or False
    //Line 8: Allow Visual Keyboard Entry of Cards -- SET True or False
    //Line 9: Local User Name
    //Line 10: Password
    //Line 11: Debug Flag
    //Line 12: Server Database Name
    //Line 13: Client Database Name
    //Line 14: Show Manual Screen

    So then line 5 should look like this?       tcp:framad18
    LVL 3

    Accepted Solution

    Indeed. Another option is to use the "Client network utility" on the webserver to configure communication over tcp/ip. But for testing I find it easier to just put tcp:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now