sybase

Sybase IQ 相关网站链接

瘦欲@ 提交于 2019-12-11 15:56:12
Support 网站,需要有企业的账户才可以登录 https://launchpad.support.sap.com/ Sybase IQ 在线帮助网站,手册内容在这里都可以看到 https://help.sap.com/viewer/product/SAP_IQ/16.0.11.22/en-US 常见子页面 IQ版本下载(需登录) https://launchpad.support.sap.com/#/softwarecenter/template/products/%20_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=Y&FUNCTIONBAR=N&EVENT=TREE&NE=NAVIGATE&ENR=67838200100200019528&V=MAINT&TA=ACTUAL&PAGE=SEARCH/SYBASE%20IQ%20SERVER%2016.0 错误码大全 https://help.sap.com/doc/70b96028822b4a72b33b86c80982d24a/16.0.11.12/en-US/index.html SQL语法大全 https://help.sap.com/viewer/a898a5b484f21015a377cd1ccb6ee9b5/16.0.11.22/en-US

I need to implement wildcard search using % on both ends, how can I improve performance?

蓝咒 提交于 2019-12-11 15:14:42
问题 I will be implementing this in the sql side, so I would end up having something like where company.name like '%:parameter%' I've read before that this would then make it impossible for the DB to use the company.name index. My question then would be, what other options do I have to minimize the performance degradation that this will introduce to the search? Please note that, this is client requirements therefore I don't have the option to not implement (even though I explained to them the

ExecuteNonQuery() exception not caught by try-catch

雨燕双飞 提交于 2019-12-11 13:11:17
问题 I am having a problem with a database call that throws an AccessViolationException when I call ExecuteNonQuery() . The call is enclosed in a try-catch block but the exception is never caught. Instead, I get an entry about it in the Windows Event log. Is there a way of catching this exception in code? IDbCommand cmd = ... cmd.CommandText = "..."; try { var results = command.ExecuteNonQuery(); } catch (Exception ex) { Console.Writeline("Caught exception: " + ex.Message); } 回答1: ExecuteNonQuery(

SELECT INTO command not allowed within multi-statement transaction in Hibernate for Sybase DB

吃可爱长大的小学妹 提交于 2019-12-11 11:14:58
问题 I was new to hibernate and trying to execute an procedure from a Java file using hibernate to a Sybase DB. While i am trying to run the application i am getting an error like below Stored procedure 'dbo.p_chklist_test' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode. I have checked in few forums and set the mode as "Any mode" by running below command. sp_procxmode p_chklist_test, "anymode" Also i

How to get info from VARCHAR column and create new column out of it

与世无争的帅哥 提交于 2019-12-11 10:25:34
问题 I have a problem that I can't figure out. I have the table where it has column template_name, in every template, it ends with _US, _EE (aka country). I have to get that part to a new column that is Country. Example data: Template_name Country Party_package_US US or USA PARTY_Package_GB GB or England Random_temp_DE DE or Germany The output to the new column can be just the three last characters. I don't know what kind of query I have to do to get that result. Okay now, what can I do get that

Sybase select variable logic

感情迁移 提交于 2019-12-11 10:09:40
问题 Ok, I have a question relating to an issue I've previously had. I know how to fix it, but we are having problems trying to reproduce the error. We have a series of procedures that create records based on other records. The records are linked to the primary record by way of a link_id . In a procedure that grabs this link_id , the query is select @p_link_id = id --of the parent from table where thingy_id = (blah) Now, there are multiple rows in the table for the activity. Some can be cancelled.

Perl DBI when to close prepared statements

怎甘沉沦 提交于 2019-12-11 09:27:24
问题 I have an odd problem. On my dev computer I am getting errors. However on the live system the errors do not happen. If I fix the issues on dev the fixes cause problems in production. It has to do with when I am closing prepared statements. On production I have to call finish after every fetch. If I do this on my dev system then the next execute of the statement will return undef, and there is nothing $dbh->errstr or in $DBI::errstr. Any Idea where to even start with this one? Here is a simple

Is there a bug with “set chained” in setAutoCommit() in net.sourceforge.jtds.jdbc.Driver?

耗尽温柔 提交于 2019-12-11 08:24:27
问题 I am having some confusion with set chained statement in setAutoCommit() method in net.sourceforge.jtds.jdbc.Driver The source code says: 2161 if (serverType == Driver.SYBASE) { 2162 if (autoCommit) { 2163 sql.append("SET CHAINED OFF"); 2164 } else { 2165 sql.append("SET CHAINED ON"); 2166 } However, shouldn't it be backwards, and chaining should be OFF for autoCommit==false? The reason I ran into this is as follows: I am writing a Java app which needs to do some complicated SQL and roll back

Is there a way to find TOP X records with grouped data?

不打扰是莪最后的温柔 提交于 2019-12-11 07:28:07
问题 I'm working with a Sybase 12.5 server and I have a table defined as such: CREATE TABLE SomeTable( [GroupID] [int] NOT NULL, [DateStamp] [datetime] NOT NULL, [SomeName] varchar(100), PRIMARY KEY CLUSTERED (GroupID,DateStamp) ) I want to be able to list, per [GroupID], only the latest X records by [DateStamp]. The kicker is X > 1, so plain old MAX() won't cut it. I'm assuming there's a wonderfully nasty way to do this with cursors and what-not, but I'm wondering if there is a simpler way

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