October 16, 2012 at 11:26 am
we're using SQL 2005 and running old VB 6 application. In this application we have a button that say "Create PO from this Quote" this button creates a New PO in the SQL database based on the current Quote.
The problem is that when we hit this button for a particular Quote then application seems hang and after 20 seconds or more it starts working and during the hang period we noticed that there are thousands of PO with the same number created in SQL database that we need to remove manually.
Please note that this is happhappeningh one particular Quote only and that we're using this application since 2001
with no issue at all.
Any help please.
Regards
October 16, 2012 at 11:43 am
Hi, welcome to SQL Server Central.
Unfortunately, you didn't give enough details for someone to help you out.
You need provide code or at least the actions that are followed by the button "Create PO" (I hope PO is purchase order because you might not be creating Post Offices or Pacific Oceans).
Remember that every problem is different and people in here can't read minds or see what you see.
I hope that you can explain your problem in a more detailed way so you can get help;-)
October 16, 2012 at 12:10 pm
aamir.a4 (10/16/2012)
we're using SQL 2005 and running old VB 6 application. In this application we have a button that say "Create PO from this Quote" this button creates a New PO in the SQL database based on the current Quote.The problem is that when we hit this button for a particular Quote then application seems hang and after 20 seconds or more it starts working and during the hang period we noticed that there are thousands of PO with the same number created in SQL database that we need to remove manually.
Please note that this is happhappeningh one particular Quote only and that we're using this application since 2001
with no issue at all.
Any help please.
Regards
Use profiler to trace sql code that this application sent to sql server, and I'm afraid that in 99% the bug is in application not in SQL Server
October 16, 2012 at 12:24 pm
I suspect this is a performance problem at the root, the 'hang' sounds like a query that's now running far too slow because of data volume, lack of maintenance or one of several other things.
Identify the slow code, tune it. Repeat until performance is acceptable.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 16, 2012 at 12:28 pm
Create a unique constraint on the PO number
October 16, 2012 at 1:01 pm
Dear All,
Thanks much for all your prompt replies, most appreciated.
We noticed that user entered "*" (asterisk) in the beginning of some data fields that we have removed manually and recreate the PO and it went fine this time. Though not sure why but it seems that the issue is resolved.
Thanks again.
Best regards,
October 16, 2012 at 4:08 pm
aamir.a4 (10/16/2012)
Dear All,Thanks much for all your prompt replies, most appreciated.
We noticed that user entered "*" (asterisk) in the beginning of some data fields that we have removed manually and recreate the PO and it went fine this time. Though not sure why but it seems that the issue is resolved.
Thanks again.
Best regards,
Are you using the content of those fields to build criteria from?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply