5
votes
3answers
96 views
Making a database recommendation: ASA vs ASE
Hi:
I am working on performance tuning a two-tier Java Swing application which connnects to an Sybase ASA database (version 10.0.1).
We are currently doing a profiling of the a …
3
votes
0answers
45 views
How to avoid execution of DatabaseStart Event
When your Database contains a EVENT of type DatabaseStart and you are able to crash the Database Engine during startup with your fabulous code.
How would you fix the database to …
3
votes
1answer
42 views
Sample Code: A Procedure To Drop Views
If this sample was helpful to you, vote it up.
If you have an improved version, or a closely related sample, post it as an answer.
If you have a question or complaint, post it as …
1
vote
2answers
45 views
Why is after update trigger not fired on changes of a before update trigger SQLA 10
Since we upgraded our Database from 9.0.2. to 10.0.1. one of my trigger constructs is broken.
When a user changes a value in a purchase order line (testchild) the purchase order ( …
1
vote
2answers
43 views
How to download a file from internet using sql anywhere behind a squid proxy ?
I try to use this function on SQLA 10.0.1.3976 as a test.
alter FUNCTION "DBA"."UNBlacklist"()
returns long varchar
url 'http://www.un.org/sc/committees/1267/consolidatedlist.x …
1
vote
2answers
46 views
Is ‘-12345678901234566.00’ the correct result of str(-12345678901234567.0001,40,2)
When i execute the following command I'm a little bit surprised of the result.
select -12345678901234.0001 as TestVal, str( TestVal, 40, 2) as stringVal
union all
select -123456 …
0
votes
0answers
37 views
How to Address multiple nodes with the same name with OpenXml
Given the following SQL Script I try to produce a Result set looking like this
Lable Value
------------------------
UstId_1 DE123456789
ErrorCode 200
BEGIN
decl …
1
vote
2answers
34 views
Three-Tier Replication & Global AutoIncrement
We have multiple clients that are in, what we call, a three-tiered replicating environment. This means we have a Main Site that has Remote Sites. Once those Remote Sites are load …
3
votes
1answer
28 views
DEFAULT TIMESTAMP & Replicating Environments
I have some table :
create table people
(
id bigint not null default autoincrement,
first_name varchar(50) not null,
last_name varc …
4
votes
3answers
47 views
Performance with columns and lots o’nulls
How is performance impacted when you have a table that, lets say could have over 1M rows, and there are 3-5 columns that are consistently NULL.
Is it bad design to have data struc …
3
votes
3answers
62 views
GUID as Primary Key
I see heated discussion all over the internet about whether a GUID is a poor choice for a primary key. Usually, these conversations all revolve around SQL Server.
A lot of people …
4
votes
1answer
19 views
How do I get the next number for a global autoincrement column?
If I had a table defined like below, how, from my application would I be able to get the next value for the "id" column before saving any data to the database?
create table people …
3
votes
2answers
51 views
How to download a file from internet using sql anywhere?
I need to download UN Blacklist XML file periodically. Is there any way to automate this using sql ONLY?
2
votes
4answers
85 views
Performance Hit
We have an application that uses a last_update (timestamp) column on just about every table. We manage this column on the client side, but due to differences in user clocks (alway …
2
votes
1answer
50 views
System Tables Diagram?
Is there one available somewhere for SQL Anywhere like there is for ASE? (v10.0.1)