Questions tagged [sybase]

Sybase, a subsidiary of SAP, produces a variety of data management products. For their flagship RDBMS, Adaptive Server Enterprise, please use [sap-ase]. For Adaptive Server Anywhere versions 6-9, use [sybase-asa]. For ASA v10 and above, use [sqlanywhere]. For the columnar data warehouse IQ, please use [sap-iq]. For the Advantage Database Server, please use [advantage-database-server].

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

How do we connect to Sybase DB using pyodbc, FreeTDS driver and an SSL port?

I am writing a python app that uses pyodbc and FreeTDS to connect to a Sybase DB. Here's the config - pyodbc.connect('driver=FreeTDS', host=host, database=database, user=user, password=...
Sagar's user avatar
  • 1
0 votes
0 answers
7 views

Does BackInt support for Sybase Backup?

BackInt agent was natively integrated with SAP systems and supports backup of SAP HANA database. Does BackInt supports for Backup of Sybase(ASE) database instances as well? Didn't find enough ...
medasani pavan kumar's user avatar
1 vote
1 answer
10 views

Anonymize varchar column Sybase Ase

How to do anonymization in a varchar column in Sybase ASE ? I want to use the update query The column is already fulfilled and I just want to anonymize the column with random characters. Thanks in ...
tt0686's user avatar
  • 1,781
0 votes
0 answers
27 views

Create DBLINK from oracle to SYBASE

I have a Windows server 2019 with Oracle Database 11.2.0.4 installed on it. There is a server with SYBASE 12.5.3 on Windows Server 2019. How to make DBLINK from Oracle to SYBASE? More precisely, where ...
Alex K's user avatar
  • 5
0 votes
0 answers
36 views

Sybase to MSSQL migration: Lock Datarows while create table

I am migrating a Sybase DB to a SQL Server DB. I can see that existing Sybase tables have lock datarows or lock allpages specified along with create table statement something like this: create table ...
CyberMafia's user avatar
0 votes
0 answers
24 views

strange close_wait connection behavior using wildfly connection pool with sybase DB

(using wildfly 23, jpa, and sybase anywhere RDBMS) I have a strange behavior in one of our production environments. I am kind of lost and would appreciate suggestions on how to tackle this: at a ...
gkatz's user avatar
  • 87
0 votes
2 answers
93 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/...
scoder's user avatar
  • 2,467
2 votes
0 answers
28 views

How to make Connection to sybase db not using jconnect4 in java

I am successfullt able to connect to sybase db using jconnect4 lib & bcpkix-jdk15on and below code import com.sybase.jdbc4.jdbc.SybDataSource; import java.sql.Connection; import java.sql....
Seriously's user avatar
  • 175
1 vote
0 answers
17 views

Trying to connect Sybase db using golang, but getting following error : netlib: unexpected EOF while reading message

I am using one of the golang sybase driver "github.com/thda/tds" to connect sybase but not sure what is wrong with it, connection is happening with perl code but golang throwing error when ...
akash kumar's user avatar
5 votes
2 answers
145 views

Getting ClassNotFoundError for oracle and sybase db connection if ran the war, but in eclipse it is working fine

I have built an feature in application to test db connection. In local i'm able to test all three db sqlserver, sybase and oracle. but if create war file and run war in windows/linux server then ...
Seriously's user avatar
  • 175
0 votes
0 answers
21 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) ...
skY's user avatar
  • 111
0 votes
0 answers
13 views

Msg 4845, Level 16, State1 Bulk copy failed. Client does not have the capability to bulk copy into the data-only locked table

I am trying to insert data from file to sybase table but while using bcp_init I get this error Bulk copy or insertion. When I am trying to insert an empty file with bcp on terminal it works. But fails ...
Siddhi Thakur's user avatar
-1 votes
1 answer
21 views

Is it possible to set value of a column by executing queries stored in another column as string, without using loop?

I have a table with 3 columns, column A is date in varchar form; column B is also varchar, each cell stores a query that will return a number; column C is NULL by default, and is supposed to store ...
Yuhan's user avatar
  • 39
0 votes
0 answers
29 views

Improve performance query on SYBASE ASE

