Solved

PowerBuilder / SQL Server 2000 Performance Question

Posted on 2006-07-06
4
511 Views
Last Modified: 2013-12-26
Greetings All,

I have a very small application that I am rolling out to about 6 agents.  When it starts, it hits the database and pulls up 18 rows to view standing orders.  There are about 6K rows in the table that I am hitting.

The 3 installs went fine.  The users on 4th, 5th and 6th installations could not get the application to run.  Just an hour glass.  A few minutes, eveyone (using another application that hits the same database) got runtime error 462 and we had to reboot the database.

The manager of the group told me that they started getting the error the day before, so I don't think it was my app (alone).

These are fairly simple queries.  The SQL was automatically generated from the where clause that I used in the datawindow.  Each installation uses a system DSN (which is also used by another reservation system).

Question: Could the PB application be conflicting with the DSN that is in use by the reservation system?  Obviously the user can only use one application at a time.  There is no timer event that would cause my application to refresh by itself.

I thought maybe sql server does not have enough memory, or perhaps there are not enough licensed connections?

Any advice here would be very help.

Thanks!!

PEM
0
Comment
Question by:pemurray
  • 3
4 Comments
 

Author Comment

by:pemurray
ID: 17063382
One more thing...

I realized that I did not have code in the application close event to 'disconnect' from the database.

Would that cause a serious problem?

Thanks!!

PEM
0
 
LVL 4

Accepted Solution

by:
batchakamal earned 500 total points
ID: 17092923
Use SetTransPool function

SetTransPool(10,10,10)

and before connecting to the database, check your AutoCommitt and Lock.

It supposed to be

SQLCA.Lock = "Exclusive"
SQLCA.Autocommitt = True
0
 

Author Comment

by:pemurray
ID: 17093556
Greetings Batchakamal,

I forgot to mention that the application also does inserts and updates to the database.

Is the code above still okay?

Does it all go into the application open event?

Thanks!!

PEM
0
 

Author Comment

by:pemurray
ID: 17095405
Batchakamal,

My application is a client/server application.  Not a distributed application.  Does SetTransPool still apply?

From PB Help:

A distributed PowerBuilder server application that services a high volume of short database transactions to the same data source could issue the following statement in its application Open event:

server_app.SetTransPool(12,16,10)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

758 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

22 Experts available now in Live!

Get 1:1 Help Now