Quantcast
Channel: SCN : Popular Discussions - SAP SQL Anywhere
Viewing all 1302 articles
Browse latest View live

Create Triggers on System Tables

$
0
0

Hi,

 

 

I want to call a certain procedure that logs everytime a database user is created or deleted in the db ( sql Anywhere 16).

 

For this I have written a Function that should be called via a trigger when a row is inserted or deleted from table SYS.SYSUSER.

 

 

 

However, I am not able to create a trigger on this table.

Am I allowed to create trigger on this or is there someother way to get notified whenever a user is created or deleted for db?

 

 

New to sybase please help.

 

 

heres is my create trigger code

 

 

 

    CREATE TRIGGER myTrigger AFTER INSERT ON sys.sysuser

    REFERENCING NEW AS newRecord

    FOR EACH ROW

    BEGIN

          -- call myFunction

    END;


Please stop the CURRENTLY BEING MODERATED delay

$
0
0

After answering a question on the SAP forum for SQL Anywhere, my response was marked CURRENTLY BEING MODERATED.

 

This is not acceptable behavior for the SQL Anywhere developer community.

 

Please cease and desist, and accept all posts immediately.

 

Breck

 

http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/90000/8000/900/98954/98954.strip.sunday.gif

 

sqlanywhere database not start DBSPAWN ERROR -80

$
0
0

Dear Experts

 

I am installed BO 4.1 Sp3 under AIX 7 and default database sqlanywhere

 

after stop BOE

1. tomcat

2. BOE

3 database

 

from BOBJ home /usr/sap/BOD/sap_bobj

using scripts

 

but when in start database

 

./sqlanywhere_startup.sh  Flowing error occur

 

SQL Anywhere start In background ........

 

 

DBSPAWN ERROR -80

 

Unable to start database

 

 

Please guide me how to solved this issue

 

 

Regards

Windows event log

$
0
0

Hi,

 

I need to write a specific message into the windows event logger.

I am trying to use Message statement but I am unable to see any logs appearing in the event viewer.

 

Please help me find out what is not right with my code below

 

CREATE PROCEDURE message_text( )

BEGIN

MESSAGE 'Just a test message' TYPE INFO TO SYSTEM/EVENT LOG

END;

 

Both system and event does not seem to be writing in windows event log

Encryption Key management - Information required

$
0
0

Hi

 

I have a question related to encryption key management in SQLA. Suppose I have 100 sites where encrypted SQLA DB is running. All these encrypted DB is created at central location i.e. datacenter and are transferred/pushed to remote locations.

 

Q1. Where are the keys held ? How are they managed ? Are there any SAP tools available to manage encryption keys?

Q2. How do I access the Decryption securely ?

Q3. How do we protect the data so that in the wrong hands the 256bit encryption is unbreakable and more so, how do we ensure ‘wrong hands’ cannot access decryption keys?



Warm regards

Sam

+91 98450 91970

sam.verghese@genisys-group.com

Backup

$
0
0

Hello community,

 

I´m using Sybase Central to backup my ASA databases but I can´t find an option to truncate the log after backup is done. I´m running a complete backup every day. Someone knows how?

 

Thanks in advance,

SAP Legend

Upgrade to SQL Anywhere16, is application w.Remote Client 9 running the same ?

$
0
0

Hi SQLAnywhere folks,

 

My customer is running SQL Anywhere9 + Remote Client 9(WinCE 5.0), however,

they have to upgrade OS Windows sever 2003 to 2012, thus they have to upgrade SQL Anywhere 16.

 

And I found from <http://scn.sap.com/docs/DOC-35934>

" SQL Anywhere 16 database servers support connections from client applications using software from version 6.0.0 or

later." i.e SQL Anywhere 16 supports Remote Client 9. Right ?

 

Then the question is the applications with Remote Client 9(WinCE 5.0) are running well with SQL Anywhere 16.

Any application modification required ?

 

Any consideration/advice would be highly appreciated.

