sybase-ase

How could I get Apache to support PHP 5.3.6 connecting to Sybase ASE 15.7?

╄→гoц情女王★ 提交于 2019-12-11 05:25:01
问题 Referencing to my previous question below, where I am able to get PHP to talk to SYBASE ASE 15.7: Why does the connection to ASE fail when password encryption is required? As, I have mentioned, we ran into a little snag so I am posting another question here mean while making effort to resolve it ASAP, anyone has the expertise, please share. Of course, once we're able to figure it out, will share answer here as well. What I am look to do is similar to these couple postings below: http://tldp

Sybase *= to Ansi Standard with 2 different outer tables for same inner table

六月ゝ 毕业季﹏ 提交于 2019-12-11 04:39:08
问题 I am trying to migrate some legacy procedural code. I am having trouble figuring out the ANSI standard syntax to produce the same results. Below is one of the many combinations I have tried. What is the inner table for the second join, is it the output from the first join or is it the source table. Please help I have a lot of code to change. Original SQL Statement select * from JT1 a, JT2 b, JT3 c where a.ID *= b.ID and c.JOB *= b.JOB My Conversion select * from JT1 a left outer join JT2 b on

How to get proper column types in Sybase

烂漫一生 提交于 2019-12-11 04:36:32
问题 I have to know the data type of some columns in my table in Sybase ASE. Here is my query select name from systypes where type in (39, 47, 39, 39, 106 ) this returns char varchar sysname nchar nvarchar decimaln longsysname I was hoping it would return varchar char varchar varchar decimaln why are the results not as expected ? How can i get the proper column types ? I intend to use this information later to create a dynamic query that creates another table. 回答1: You need to join systypes to

outputing select statement result into file

懵懂的女人 提交于 2019-12-11 04:19:54
问题 I have an sql file that contains below script that is ran via isql. May I ask whats wrong with my output syntax? I am getting "Incorrect syntax near the keyword 'output'" Sybase ASE version is 15.7 select * from tempdb..M3_STI_extracts_checking output to employee.txt format ASCII GO 回答1: isql offers the possibility to write the output into a file, if you set the option -o (Utility Commands Reference). input.sql select * from tempdb..M3_STI_extracts_checking go isql -i input.sql -o employee

How to implement limit with Nhibernate and Sybase

三世轮回 提交于 2019-12-11 03:16:39
问题 We use Nhibernate 3.3 to connect to our Sybase Ase 15 database. Everything is fine except for the non support of the limit (or top). It is implemented in sybase but not in Nhibernate. Do you have a solution? I tried to create a CustomSybaseAse15Dialect where I change this: public override bool SupportsLimitOffset { get { return true; } } public override SqlString GetLimitString(SqlString sql, SqlString offset, SqlString limit) { int insertionPoint = GetAfterSelectInsertPoint(sql); if

Sybase ASE 15.5 : a successful insert which has no effect

ⅰ亾dé卋堺 提交于 2019-12-11 01:46:44
问题 I'm trying to insert a row into a table which is quite big (400 million rows). The table has 3 columns (integer, varchar(128),varchar(255)), primary key and clustered index on columns (1,2) and nonclustered index on columns (2,1) and nonclustered index on column 3. No foreign keys, no triggers. When I do : insert into mytable values (0,'test_name','test_val') It executes successfully but it has no effect, nothing is inserted and I can re-execute it as many times as I want successfully whereas

Setting up a jdbc connection pool for sybase

两盒软妹~` 提交于 2019-12-11 01:24:55
问题 I am currently creating a jdbc connection for every jsp or servlet. How can I create a jdbc connection pool for sybase such that the need for creating the connection for every jsp/servlet can be avoided and the jsp/servlet can directly get the connection and transact with the database. Can anyone provide step-by-step instructions for setting up of the same and also how to use it. And the pool should be able to handle a commercial website. 回答1: Like stated in comments, you can check THIS

Difference between left join and *= in Sybase ASE 15

半城伤御伤魂 提交于 2019-12-10 18:05:50
问题 I need help to understand this matter, what's the difference between the 2 queries below, all I know that they don't return the same result. Query 1: SELECT a.col1, b.c1 FROM A a LEFT JOIN B b ON a.col1 = b.c1 WHERE b.status = 'Y' Query 2: SELECT a.col1, b.c1 FROM A a, B b WHERE a.col1 *= b.c1 AND b.status = 'Y' 回答1: The first query: SELECT a.col1, b.c1 FROM a LEFT JOIN b ON a.col1 = b.c1 WHERE b.status = 'Y' ; is equivalent to an inner join because the b.status column (from the right side of

I need Sybase datatype to save string of indefinite Length.

回眸只為那壹抹淺笑 提交于 2019-12-10 09:08:03
问题 My requirement is to declare a datatype which accepts xml value with maximum size. Question: Do we have text, xml or varchar(max) datatype in Sybase? 回答1: There is text datatype. You can find More information here. How to use it with procedure: create procedure settxt ( @txt text ) as begin select @txt end How to run the procedure: declare @txt text select @txt = 'Hello world' execute settxt @txt The code works for me, but maybe not for everyone. Here is solution with temporary table: create