sybase

C# ASP.Net The type or namespace name 'iAnywhere' could not be found

一世执手 提交于 2019-12-25 04:27:44
问题 Morning all, I know that this sounds like a simple referencing problem from the title this is becoming a nightmare! I have a code class that uses the "iAnywhere.Data.AsaClient.dll". This Dll is referenced in the project and in the code class I have added this dll in the Using section. Everything seems fine at build with no errors at all but when I go to run the application it comes up with the following Compilation Error: Compiler Error Message: CS0246: The type or namespace name 'iAnywhere'

SUP Personalization Key via Native Android Search button

北战南征 提交于 2019-12-25 03:42:52
问题 I'm setting up a simple demo of SUP on android natively but I'm having a few doubts regarding how to use personalization keys. Using the SUP101 sample as a basis (here), I've created a 'state_pk' personalization key to filter customers by state. I'd like to be able to get this data by using the "search button" from Android (which I already have setup and showing correctly). I've also added a findByState object query to the customer MBO to be able to filter, but to my (little) understanding

How to set date format in sybase?

只谈情不闲聊 提交于 2019-12-25 03:08:04
问题 How to set date format in sybase? Currently it's inserting default date format Jan 9 2014 1:07AM to Sybase DB,But i have to insert seconds also like "20140109 01:06:46" Is there any way i can set date format in stored proc. please suggest me,thanks! 回答1: select --cast( dateformat('Jan 9 2014 1:07AM','YYYYMMDD HH:NN:SS') --returns varchar --as datetime) --datetime object in database datetime format 来源: https://stackoverflow.com/questions/21013037/how-to-set-date-format-in-sybase

What is the locking schema of sybase used for?

蓝咒 提交于 2019-12-25 02:58:48
问题 Now I am using Sybase, when I create table, I should give a locking schema for it. I know other DB can choose lock by DBMS. Now I have two questions for this: When I give a all page lock for locking schema to a table, but when I delete rows or insert rows, I check the lock, I find the lock can be row share lock. Otherwise, when I use rows lock for locking schema, it may choose table exclude lock. So what are the locking schema use for? Can a row lock to implement DB tansaction isloation level

Sybase Powerdesigner - how to automatically format naming of PK and FK?

旧街凉风 提交于 2019-12-25 02:28:23
问题 Sybase Powerdesigner - how to automatically format naming of PK and FK? Run script to format primary key and foreign key like this format PK_TABLENAME FK_PARENT_CHILD Example PK_Post FK_Post_Comment 回答1: The following solution is complicated, but also very flexible/ not so intrusive. This will get you started: In your PD model, create a new "Custom check with Autofix Option" for the Table Or Column (Or Reference) metaclass object. (Doesn't matter which you cheoose. You can iterate thru sub

How can I exclude in my query that rows that have status is Pending and the Creation Date is less than the current date?

ぃ、小莉子 提交于 2019-12-25 01:44:20
问题 How can I exclude in my query that rows that have status is Pending and the Creation Date is less than the current date ? [Table] Status CreationDate Pending 9/30/2014 9:00 PM Completed 9/14/2014 10:52 AM Pending 9/30/2014 10:00 PM 回答1: Select * FROM tableA WHERE status not like 'Pending' And CreationDate < GETDATE() 回答2: SELECT * FROM sometable WHERE Status != 'Pending' AND DATE(CreationDate) = GETDATE(); As you creation date is a timestamp or datetime field, you want to cast this to Date,

read and write blobs by mapping them to binary data

心不动则不痛 提交于 2019-12-25 01:35:20
问题 I'm getting the following exception trying to read a blob from a Sybase DB using hibernate JPA. Entity @Lob @Column(length=100000) private byte[] fileContent; public byte[] getFileContent() { return fileContent; } public void setFileContent(byte[] fileContent) { this.fileContent = fileContent; } ioc.Registry The method com.sybase.jdbc3.jdbc.SybResultSet.getBlob(String) is not supported and should not be called. ioc.Registry Operations trace: ioc.Registry [ 1] Triggering event 'activate' on

Sybase SQL - Remove “semi-duplicates” from query results

元气小坏坏 提交于 2019-12-25 01:35:07
问题 I have a query that uses two SELECT statements that are combined using a UNION ALL . Both statements pull data from similar tables to populate the query results. I am attempting to remove the "semi-duplicate" rows from the query, but am having issues doing so. My query is the following: SELECT DISTINCT * FROM ( SELECT TeamNum = CASE WHEN T.TeamName = 'Alpha Team' THEN '1' WHEN T.TeamName IN ('Bravo Team', 'Charlie Team') THEN '2' WHEN T.TeamName = 'Delta Team' THEN '3' ELSE '<Undefined>' END,

Does having several indices all starting with the same columns negatively affect Sybase optimizer speed or accuracy?

故事扮演 提交于 2019-12-24 19:54:24
问题 We have a table with, say, 5 indices (one clustered). Question: will it somehow negatively affect optimizer performance - either speed or accuracy of index picks - if all 5 indices start with the same exact field? (all other things being equal). It was suggested by someone at the company that it may have detrimental effect on performance, and thus one of the indices needs to have the first two fields switched. I would prefer to avoid change if it is not necessary, since they didn't back up

How to find triggers along with schemas defined on a table in Sybase ASE 16.0?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 19:53:14
问题 I am trying to find all the triggers defined on a table in a given schema in Sybase ASE 16.0, and the triggers can be defined in different schema than the given table (User has all required permissions). Example, below table will be created in dbo schema (default) and the triggers in dbo and s1 schema respectively. CREATE TABLE tblAllTypesTriggers ( "Id" int NOT NULL primary key, "Name" varchar(30), "Salary" int, "Gender" varchar(10), "DepartmentId" int ) LOCK ALLPAGES / CREATE TRIGGER