Thanks a lot.

JY Yang

Sybase SQL anywhere database backup

$
0
0


Dear Expets,

 

I am using BI 4.1 sp1 BOBJ server under sybase SQL anywhere 12 database  and Operating system is Windows 2008 server.

 

I want to take offline and online backup of database , How to take from both command line and from admin console ( please guide me step by step procedure I am first time using SQL aynwhere database).

 

second My SQl server database consist 4 files

1.  BI4_Aduit.db          Size of this file is       1025 MB

2. BI4_Audit.log           Size of this file is       924 MB

3.  BI4_CMS.db          Size of this file is        47 MB

4. BI4_CMS.log          Size of this file is        3.4 GB

 

why BI4_CMS.log  size too much how to reduce the CMS log file size

 

 

Regards


Please stop the CURRENTLY BEING MODERATED delay

$
0
0

After answering a question on the SAP forum for SQL Anywhere, my response was marked CURRENTLY BEING MODERATED.

 

This is not acceptable behavior for the SQL Anywhere developer community.

 

Please cease and desist, and accept all posts immediately.

 

Breck

 

http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/90000/8000/900/98954/98954.strip.sunday.gif

 

Sybase SQL Anywhere 12 and SAP Sybase SQL Anywhere 16

$
0
0

Hello,

 

Is there a difference between Sybase SQL Anywhere 12 and SAP Sybase SQL Anywhere 16?

 

If there is, could you please list out the general information. i.e. is v12 (i.e. pre SAP purchase of Sybase) just older than v16 (i.e. post SAP purchase of Sybase) ?

 

I know that Hyland's OnBase 14 supports both of these versions. Just having a difficult time trying to find information about Sybase SQLA v12 - if it is even still available for purchase, etc.

 

Any information would be appreciated.

 

Thank you,

Christian Jones

Redirecting Mobilink server event

$
0
0

Hello, all

I would like to use the same exact script in upload_insert and upload_update events.

The script is of form "insert into table on existing update", so it is the same for both events.

 

Question: can I, somehow redirect upload_update event to upload_insert event, so I would not have to replicate the SQL code?

 

Thank you

Arcady

Updating publication through ISQL

$
0
0

Hello, all

I have a question:

Is there a way to update publication articles using ISQL.

Specifically, I need to update the "WHERE" part of all articles in the publication to be something else.

 

Obviously, I cannot just run a command like this:

//-------------------------

update sys.SYSARTICLE

set where_expr = '"get_sync_user"("c_hotel_id") = ''fattal'''

where publication_id = 24

//-----------------------

 

Is there a way to export a publication into a text file without unloading the whole DB?

How to upgrade Sybase 5 to SAP Sybase SQL Anywhere 16

$
0
0

Is it possible to upgrade Sybase 5 to SAP Sybase SQL Anywhere 16?

 

If so, what are the steps to do so?

 

Best regards,
Christian

Replication (dbremote) between SA12 and ASA9

$
0
0

I get a lot of syntax error while replicationg between a SA12 and ASA9 database.

The consolidated db (SA12) sends SQL through passthrough to a ASA9 Remote db.

 

It seems that the SQL Syntax sent from SA12 is not compatible with the syntax that ASA9 expects.

 

Is there a way to preserve the original syntax?

 

Example:

 

Execute SQL at consolidated db (SA12)

ALTER TABLE tablename MODIFY columnname varchar(100);

 

On replication, the ASA9 database receives a non valid syntax for the same statement

ALTER TABLE tablename ALTER columnname varchar(100);

 

Which runs fine on SA12, but fails on ASA9

Note 1995803 occurs in build 16.0.0 1948


Mobilink - getting errors by email

$
0
0

Hello, all

I know it is possible to log the Mobilink errors and send them by email automatically.

Yet, I cannot find the instructions on how to do it in the help.

 

Can someone, please, point me to a link where it is all explained?

 

Thank you

Arcady

 


