Questions tagged [sap-iq]

SAP IQ (formerly Sybase IQ) is a column-based RDBMS used for business intelligence, data warehousing, and data marts. Produced by Sybase, an SAP company, its primary function is to analyze large amounts of data in a low-cost, high-availability environment.

sap-iq
Filter by
Sorted by
Tagged with
0 votes
1 answer
15k views

ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed stackoverflow

While connecting to sybase, i'm trying to start my server using startserver but, i have encountered the above error.
0 votes
0 answers
21 views

Rounding/conversion of Number/decimal in Sybase IQ

I am trying to generate a report from Sybase IQ(new to me) and need to convert the amounts field as per user requirement. Current report is generated by Oracle Database and I need to replicate same ...
0 votes
1 answer
59 views

Connect to Sybase IQ server using Python script on Mac M2

I am trying to connect to the Sybase server to pull some data using a Python script running on my Mac M2 chip. The SAP IQ (aka Sybase IQ) server version that I am trying to connect: SAP IQ SAP IQ/16.1....
0 votes
2 answers
91 views

count(Distinct) windowing function alternative

I have written a query to take compare of columns/data of 2 database table in oracle which will print records where there is any difference in rows 2 tables based on key columns (fields in partition ...
0 votes
1 answer
48 views

Azure Data Factory | Sybase database | Error While pulling Data

Pulling Data from Sybase IQ Database hosted on an OnPrem VM using Azure Data factory into Azure Blob. Copy Activity Details Source: Sybase database (SHIR Installed on VM - Connection Successful) ...
0 votes
0 answers
15 views

Sybase IQ Transaction Status

We are running Sybase IQ V 15.4. We often see transactions that are shown in sp_iqtransactions as COMMITTED for a long time before being APPLIED. I'm trying to find an explanation of what is happening ...
0 votes
2 answers
116 views

SQL get the exact date difference between two dates

I need to calculate the exact difference between the two dates For example difference between date1= '2011-06-27' and date2= '2013-06-27' should return 24 months whereas for date1= '2011-06-27' and ...
3 votes
1 answer
15k views

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified from Window Service

i have created a windows service which needs to connect to Sybase database using ODBC connection in regular intervals and process data. I am getting below error when i am trying to open ODBC ...
0 votes
0 answers
33 views

Reflecting SQLAlchemy MetaData Object from Sybase IQ Database

I am trying to perform metadata reflection in SQLAlchemy using a Sybase IQ database. I'm connecting to the database using sqlalchemy-sybase, a third-party SQLAlchemy dialect based on the Sybase ...
0 votes
2 answers
122 views

How to exclude rows in SQL if the same key exists in other row with different state

I have some table data like this: account createddate closed_date account_type Initial_Amount Record_date Status 1234 01/02/2023 01/01/2099 Normal 100 01/02/...
0 votes
0 answers
36 views

Prevent snapshot of entire table during data load in SAP IQ

Tryin to load 20GB of data in 40 batches (0.5 GB each) using LOAD TABLE .. FROM CSV command in a table which is 200GB in size before my load commands. few of these writes sometimes (not every-time) ...
1 vote
1 answer
62 views

How to have different calender dates as business month in SQL

account createddate closed_date account_type Debit_Amount txn_date 1234 01/02/2023 01/01/2099 Normal 100 01/02/2023 7892 02/02/2023 01/01/2099 Premimum ...
0 votes
1 answer
103 views

How to exclude a column using SELECT * [except columnA] in Sybase

I want to select all columns but remove some columns in Sybase. What is the solution for this? I want something like this: select * from table_name except [column_names] There is no function ...
1 vote
1 answer
63 views

Why SAP IQ load table option is faster than import wizard in the Interactive SQL?

I did CSV file import using SAP IQ LOAD TABLE SQL command which did it in less than a second, but with Interactive SQL import wizard tool it took almost 2+ hours. I am interested to know why it was ...
2 votes
1 answer
833 views

Extracting SAP SQL Anywhere .db/.log database files with free unix tools?

I've recently gotten a copy of a SAP SQL Anywhere 12.0.1.3152[1] .db and .log file. I don't have access to the source database, only these two files. This is an ARGUS database of public records I'd ...
0 votes
1 answer
493 views

Sybase-IQ : Query with join returns always 0 rows (but count(*) give rows)

I have a very strange comportment on my Sybase IQ database. I have 2 tables : Table A : 47 000 000 rows Table B : 497 rows If I make the following query : select count(*) from A inner join B on A.ID = ...
0 votes
0 answers
621 views

How to connect to Sybase IQ16 using Go?

I have an idea to write an application to work with SAP Sybase IQ16 server using Go language. Platform windows/nix does not matter yet. I had worked with this database using C# later, and I remember, ...
0 votes
1 answer
2k views

Connect to sybase IQ with dbisql pop the error The DISPLAY environment variable is not set

My purpose is connect to Sybase IQ with dbisql OS:Linux XIYL50837198A 3.0.101-84-default #1 SMP Tue Oct 18 10:32:51 UTC 2016 (15251d6) x86_64 x86_64 x86_64 GNU/Linux My sybase IQ version is 16-1 My ...
4 votes
1 answer
2k views

Sybase IQ Load Table using client file is failing

I am using Sybase IQ 15 version database. trying to load IQ table from delimited flat file Load Table test (a,b) using client file '/xyz/test.dat' ESCAPES OFF FORMAT BCP DELIMITED BY '|'; is it ...
0 votes
1 answer
857 views

SAP DS is not pushing down ifthenelse or decode()

I'm designing a DS JOB targeting a SybaseIQ and realize that IfthenElse Syntax and DI Decode() function are not getting pushed down to the database server. Is there any equivalent DI function that I ...
0 votes
1 answer
77 views

SAP Sybase IQ - create service with complex type input parameters

I guys, I've a really big problem using Sybase IQ to publish a web service. From our customer we received an XSD containing the structure of wonted input parameters for a web service that we have to ...
0 votes
2 answers
3k views

Unable to install Sybase Client on Windows 2012 Server R2

I am trying to install Sybase client version 16.0 on Windows 2012 Server R2 (64-bit OS,x-64 based processor), but am getting the following error while running the set up file: Fatal Application Error:...
0 votes
2 answers
952 views

Combine multiple queries into a single result set with a JOIN, not UNION

I dont want to argue what is performance-wise better, i work in Sybase IQ and have to combine historical tables into one select, i tried with an union, it is not possible, i run out of working temp ...
0 votes
2 answers
2k views

SAP IQ 16.0 Load table encoding/charset

I try to load table from a txt file to Sybase IQ Server using LOAD TABLE statement. And I had encoding trouble getting inserted records like this ћРР РђРЎРўРќРћ. And I solved my problem using set ...
1 vote
2 answers
4k views

SQL Anywhere Error - 210: User 'another user' has the row in 'tablexyz' locked

I have multiple Java process which launches serially one by one. This process does job of loading data into tablexyz and then tablefinal. After first process finishes its job I get the following error:...
1 vote
2 answers
2k views

Connect python to Sybase IQ

First of all thank you for your help. I was trying to retrieve some data from a sybase IQ database using python, but I can not make it. I've tried with the following code( from https://github.com/...
2 votes
3 answers
6k views

Sybase IQ connection in Python

I've spent a few days trying to determine how to connect to a Sybase IQ database through Python 3.6. I've tried pyodbc and pymssql, to no avail. Below are two code snippets that I've been working on, ...
0 votes
1 answer
152 views

Sybase dblib stored procedure

I am using Sybase DB and using dblib interface( C++ Interface) to connect and pass commands to Sybase DB. I have one stored procedure added to Sybase DB. Below is the signature of stored procedure: ...
0 votes
0 answers
1k views

SybSQLException: Attempt to update or insert row failed because resultant row of size larger than 1962 bytes

I'm getting this error with sybase while updating records to my table. Below is my table definition CREATE TABLE BATCH_STEP_EXECUTION ( STEP_EXECUTION_ID BIGINT NOT NULL PRIMARY KEY , VERSION BIGINT ...
0 votes
0 answers
218 views

SQLExceptionHelper : Input parameter not set, Index : 0

I am using spring-data-rest & hibernate to expose a table "File(Id, Name)" from a SAP IQ(Sybase IQ) database. The below error occurs when I do a "GET" on the "File" ...
2 votes
2 answers
444 views

Using LIST and sorting in Sybase IQ - multiple LIST selects throws off "ORDER BY"?

My query does something like... LIST( column1, " ;" ORDER BY column2) This works. When I add more LIST functions in my SELECT then the ORDER BY is ignored. Anyone know why that might be occurring? ...
0 votes
1 answer
158 views

How to dynamically execute SQL in SAP IQ, to consume in Crystal Reports

Goal: I have a stored procedure in SAP IQ that uses execute() to execute a dynamic SQL statement into a temp table, and then it selects from the table as the output. Problem: The proc returns the ...
0 votes
1 answer
704 views

Transaction X attempted to access an object created by transaction Y via JDBC

I have JDBC code which talks to Sybase IQ. One of the thread is loading/update data into one Sybase IQ table say t1. Other threads will try to fire SQL query on table t1 after the first finished ...
1 vote
2 answers
393 views

How to UPSERT a record in SAP ASE Sybase 16?

I am literaly following the SAP documentation 1st example on UPSERT a record in ASE: https://help.sap.com/viewer/cbed2190ee2d4486b0bbe0e75bf4b636/16.0.3.2/en-US/faf583d9adc547ad8a164bb3f41ea6cd.html 1&...
0 votes
1 answer
211 views

Syntax error near 'unlock' - 'alter role warehouse_user unlock'

Trying to run - 'alter role warehouse_user unlock' on Sybase IQ Failed due to SQL Anywhere Error -131: Syntax error near 'unlock' on line 1 someone knows why?
1 vote
0 answers
1k views

Generating DDL's using DBeaver through CLI

I'm looking for a way to automate the generation of DDL's from my database (Sybase IQ). I found that DBeaver (Windows) can generate the DDL's and that it also has various CLI parameters to control ...
3 votes
1 answer
925 views

How to get the table name that is related to specific schema in sybase IQ

My requirement is to use syscolumn and systable system tables. By using these 2 tables, return the specific table within specific schema. But systable is holding same table name from 3 different ...
1 vote
0 answers
238 views

How to handle TZ names in Sybase IQ 16

In the context of a file ETL process (plain shell + BCP to temporary table + import to final table stored procedure), have a new complication with a import of data from a remote Oracle Database into a ...
2 votes
1 answer
836 views

sybase interactive sql initialization error (java path)

Getting this error, from the looks of which it's a missing classpath. Trying to force the classpath via setting it like below doesn't help. set CLASSPATH=C:\Sybase\Shared\SAPJRE-8_1_008_64BIT\lib ...
1 vote
1 answer
286 views

Sybase IQ slow with JOINs?

I keep hearing Sybase IQ works very badly with joins and in my current job main data model (Sybase IQ DB) is View-based with huge denormalized table underneath and still lots of hardcoded logic and ...
0 votes
1 answer
994 views

Connection string for password encrypted Sybase in C#

I have this connection string, DRIVER={Adaptive Server Enterprise};server=server_name;database=db_name;port=port_no;uid=user_id;pwd=password; using which I could connect to Sybase database in C# using ...
0 votes
0 answers
202 views

Column is not accessible using sybase

I'm trying to load a table using SAS but getting an error. This code worked in the past, but since sybase was upgraded it doesn't work with SAS. proc sql; connect to odbc as db (dsn=sas_xxx uid=&...
0 votes
1 answer
45 views

Flashback table rows in SAP IQ 16.0

My question is about "flashback" table in SAP IQ 16.0 . Lets assume I have a table called tab_1 and I updated my table rows and committed accidentally. Is there a way to "flashback"...
0 votes
1 answer
380 views

How to resolve "SQL Anywhere Error -265: Procedure 'current_schema' not found" while configuring liquibase.properties for use with SAP IQ instance?

I am having an issue getting Liquibase configured to connect to my database/schema on SAP IQ instance. An issue with the driver or I have the incorrect driver. ERROR: SQL Anywhere Error -265: ...
0 votes
1 answer
247 views

How to change the owner for all Stored Procedures at once in Sybase IQ

Sybase IQ is new to me. In my Schema, I have 225 tables and 100 stored procedures. Attempting to alter the owner of every object. I was able to change the owner of Tables using the ALTER command. ...
-1 votes
1 answer
2k views

Sybase IQ - Float to Numeric/Decimal conversion changes the scale of the output

I have a follow up question with regards to a similar issue I'm having, as the one posted on this thread: Why when converting SQL Real to Numeric does the scale slightly increase?. I'm using Sybase IQ ...
0 votes
1 answer
569 views

Sybase IQ - Pull the last 30 days of data where the most recent date is not today

Objective: Pull the last 30 days of data from a table that has a variable end date Background: I have a table that contains purchase information but this table is only updated every two weeks ...
0 votes
1 answer
149 views

SQL Discard previous records from a query when condition is met

Please, I need to discard the records before when the condition is met and keep only those equal to and after the date that condition is met. Likewise, if the condition is not met in all the records ...
0 votes
2 answers
11k views

how to modify a column's datatype in sybaseIQ

Does anyone know how to modify a column's datatype in sybaseIQ? ie i have table: "MY_TABLE" with col STATUS varchar(100) i want to change it to varchar(10) alter table "MY_TABLE" modify "STATUS"...
0 votes
2 answers
312 views

Slowness in SQL query with subquery

My SQL query becomes too slow when a subquery is added in WHERE clause even though the individual run times of the queries is less than 1 minute. The query has the following skeleton SELECT COL1, COL2,...

1
2 3 4 5 6