1. Prasad Neelapala
  2. PowerBuilder
  3. Friday, 17 June 2022 12:12 PM UTC
Please let us know how to resolve the issue.
// Profile PRC SQL
SQLCA.DBMS = "SNC SQL Native Client(OLE DB)"
SQLCA.LogPass = <********>
SQLCA.ServerName = "***************"
SQLCA.LogId = "prcmsdev"
SQLCA.AutoCommit = False
SQLCA.DBParm = "Provider='SQLNCLI11',Database='PrcDb'"

[PRCLUATMSSQL1_DS]
;Autocommit defaults to false if no entry here - can be overridden in users registry
;DBMS = "SNC SQL Native Client(OLE DB)"
;DBMS = "OLE Microsoft OLE DB"
;DBMS = "MSOLEDBSQL SQL Server"
DBMS = "ODBC"
LogPass = <********>
ServerName = "tcp:mss-nm-7057-aol.nam.nsroot.net,2431"
LogId = "*******"
AutoCommit = False
;DBParm = "Database='PrcDb',Provider='SQLNCLI11'"
;Name=UATMSSQLL
;AutoCommit=true
;DataBase=PrcDb
;DBMS=SNC
;Driver={ODBC Driver 17 for SQL Server}
;Driver=SQL_NO_PROMPT
;SERVER=mss-nm-7057-aol.nam.nsroot.net,2431
;ServerName=mss-nm-7057-aol.nam.nsroot.net,2431
;QuotedId=No
;TrustServerCertificate=Yes
;Encrypt=Yes
;Trusted_Connection=Yes
;Port=2431
;DBParm=CharSet='iso_1',PWEncrypt = 'Yes'
DBParm="ConnectString='Driver={ODBC Driver 17 for SQL Server};QuotedId=No;TrustServerCertificate=Yes;Encrypt=Yes;UID=*******;PWD=*******;SERVER=mss-nm-7057-aol.nam.nsroot.net,2431;'"
;Lock="RR"


Product: PowerBuilder Category: Database
Version: 2019 R3 Build: 2082
OS:
Windows 10
Platform:
All
Database Type:
Microsoft SQL Server
 

 

 

 

 

 

Code:

long lDate

SetPointer(HourGlass!)

If cbx_toolbox.CHECKED THEN
//This is the default date. All records will be retrieved.
lDate = 99999999
ELSE
lDate = is_filters_toolbox.l_date
END IF

return retrieve(is_cusip, lDate)

 

 

 

I am trying to run the menus in the application it gives the mentioned error during runtime in PowerBuilder

Attachments (1)
John Fauss Accepted Answer Pending Moderation
  1. Friday, 17 June 2022 19:15 PM UTC
  2. PowerBuilder
  3. # 1

I'm posting this response in both of your question threads so that all can see...

Because you are new to PowerBuilder, I suggest you consider investing a little time and work through all of the 24 units of the free, on-line PowerBuilder Fundamentals course available at the Appeon-U section of the Appeon Community website:

   https://www.appeon.com/appeon-u/pb

 

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 17 June 2022 14:06 PM UTC
  2. PowerBuilder
  3. # 2

Stop.
Following up on what John said, using a LONG for a date is NOT recommended. It is STRONGLY not recommended.

For testing purposes, replace that with an actual date:   06/19/2022 for an American style  date or 19/06/2022 for a European style date. Just make sure that your WINDOWS settings match the style of date you are using:

How to Change Date and Time Formats in Settings
  • Open settings. Press the Start button, then click the settings cog, above the power button. ...
  • Click “Time & Language”
  • Open the “Change data formats” menu. ...
  • Change date format and clock format.
Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 17 June 2022 13:43 PM UTC
  2. PowerBuilder
  3. # 3

For testing purposes, temporarily set the DBMS property of SQLCA to "SNC TRACE" instead of "SNC". This will produce a trace log of all of the database activity handled by the SQLCA transaction object. Perhaps that will give you more information.

Passing a date value as a Long datatype is somewhat unusual. Make sure the datatype of the retrieval arguments as defined in the DataWindow Object match the datatype of the argument(s) to the stored procedure.

What have you done or tried in your efforts to resolve this issue? I did a web search for "sql server error procedure has already executed" and got several hits. I suggest you do the same.

Are you executing this stored procedure manually in PowerScript code anywhere? If so, do you always issue a CLOSE to release the resources related to executing the stored procedure?

Lastly, I'd like to echo Armeen's response. Those of use who respond in this forum, we volunteer our time and experiences to help others solely because we want to give back. We all (hopefully) have full-time jobs and (also hopefully) have a life outside of PowerBuilder and the suite of Appeon products. Please try to be a little less demanding in how you ask for advice or help.

Comment
There are no comments made yet.
Prasad Neelapala Accepted Answer Pending Moderation
  1. Friday, 17 June 2022 13:41 PM UTC
  2. PowerBuilder
  3. # 4

I am new to powerbuilder i am a beginner . It would be appreciated if someone can connect with me so that i can screenshare and provide what ever details you need . 

can you please connect with me?

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 17 June 2022 12:46 PM UTC
  2. PowerBuilder
  3. # 5

Prasad, nobody is going to be able to help you with this limited information you provide.  Also, you need to understand the community is volunteer basis nobody is obligated to help you.  If you don’t have the right mentality, you will be very frustrated and your project might even fail.  

Comment
  1. Prasad Neelapala
  2. Friday, 17 June 2022 13:41 PM UTC
I hope you can find some time to chat with me with screenshare
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 17 June 2022 13:54 PM UTC
Sounds like you need consulting services. You can contact one of our partners: https://www.appeon.com/consultants/consulting-partners
  1. Helpful
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.