1. Louis Mancini
  2. PowerBuilder
  3. Wednesday, 25 September 2019 18:31 PM UTC

Sometimes users get error: Communication link failure sql error 08S01 - user has to exit via Task Manager because a pop-up keeps reappearing and doesn't allow user to exit out of the application.

 

Is there a way to kill the powerbuilder app for these network errors?

 

Also, sometimes these are not even really time outs being caused by wifi network disconnect and reconnect but powerbuilder app can't be shut down any other way but via Task Manager.

 

We are using ODBC to a SQL server database.

 

Thanks,

Lou

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 19:09 PM UTC
  2. PowerBuilder
  3. # 1

Hi,

Which powerbuilder version are you using?

Which popup is showing? (attached image would help)

If it's a system error which is popping up, you could do a HALT; or HALT CLOSE; but it's still ugly.

Maybe there's a setting for the connection on SQL Server which keeps the connection alive for some time that you can play with? (It's been a while I've been using sql server, so maybe someone else can give more information on that possibility).

 

regards

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 19:16 PM UTC
  2. PowerBuilder
  3. # 2

I found this information, here: https://community.spiceworks.com/topic/372789-sqlstate-08s01-08001-connection-failure

HTH

---

Are your ports configured correctly? Firewall allows access?

 

syko24
Poblano
syko24
 
 

Recently I had a similar issue with a client.  The problem ended up being that there was another program running on the same port as my SQL instance.  Try running a netstat -b on from command prompt on the server and see what ports are being used.  Then go into SQL Server Configuration Manager from the start menu.  Select your SQL instance under SQL Server Network Configuration and then right click on TCP/IP and select properties.  Check the IP Addresses tab and see if any ports match the ports you found in your netstat results.

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 20:19 PM UTC
  2. PowerBuilder
  3. # 3

Hi,

A PB app getting stuck on "Communication link failure sql error 08S01" has an issue in its DB error recovery logic. You can subclass SQLCA or any other transaction object to capture DBError event and react accordingly. Comm. link suggests a DISCONNECT;. Why disconnect? Because that command probably fails but it sends signals to DB client that you are giving up on current connection. Perhaps even a destroy of said transaction object would kill that error situation. FreeDBLibrary = true on application object may be needed.

Recovery is then to possibly create new transaction object of same class (if code destroy that object) and a new CONNECT could re-establish DB connection.

NOTE: Sometimes bad connection hangs in a pool on the client so first CONNECT may fail albeit next CONNECT succeeds "just because".

In any case, as pointed out by Miguel in earlier response you always have the option to HALT CLOSE or HALT to allow PB process to kill itself.

HTH /Michael

I remember first time a SQL Anywhere database suddenly had a VPN over internet between DB server and our PB client. Suddenly we had connectivity issues and timeout issues we never saw before. Took some code rewriting and a bunch of hard learning to cope with "guaranteed network connectivity" being a thing of the past.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 20:32 PM UTC
  2. PowerBuilder
  3. # 4

Hi Louis;

   This error could also be related to 08501 ... "Communication link failure is a mid-stream failure of the connection from client to SQL Server. This typically points to problems with your networking layer, typically networking hardware. For example a router in your network could be dropping connections, or a network card that is going bad".

  Like 08S01 - which points to a TCP/IP network failure.

Regards .. Chris

Comment
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Thursday, 26 September 2019 17:45 PM UTC
  2. PowerBuilder
  3. # 5

Thanks everyone, I've decided to try this on the dbparm line , I'll post later with results.

ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NOPROMPT'"

 

Thanks,

