sybase

Any alternative to Sybase Sql Advantage? [closed]

三世轮回 提交于 2019-12-03 17:15:23
Sybase Sql Advantage is the default editor for the Sybase database. But it has lots of shortcomings, because it basically is what Notepad is for Windows users: Can't do multiple undo's Monochrome, text is black and background is white Can't see what character did you exactly paste from clipboard, and sometimes this lead to weirdness behaviour Don't see what line or column you are in the moment Lack of funcionality like exports to different formats, integration with source control, plugins, etc. I have to deal with this editor in my daily work, so I was wondering if there are any other tool. Do

Answers to the mysterious Sybase ASE 'timestamp' datatype questions

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Eric Johnson ask the following questions in Aug 2010. "What is the mysterious 'timestamp' datatype in Sybase? What the heck is a timestamp? Does it have any relation at all to time or date? Can I convert it to a datetime? If its not a time or a date, what do you use it for?" I attempted to answer the above post but this site would not accept a new answer due to the age of the original post. As the subject matter remains a FAQ amongst SAP/Sybase ASE professional, I have decided to re-post the original questions above and give

编写不受魔术引号影响的php应用

时光怂恿深爱的人放手 提交于 2019-12-03 06:50:34
原创作品author流水孟春,转载请注明出处lib.cublog.cn 阅读前提:你必须看过php手册上的" 第IV部分安全" 的" 第10章魔术引号"。如果没看过,也没问题,现在马上花10分钟先看一下php手册上的这东西。 魔术引号(Magic Quote)是一个自动将进入 PHP 脚本的数据进行转义的过程 你可能想让你的程序兼容多个数据库,但你使用的不同的数据库可能使用不同的转义符,而我们的程序又有可能运行在不同的php.ini配置的主机上,关于magic_quotes的配置又可能不一样,所以编写不受魔术引号影响的php应用是高兼容性的php应用所必须的。 php.ini中有三个魔术引号配置选项: 魔术引号配置选项 描述 运行时改变 在 PHP中的默认值为 magic_quotes_gpc 如果打开的话,影响到 HTTP 请求数据(GET,POST 和 COOKIE)。 不能 On magic_quotes_runtime 如果打开的话,大部份从外部来源取得数据并返回的函数,包括从数据库和文本文件,所返回的数据都会被反斜线转义。(前提是magic_quotes_gpc = On) 能 Off magic_quotes_sybase 当关闭时,所有的 '(单引号),"(双引号),/(反斜线)和 NULL 字符都会被自动加上一个反斜线进行转义。这和 addslashes()

JRruby, Sybase JDBC and DBI - fetching column name with the AS clause issue

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a ruby script which I run using the JRuby Interpreter. The script connects to a Sybase database using DBI and Sybase JDBC (jTDS3.jar and jconn3.jar) My problem is that I have a select query that alters the column names of table. For example: SELECT t.TRANSACTION as 'business_transaction', t.TRADE_CURRENCY as 'currency', t.CURRENCY as 'settlement_currency' ...etc... FROM TRADE t ...etc... My problem is when using the examples directly from the documentation sth = dbh.execute(stmt) printf "Number of rows: %d\n", rows.size printf "Number

Sybase JConnect: ENABLE_BULK_LOAD usage

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can anyone out there provide an example of bulk inserts via JConnect (with ENABLE_BULK_LOAD ) to Sybase ASE? I've scoured the internet and found nothing. 回答1: I got in touch with one of the engineers at Sybase and they provided me a code sample. So, I get to answer my own question. Basically here is a rundown, as the code sample is pretty large... This assumes a lot of pre initialized variables, but otherwise it would be a few hundred lines. Anyone interested should get the idea. This can yield up to 22K insertions a second in a perfect

From a Sybase Database, how I can get table description ( field names and types)?

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have access to command line isql and I like to get Meta-Data of all the tables of a given database, possibly in a formatted file. How I can achieve that? Thanks. 回答1: Check sysobjects and syscolumns tables. Here is a diagram of Sybase system tables. List of all user tables: SELECT * FROM sysobjects WHERE type = 'U' You can change 'U' to other objects: List of columns in a table: SELECT sc .* FROM syscolumns sc INNER JOIN sysobjects so ON sc . id = so . id WHERE so . name = 'my_table_name' 回答2: sp_help is what you're looking for.

Using Ubuntu, how do I install DBD::Sybase from CPAN?

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Whenever I try to build DBD::Sybase to connect to MSSQL I get an error, $ sudo cpanp install DBD :: Sybase Installing DBD :: Sybase ( 1.15 ) Running [ /usr/ bin / perl / usr / bin / cpanp - run - perl / home / ecarroll /. cpanplus / 5.14 . 2 / build / DBD - Sybase - 1.15 / Makefile . PL INSTALLDIRS = site ]... Can 't find any Sybase libraries in /etc/lib or /etc/lib64 at /home/ecarroll/.cpanplus/5.14.2/build/DBD-Sybase-1.15/Makefile.PL line 155, <IN> line 44. BEGIN failed--compilation aborted at /usr/bin/cpanp-run-perl line 11, <IN

Sybase Error Implicit Conversion from datatype &#039;VARCHAR&#039; to &#039;INT&#039; not allowed

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting this error when trying to run a query in my application and I'm not sure why: Caused by: com.sybase.jdbc3.jdbc.SybSQLException: Implicit conversion from datatype 'VARCHAR' to 'INT' is not allowed. Use the CONVERT function to run this query. at com.sybase.jdbc3.tds.Tds.a(Unknown Source) at com.sybase.jdbc3.tds.Tds.nextResult(Unknown Source) at com.sybase.jdbc3.jdbc.ResultGetter.nextResult(Unknown Source) at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source) at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source

SYBASE扩充日志段空间

匿名 (未验证) 提交于 2019-12-02 23:53:01
有时候日志段空间满了使用下列语句也无济于事,又不能直接重启库,就加空间应急, sp_helpdevice go sp_helpdb QAS go sp_helpsegment logsegment go 声明设备 DISK INIT name = 'QAS_data_004', physname = 'E:\sybase\QAS\sapdata_1\QAS_data_004.dat', size = '100G', directio = true go DISK INIT name = 'QAS_log_004', physname = 'E:\sybase\QAS\saplog_1\QAS_log_004.dat', size = '20G', directio = true go 更改数据库 go 来源: https://www.cnblogs.com/weikui/p/11333634.html