In ASA stored procedure how to view the existing SP using commands - sybase-asa

In ASA database What is the command to view the existing stored procedure code in command prompt?
Pls help me.
Thanks in advance.
Version ASA 9.0

sp_helptext 'dbo.procedure_name'

Related

Dump DDL and Data of DB2 with DataGrip Ultimate

I'm just recently starting to use Datagrip and DB2 engine. Is there a way to export both DDL and Data into 1 SQL file and then later run the file to create a new schema.
I only see there a option to export ONLY DDL or ONLY Data. Thanks in advance.
It is currently impossible, please follow: https://youtrack.jetbrains.com/issue/DBE-10677

Datastage v9.1 - run user defined sql query file using odbc connector

I want to execute multiple lines of DDL and DML commands from a file in datastage.
I have used the ODBC connector with the write mode selected as user defined SQL and the and the SQL statements are available in the file.
But the connector stage is not executing the file. If anyone can provide me with guidance it would be greatly appreciated.
Thanks
If you can provide the more details on how you were using the 'DDL & DML statements in the file, warning messages & ODBC configuration etc.. It will help anyone to provide some suggestions- It will save your time as well to resolve it.

Procedure dialog not available in pgadmin4 version 2.0 in postgresql?

I am new to postgresql.I would like to convert stored Procedures and functions from MS SQL server. However in the Pgadmin client , the procedure dialog is not available and Function dailog behaves more or less like procedure?
So Functions and procedures are same in the postgresql. How do we distinguish them here?
OS : windows 7 64 bit
EDB server installed : 10.1.3
pgadmin 4 version : 2.0
Please let me know if there is any understanding Gap and if there is some installlation/upgrade, please share the link.
Thanks in advance.

Golden Gate ERROR OGG-05263 No GGSCHEMA clause

In OTN I am using these instructions to "try" and configure GoldenGate with a MSSQL Source DB to an Oracle12c Target DB
http://www.oracle.com/technetwork/articles/datawarehouse/oracle-sqlserver-goldengate-460262.html
Replicating Transactions Between Microsoft SQL Server and Oracle Database Using Oracle GoldenGate
Everything goes okay up till the command:
GGSCI (MSSQL) 2> ADD TRANDATA HRSCHEMA.EMP
Where I get the error:
ERROR OGG-05263 No GGSCHEMA clause was specified in the GLOBALS file. Please specify a GGSCHEMA shema name.
I searched and saw that currently there was no "GLOBALS" file. So I created one:
F:\GG\dirprm\globals.prm
And added one line:
GGSCHEMA hrschema
That did not help.
Still getting the same error.
Any suggestions?
Are there GoldenGate Environment variables that I need to have??
Thank-you in advace for your help.
I got the answer from Oracle Support:
The GLOBALS file should be in the main installation folder. Please remove the same from the dirprm file.
Also the GLOBALS file does not have extension. I could see that you have mentioned it as GLOBALS.prm
Made those changes and it works!

PostgreSQL how to restore a blob entry to the file system

I want to restore a blob entry to the file system as a file.
How can I do that with PostgreSQL on Linux?
Could you direct me towards an appropriate solution(s)?
Thanks in advance.
See this section 32.3.3 of the PostgreSQL docs on Client Interfaces for how to use the lo_export function.
You can use my pgsql-fio extension that provide basic file system functions.