Trouble with Mobilink sync

$
0
0

Hello, all

I was wondering if someone can help me with this strange error in the Mobilink sync.

The table in question is only supposed to be for upload, no download.

Why does Mobilink try to download data from table, when the table is only supposed to be for upload?

//-----------------------------------------------

I. 2014-11-03 08:37:16. <Main> System event on shared administrative connection:

                        SELECT idx, name, type FROM ml_column WHERE version_id = ? AND table_id = ? ORDER BY idx DESC

I. 2014-11-03 08:37:16. <Main> Translated SQL:

                        SELECT idx, name, type FROM ml_column WHERE version_id = ? AND table_id = ? ORDER BY idx DESC

I. 2014-11-03 08:37:16. <Main> System event on shared administrative connection:

                        SELECT table_id FROM ml_table WHERE name = ?

I. 2014-11-03 08:37:16. <Main> Translated SQL:

                        SELECT table_id FROM ml_table WHERE name = ?

I. 2014-11-03 08:37:16. <Main> System event on shared administrative connection:

                        SELECT t.event, s.script_language, s.script FROM ml_table_script t, ml_script s WHERE t.table_id = ? AND t.version_id = ? AND t.script_id = s.script_id

I. 2014-11-03 08:37:16. <Main> Translated SQL:

                        SELECT t.event, s.script_language, s.script FROM ml_table_script t, ml_script s WHERE t.table_id = ? AND t.version_id = ? AND t.script_id = s.script_id

I. 2014-11-03 08:37:16. <1> download_cursor t027_room_price_codes_master

                       

                        --{ml_ignore}

                       

I. 2014-11-03 08:37:16. <1> download_delete_cursor t027_room_price_codes_master

                       

                        --{ml_ignore}

                       

I. 2014-11-03 08:37:16. <1> upload_delete t027_room_price_codes_master

                       

                        /* Delete the row from the consolidated database. */

                        DELETE FROM "DBA"."t027_room_price_codes_master"

                        WHERE "c_pms_price_code" = {ml r."c_pms_price_code"}

                        AND "c_hotel_id" = {ml r."c_hotel_id"}

                       

I. 2014-11-03 08:37:16. <1> upload_insert t027_room_price_codes_master

                       

                        /* Insert the row into the consolidated database. */

                        INSERT INTO "DBA"."t027_room_price_codes_master" ( "c_pms_price_code", "c_hotel_id", "c_Name", "c_Description", "c_StartDate", "c_EndDate", "c_MaxLOS", "c_MinLOS", "c_IsActive", "c_IsDeleted", "c_WeekMaskV", "c_Currency", "c_WeekMaskA", "c_LeadDaysToArrive", "c_LeadDaysToCancel", "c_DisplaySortOrder", "c_Created", "c_LastModified", "c_PolicyCode", "c_local_currency", "c_reason_code", "c_promo_code_only", c_max_lead_days )

                        on existing update

                        VALUES ( {ml r."c_pms_price_code"}, {ml r."c_hotel_id"}, {ml r."c_Name"}, {ml r."c_Description"}, {ml r."c_StartDate"}, {ml r."c_EndDate"}, {ml r."c_MaxLOS"}, {ml r."c_MinLOS"},

                         {ml r."c_IsActive"}, {ml r."c_IsDeleted"}, {ml r."c_WeekMaskV"}, {ml r."c_Currency"}, {ml r."c_WeekMaskA"}, {ml r."c_LeadDaysToArrive"}, {ml r."c_LeadDaysToCancel"}, {ml r."c_DisplaySortOrder"}, {ml r."c_Created"}, {ml r."c_LastModified"}, {ml r."c_PolicyCode"}, {ml r."c_local_currency"},

                         {ml r."c_reason_code"}, {ml r."c_promo_code_only"},{ml r."c_max_lead_days"} )

                       