Lou

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
.EXE .NET 6.0 .NET Assembly .NET Core 3.1 .NET Core Framework .NET DataStore .NET Std Framework 32-bit 64-bit ADO.NET AEM AI Algorithm Amazon AWS Android Apache API APK App Store App Store (Apple) Appeon Workspace Appeon Xcelerator Plug-in Architecture Array ASE Asynchronous Methods Authentication AutoBuild AutoCompiler Automated Testing Automation AutoScript Azure Barcode Base64 Batch BigData BLOB Branch & Merge Browser Bug Build Button C# C# Class Importer C# Editor C# Model generator Calendar Camera Certificate Chrome Citrix Class Client Client/Server Cloud Cluster Collection COM Command Line Compiler Compression Computed Field Configuration Controls Cookies Cordova Crash Cross-Platform Crosstab CSharpAssembly CSharpObject CSS CSV Cursor Data Database Database Driver Database Painter Database Profile Database Provider DataObject DataSource DataStore DataStore (C#) DataStore (PS) DataType DataWindow DATE DATETIME DB2 Debug Debugger Debugging Deployment Design DLL DO-WHILE Dockable Docker Documentation DOUBLE Download DragDrop Edge Edit Style Editor Elevate Conference Email Embedded SQL Emulator Encoding Encryption Enhancement Request Entity Entity Framework ERP Error Event Event Handler Event Handling Excel Exception Export Expression External Functions F# Field File File Access Filter Firefox Firewall Font FOR-NEXT Foreground Format Function Garbage Collection GeoLocation Git Graph HANA Hash Header HTML/5 HTTP/S HTTPClient Icon IDE Identity IIS IMAPI Import InfoMaker Inheritance Installation Integer IntelliSense Interface Internet Internet Explorer iOS IPA iPad iPhone IWA J# Java JavaScript JBoss JDBC JOIN JSON JSONGenerator JSONParser Kestrel Label Lambda Large File LDAP Library License LINQ Linux OS Load Balancing Localization Localized PBVM Log In Log Out Logging LONG LONGLONG macOS MAPI Maps MDI Memory Memory Leak Menu Merge MessageBox Messagging Method Migration MIME TYPE Mobile Model ModelStore ModelStore (C#) MSOLEDBSQL Multi Threading MVC MySQL n-Tier Namespace NativePDF NVO OAuth ODATA ODBC Office Offline OLE OLEDB Online Open Source OpenAPI OpenSSL Oracle OrcaScript Other Outlook Output Package Parameter Patch PayPal PB Classic PB Native PB.NET PBC PBD PBDOM PBG PBJVM PBL PBNI PBORCA PBVM PBX PDF Performance Permission PFC Picture Pipeline Play Store (Google) Plugin Popup Port POST PostgreSQL PowerBuilder PowerBuilder (Appeon) PowerBuilder (SAP) PowerBuilder Compiler PowerBuilder Runtime PowerClient PowerScript (PS) PowerScript IDE PowerScript Migrator PowerServer PowerServer Mobile PowerServer Toolkit PowerServer Web PowerServerLabel Print Properties Proxy Publish PULL PUSH Query Regression Release Renew Resize Response REST Retrieve RibbonBar RibbonBar Builder Rich Text Roadmap RPC Runtime Packager SaaS Scaffolding Script SDI SDK Security Server Service Session Single Sign-on Size SMTP SMTPClient SnapDevelop SOAP Sort Source Code Speech Recognition SQL SQL Anywhere SQL Server SqlBuilder SqlExecutor SQLite SqlModelMapper Storage Stored Procedure Subscription SVN Swagger Syntax TabbedBar TabbedView Tablet TabPage Target TE Control Testing Text TFS Theme TIME Timer TLS/SSL Tomcat TortoiseGit TortoiseSVN Transaction Transparency Trial Trigger TRY-CATCH TX Control Type UI ULONG UltraLite Uninstall Unit Test Unit Testing UNIX OS Update Upgrade Upload URL User Center User Object UWP Validation VARCHAR Variable Versioning Visual Studio Visual Studio Code VM Voice Warning WCF Web API Web Extensions Web Service WebBrowser WebForms WebLogic WebSphere WildFly WinAPI Window Windows OS WinForms Wizard Workgroup Workspace WPF XCODE XHTML XML Zoom
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.