Executing Sybase ASE procedure in SQL Developer - oracle-sqldeveloper

I am trying to execute a Sybase ASE procedure in SQL Developer. It works fine in isql, but in SQL Developer it does not get executed.
When I execute it using 'Execute' command all I get is 'Procedure succeeded'.
Can you please let me know if there is any way to it?

Related

Can't edit and execute store procedure direct from squirrel-sql client

PostgreSQL 9.6
squirrel-sql-snapshot-20220608_2238
I success connect and execute sql queries. Nice.
But when I open source of store procedure I can't modify it and can't execut it.

SQLCODE=-104, SQLSTATE=42601, SQLERRMC=table;reorg ;JOIN <joined_table>

when running this query on db2 on DBeaver :
reorg table departments
i got this error (just on external channel):
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=table;reorg ;JOIN <joined_table>, DRIVER=4.19.49
what does this query mean?
how can I fix the error?
appricicate any help.
Try call sysproc.admin_cmd('reorg table db2inst1.departments')
as you are using DBeaver which is a jdbc application.
If you do not qualify the table name (for example, with db2inst1) then Db2 will assume that the qualifier (schema name) is the same as the userid name you used when connecting to the database.
DBeaver runs SQL statements, but it cannot directly run commands of Db2 - instead, any jdbc app can run Db2-commands indirectly via a stored-procedure that you CALL. The CALL is an SQL statement.
The reorg table is a command, it is not an SQL statement, so it needs to be run via the admin_cmd stored-procedure, or it can be run from the operating system command line (or db2 clp) after connecting.
So if you have db2cmd.exe on MS-Windows, or bash on linux/unix, you can connect to the database, and run commands via the db2 command.

How to run a SQL script in the SQL Developer?

I previously run a SQL script on APEX with the SQL Workshop but my account was blocked. So, I tried to run this in SQL Developer but I don't know how, I already have a connection between Oracle Application Express and SQL Developer.
Connect in SQL Developer.
Open a SQL Worksheet - we usually open one for you upon successful connection.
Put your code in.
Hit F5 or use the Execute as Script button.
We'll rip through your statements.
I talk about this more here.

Install4j - Is it possible to run TSQL queries?

When working with Server-Sql, sometimes it needs to use Transact-SQL queries. Is it possible to execute it through Install4j?
EDIT
I'm using the Server SQL JDBC driver: - com.microsoft.sqlserver.jdbc.SQLServerDriver.
When I'm trying to execute the following script in the SSMS it works without any problem:
USE [${installer:DbName}]
GO
CREATE USER [Guest] FOR LOGIN [Guest]
GO
USE [${installer:acDbName}]
GO
ALTER ROLE [db_owner] ADD MEMBER [Guest]
GO
, but when executing it with the "Execute SQL script" I get the following error: com.install4j.runtime.beans.actions.jdbc.ExecuteSqlScriptAction [ID 8123]: Error executing script line "U", error message: "Could not find stored procedure 'U'."
When enabling the statement delimeter with ; I'm getting the next error:
"Incorrect syntax near 'GO'."
It depends on whether the JDBC driver that you are using can handle TSQL or not, install4j does not have support for specific databases.

LibreOffice Base Execute Stored Procedure/Function

I'm busy setting up a odb file with LibreOffice Base to be used with LibreOffice Calc. The odb file is working fine I can create and save regular queries but it is giving an error when I try to execute a Stored Procedure/Function. When using pgAdmin I can execute the call just fine
select * from funcProduction(current_date, current_date);
This works and returns the data expected but when I try in LibreCalc Base using Queries > Create Query in SQL View, executing the exact same call to the Stored Procedure/Function it fails with an error
Syntax error in SQL statement
I'm not sure why there's an error or even where to find what the error is
Set the query to Run SQL command directly. This is best for any engine except HSQLDB 1.8.
Related:
https://ask.libreoffice.org/en/question/133467/base-andor-syntax-w-mysql/?answer=133476#post-id-133476
sql dialect in OpenOffice Base
https://superuser.com/a/899223/541756