I. 2014-11-03 08:37:16. <1> upload_update t027_room_price_codes_master

                       

 

 

                        /* Update the row in the consolidated database. */

 

 

                        INSERT INTO "DBA"."t027_room_price_codes_master" ( "c_pms_price_code", "c_hotel_id", "c_Name", "c_Description", "c_StartDate", "c_EndDate", "c_MaxLOS", "c_MinLOS", "c_IsActive", "c_IsDeleted", "c_WeekMaskV", "c_Currency", "c_WeekMaskA", "c_LeadDaysToArrive", "c_LeadDaysToCancel", "c_DisplaySortOrder", "c_Created", "c_LastModified", "c_PolicyCode", "c_local_currency", "c_reason_code", "c_promo_code_only", c_max_lead_days )

 

 

                        on existing update

 

 

                        VALUES ( {ml r."c_pms_price_code"}, {ml r."c_hotel_id"}, {ml r."c_Name"}, {ml r."c_Description"}, {ml r."c_StartDate"}, {ml r."c_EndDate"}, {ml r."c_MaxLOS"}, {ml r."c_MinLOS"},

 

 

                         {ml r."c_IsActive"}, {ml r."c_IsDeleted"}, {ml r."c_WeekMaskV"}, {ml r."c_Currency"}, {ml r."c_WeekMaskA"}, {ml r."c_LeadDaysToArrive"}, {ml r."c_LeadDaysToCancel"}, {ml r."c_DisplaySortOrder"}, {ml r."c_Created"}, {ml r."c_LastModified"}, {ml r."c_PolicyCode"}, {ml r."c_local_currency"},

 

 

                         {ml r."c_reason_code"}, {ml r."c_promo_code_only"},{ml r."c_max_lead_days"} )

 

 

                       

I. 2014-11-03 08:37:16. <Main> System event on shared administrative connection:

                        SELECT idx, name, type FROM ml_column WHERE version_id = ? AND table_id = ? ORDER BY idx DESC

I. 2014-11-03 08:37:16. <Main> Translated SQL:

                        SELECT idx, name, type FROM ml_column WHERE version_id = ? AND table_id = ? ORDER BY idx DESC

E. 2014-11-03 08:37:16. <1> [-10019] Error fetching table script t027_room_price_codes_master.download_cursor

I. 2014-11-03 08:37:16. <1> Synchronization failed

//-----------------------------------------------

Sybase SQL anywhere database backup

$
0
0


Dear Expets,

 

I am using BI 4.1 sp1 BOBJ server under sybase SQL anywhere 12 database  and Operating system is Windows 2008 server.

 

I want to take offline and online backup of database , How to take from both command line and from admin console ( please guide me step by step procedure I am first time using SQL aynwhere database).

 

second My SQl server database consist 4 files

1.  BI4_Aduit.db          Size of this file is       1025 MB

2. BI4_Audit.log           Size of this file is       924 MB

3.  BI4_CMS.db          Size of this file is        47 MB

4. BI4_CMS.log          Size of this file is        3.4 GB

 

why BI4_CMS.log  size too much how to reduce the CMS log file size

 

 

Regards

Question about Mobilink best practice

$
0
0

Hello,

I have the following data workflow:

Around 20 tables synchronize upload only.

7 tables synchronize download only.

2 tables have bidirectional sync.

 

I was wondering if it could be a good idea to create 3 schema models, instead of one.

This way, the upload, which is critical, could run independently of the download.

 

Please, tell me if this is a good practice.

 

Thank you

Arcady

Error: Cannot Convert 1/1/2000 to a timestamp

$
0
0

Environment: PowerBuilder 10 Client. Database SQL Anywhere 9. Windows 7 OS.

 

 

Select Error: SQLSTATE = 07006

Sybase ODBC DRIVER SQL Anywhere Cannot Convert '1/1/200' to a timestamp

 

I'm getting this error from a PowerBuilder 10 app. when accessing the database ( sql anywhere 9).

 

It is happening on some workstations. Probably a DSN config on the workstation.

Viewing all 1302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>