I hope you could help me on the following problem. I have the below query which is taking too munch time (hours) and it is eating all the resources available ( currently I have 2 engines of sybase ase ...
user3303852's user avatar
0 votes
1 answer
26 views

Powerbuilder preprocessor directive and DEBUG not working

I'm having some buggy behavior with DEBUG and precompiler directives. I have a PowerBuilder application. In the production environment it logs in using a certificate, but in Dev, to make things easier ...
Kmus's user avatar
  • 21
0 votes
0 answers
20 views

Creating fuction listagg not returning desired results

I am trying to create a function similar to listagg in oracle. though its not returnig the desired data CREATE FUNCTION dbo.MY_STRING_AGG ( @input VARCHAR(4000), @separator CHAR(1) ) RETURNS @...
Baalback's user avatar
  • 386
0 votes
1 answer
36 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 ...
TheUnborn's user avatar
0 votes
3 answers
77 views

How to use limit in subquery?

I need to write a single query to get the results for the below cases. First I need to get the 'Transfer_Request_ID' from the below query, which will give more results. As the request id is auto ...
mmar's user avatar
  • 1,850
0 votes
1 answer
47 views

Exists similar functionality as Query Store in SQL Server

I would like to ask, if exists the same functionality Query Store in Sybase as in SQL Server? Or can I join DB from Sybase to SQL Server as linked server and check showplans?
David Nový's user avatar
0 votes
0 answers
13 views

SSRS report server DB connection setup with Sybase

I am trying to configure Sybase 15 database connection details in the new windows SSRS server as follows. But getting error "Specified method is not supported." which I click on test ...
user1249023's user avatar
0 votes
0 answers
23 views

How to log Sybase queries in SpringBoot

Is there any way to log all the queries & procedures in Sybase DB with Spring Boot Application having logback ? As of now, I tried following in my logback-spring.xml - <logger name="org....
Himanshu Dixit's user avatar
0 votes
0 answers
6 views

Receive Output of Sybase ASE on the client

I'm trying to undersstand how I can receive the Sybase output on the client, so that I can trace the stored procedures that were additioned with several prints. Just to give a more clear need, I have ...
MaxPer's user avatar
  • 31
0 votes
2 answers
64 views

sybase sql: choose records for which sum of values in column XYZ equals some specific value

Using Sybase SQL, I want to find all records fulffilling certain simple requirements (such as DEBITCREDIT == 'D') AND the following requirement: the sum of the nominal values of these records must ...
Thomas_SO's user avatar
  • 2,003
1 vote
0 answers
38 views

pyodbc errors when querying datetime column returns NULL value

I'm connecting to a SYBASE database using pyodbc and querying a table that has NULL values for some datetime attributes: month must be in 1..12 The attribute Type is defined as 'datetime' in the ...
brainoverflow's user avatar
-1 votes
1 answer
41 views

Dropping a constraint in sybase ASE [Cannot drop the constraint]

I want to drop constraint of a column, like this, alter table dbo.menu_items drop constraint FK_menu_items_menu_icons but I am getting an error, SQL Error [3701] [42S02]: Cannot drop the constraint '...
Jabri Juhinin's user avatar
0 votes
0 answers
39 views

How to avoid duplicate key when insert getdate()

I have a table TransactionLog with primary key transaction_datetime. There are many transactions calling the service to insert record into this table. The following shows part of the stored procedure ...
kevin123's user avatar
1 vote
1 answer
74 views

SAP EntityFrameworkCore Database First

Is there support for the SAP entityframework core with Scaffold? We want to establish sybase connection with asp.net core api, but we want entityframework core support for database first approach. Is ...
Halit EMEN's user avatar
0 votes
0 answers
16 views

How to set the default connection charset for SqlAnywhere 11 Windows network server?

I have an application that doesn't have the connection charset defined in its JDBC connection string to SqlAnywhere 11 network server in a Windows environament. Since I cannot change the application ...
Tobia's user avatar
  • 9,175
0 votes
1 answer
30 views

Check if flag on or off in Sybase ASE

In Sybase ASE, is there a way to check if any of the flags is on or off via a query?
levant pied's user avatar
  • 3,896
0 votes
0 answers
38 views

Need to copy data from one table to another with same structure

I need write a stored procedure which will be copy data from source table to destination table (both are on the same server). We have 1.2 million records to be copied. I have used #temp table to copy ...
Prashanth Subramanian's user avatar
-2 votes
1 answer
53 views

facing issue when im executing my query in sybase

when i execute my query in sql its working fine but when i execute it in sybase it gives me an error Error: near line 1: in prepare, near "(": syntax error (1) i searched about it what i ...
hassan farhat's user avatar
0 votes
0 answers
56 views

How to recompile all Sybase store procedures

We have more than 800 Sybase store procedures, we would like to recompile all. If I recompile one by one , it will take a lot of time. Sp_recompile works only after next run, and you have to know ...
Kelvin Doan's user avatar
0 votes
0 answers
35 views

Regarding locks in Sybase ASE Database

I am using Sybase ASE DB system. On one fine day I observed a deadlock on one table. here, process1 was trying to write to the table, and the other process2 received a notification from process1, and ...
kirant's user avatar
  • 13
0 votes
0 answers
95 views

Azure Data Factory | Sybase database | Unable to fetch data

I am trying to fetch data from 20 different tables on Sybase database using Azure Data Factory. Copy Activity Details Source: Sybase database Source tab Query: select * from <tablename> ...
Pranjal's user avatar
  • 11
0 votes
0 answers
11 views

System.ArgumentOutOfRangeException when retrieving Exception Message Property

When retrieve Exception Message Property, it throws an exception: A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll" I'm trying to execute query at ...
mai mostafa's user avatar
1 vote
1 answer
136 views

Data from Sybase image column truncated at 32 KiB when retrieved via pyodbc

I have PDF files stored as image datatype (large binary data as mentioned in the doc) in a sybase database table. I am trying to read one of those files from the db and write it to a file in a local ...
Mohamed Amine Mejri's user avatar
0 votes
1 answer
594 views

How can I query ASE Sybase database to get all users with creation date and assigned roles?

Can someone please help me to get list of all users, created date and assigned roles to users in Sybase database? I tried all ways but no luck. Thank you. I tried to find in syslogins and sp_display ...
Sanchit's user avatar
0 votes
0 answers
61 views

How to resolve datetime issue while importing data from Sybase to SQL Server using CSV

I am to migrate data from Sybase DB to a SQL Server database using CSV upload. I have this in the Sybase: CREATE TABLE dbo.employee_payments (     Trans_Id            numeric(12,0) IDENTITY,     ...
Ayobamilaye's user avatar
  • 1,121
0 votes
0 answers
31 views

Looking for a sql command to find active triggers, and their associated tables

I am trying to find active triggers and their associated tables in Sybase. What would be a written query? I found the following SQL command useful select * from sysobjects where type = "TR"...
Ali Saberi's user avatar
0 votes
1 answer
32 views

How to find the minimal set of a set of databases sharing a set of files using SQL?

I'm using ancient Sybase database servers. In those servers, I can do a offline backup where I can backup a set of device files, for databases that are created on that device files. The mapping ...
Ben Slade's user avatar
  • 438
0 votes
0 answers
126 views

How to resolve string[DT_STR] error in csv file import

I exported a table and also its data from Sybase DB in csv file. Then I intend to import it into MSSQL Server using SSMS 18. I created the table in MSSQL Server retaining the same data types as shown ...
Bami's user avatar
  • 383
0 votes
0 answers
17 views

.Net framework connection with Sybase DB with help of Entity framework

Is sybase DB support entity framework with .net Framework 4.6.2 ? sybase DB should connect entity framework with .net Framework 4.6.2 ?
Sanjay Mishra's user avatar
0 votes
1 answer
57 views

How to migrate stored procedure response as a table from Sybase into MSSQL

In my Sybase DB, I have this stored procedure which gives me the list of employees. /* exec SpGetStaffData null */ create procedure dbo.SpGetStaffData as begin select ...
Bami's user avatar
  • 383
0 votes
2 answers
137 views

SYBASE 17 - Insert result set into Temp Table from sp_columns

I'm new to Sybase but familiar with MS SQL Server. I'm trying to take the results from sp_columns and put it into a temp table. What is the proper syntax for this? So far I have the below code but it'...
avb's user avatar
  • 84
1 vote
1 answer
98 views

Spring Boot + Spring Data JPA + Sybase: No keys were automatically generated Sybase IDENTITY column

I am migrating one legacy application to a newer Apache Camel Spring Boot application where I am using Spring Data JPA to interact with Sybase database. Legacy application uses older technologies ...
CyberMafia's user avatar
0 votes
1 answer
310 views

Spring Data JPA / Hibernate generating single id for all the entities persisted within single transaction

I have a legacy application which I am trying to migrate to newer Apache Camel Spring Boot application where I am using Spring Data JPA and Hibernate as an ORM framework. Sybase is the DB used by ...
CyberMafia's user avatar
0 votes
0 answers
37 views

dbisql wrong output when ran via Windows batch script

I am querying a Sybase SQL Anywhere 17 database to get a count from a table, and outputting that count (number) to a txt file. Running in cmd window is fine, but running via batch script gives a ...
Mark Jones's user avatar
0 votes
0 answers
23 views

Sybase Database Support on Node.js with SSL

I am working on this project that has been bugging me for a while and wanted to ask community's help on it. So basically we have an On-Prem Sybase database that needs to communicate with a cloud micro ...
Sam's user avatar
  • 57
0 votes
1 answer
138 views

Unable to use SQL Anywhere Sybase packages for Java + SQL Anywhere 17 does not install Sybase Central in any systems

There are two parts to this question. I have been trying to install and test SQL Anywhere Sybase connection using an existing project in Eclipse. I did the following: Installed SQL Anywhere 17 ...
Arjun G's user avatar
  • 53
0 votes
0 answers
56 views

C# Dapper IN clause very slow

I just come across a Dapper performance issue. Pseudo code is like: connection.Query("select field1, field2, field3 from table1 where field1 in @inputs", new { inputs }); It has taken ...
James Rao's user avatar
  • 168

1
2 3 4 5
67