Discussions tagged Embedded SQL
SQL select from PowerBuilder returns only part of data
- Resolved
- Issue
- Last updated 7 months ago
- MARK APTEKAR replied 5 months ago
Hi, Using PowerBuilder 2019 R3 build 2703 with SQL Server version ? ( I know it is new. 'SELECT @@version' returns Microsoft SQL Azure (RTM) - 12.0.2000.8 Jan 12 2023 05:25:39 Copyright (C) 2022 Microsoft Corporation )
DBMS=ODBC
DBParm=Conne...
Enhancement request: modify SQLSyntax in transactions SQLPreview event
- Resolved
- Misc
- Last updated 8 months ago
- René Ullrich replied 8 months ago
Hi all, have a happy new year!
I could not find another way to post an enhancement request for future PB versions, so I'll leave it here. If there is a better way to do so, please let me know.
We develop and maintain a quite large c/s application (...
Embedded SQL input variable value max length
- Misc
- Last updated 1 year ago
- Miguel Leeuwe replied 1 year ago
Hi,
I have some questions about the length of string input variable value in PowerBuilder embedded SELECT statement (PB 2019 R3 + SQL Anywhere 17).
We have some legacy PB code which splits string into 65535 character pieces, writes them to a temp. ...
Embedded SQL Issue / Guidance
- Resolved
- How-to
- Last updated 1 year ago
- Paul Murray replied 1 year ago
Greetings All,
I have an SQL call that I would like to execute in my script. It works fine in the SQL Manager, but PowerBuilder is not happy about it.
PowerBuilder did not like the Declare statement, so I tried moving 'POINT' into the select state...
Check embedded SQL when doing a full build
- How-to
- Last updated 2 years ago
- Markus Schröder replied 2 years ago
Hello,
when i do a full build of my workspace, Powerbuilder sends the embedded sql commands to the database.
Does Powerbuilder display incorrect sql statements anywhere? (in a postgres database i can see the incorrect statemants in a database logfi...
PowerServer Execute Immediate Use Database
- Resolved
- Advice
- Last updated 2 years ago
- Armeen Mazda @Appeon replied 2 years ago
Hi,
Greetings!
I have one PowerBuilder application that uses embedded SQL to change the context to a different database using the transaction object.
Execute Immediate "Use Database_Name";
where Database_Name is the database name
But when this ...
I like to generate a stored function in iAnywhere 17.
The code, tested in Central works fine, but I want to create the function in the database if not exits during software application using EXECUTE IMMEDIATE (:ls_sql_string).
But there are double ...
Is datawindow sql considered embedded sql?
- Resolved
- Advice
- Last updated 3 years ago
- Chris Pollach @Appeon replied 2 years ago
I am preparing for a Powerbuilder upgrade from 8.0 to 2019. I will be moving embedded sql to stored procedures and db functions. Is the sql in datawindows considered embedded sql and is it a good practice to move it to stored procedures and have the ...
How to Make SnapObject 2.0 Use run the query from DwSelectAttribute
- Resolved
- How-to
- Last updated 3 years ago
- Gbenga Owolabi replied 3 years ago
I have been on this for days.
Please help with the snapobject v.2.0 usage below.
How do i make snapobject to run the multi-table sql query defined in DwSelectAttribute on the D_Rpt_Mm_Tbills poco class
public List<D_Rpt_Mm_Tbills> Test(param...
Select BLOB column with embedded SQL in Snap Develop 2019, not the R2
- How-to
- Last updated 3 years ago
- paulo gomes replied 3 years ago
Hi All,
There is a blob column in one of our Oracle database that has to be displayed to the Users in our web site.
We are coding a new REST Web API that one of our web sites is consuming the methods.
The Snap Develop is the PB 2019, not the PB 20...
Hello,
I have a simple Oracle stored function as follows:
CREATE OR REPLACE FUNCTION test_double(a_in NUMBER) RETURN NUMBER ISBEGIN RETURN a_in;END test_double;
And a simple test window with a multilineedit and command button whose clicked event s...
SQL transaction not working
- Resolved
- Issue
- Last updated 4 years ago
- Michael Kramer replied 4 years ago
Hello.
I´m trying to execute some exclusions in database
this is the code
DELETE FROM CONTRATO WHERE PESSOA_ID = :ID_PESSOA
DELETE FROM PESSOAS WHERE ID = :ID_PESSOA;
commit;
if sqlca.sqlcode < 0 then
MessageBox ("Erro na exclusão de dados"...
Auditing Triggers + Single SQLCA Transaction
- How-to
- Last updated 4 years ago
- Matthew Balent replied 4 years ago
PowerBuilder classic, currently using PB 2017
SQL Server
I have a large old PowerBuilder application + satellite applications. Like many large old PowerBuilder applications it uses SQLCA for 99% of its transaction handling. It also uses stored ...
IDE Setup
PowerBuilder 2017 R3 Standard Edition, build 1858.
Connected to MSSQL 2012 (SP4) using ADO.NET.
System Options as follows:
[ ON ] Free Database Driver Libraries on Disconnect
[ OFF ] Disable database connection when compiling and...
Migrate NVOs from EAS web app to REST Web API with PB 2019/Snap Develop
- Advice
- Last updated 4 years ago
- Ricardo Jasso replied 4 years ago
Hi all,
We are evaluating the efforts to migrate PB NVOs from an EAS web app to REST API using Snap Develop and PB 2019.
We already migrated few methods using the IDataStore object. However we noticed that several methods were missing from the orig...
Embedded SQL Select - Stringsize
- Issue
- Last updated 5 years ago
- Chris Pollach @Appeon replied 5 years ago
Hi,
is there an option to modify the maximal string size that can be selected with embedded SQL Select?
At the moment there is a limit of about 32000.
This is my workaround at the moment (dw_syntax can be larger than 32k):
selectblob dwsy...
- Page :
- 1