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

Design decision - to use UUIDs as primary key or not?

$
0
0

Hi,

 

 

SQL Anywhere database, to be used by a Powerbuilder 11.5 application.

 

 

We're at the stage of designing a set of 6 tables, all of which cascade down to the next one, like

 

Country->Region->District->Organisation->Group->Member

 

The dilemma that we are facing now is that the last three tables will have about 15.000, 30.000 and around 200.000 rows, for which we need to generate long random IDs. We have never used UUIDs as primary keys so far and we are considering using them as primary keys for these last three tables which will have thousands of rows.

 

However, having no experience with UUIDs, we are reading up on them now, and there are several articles suggesting that UUIDs are not very efficient, especially if we link up these last three tables with foreign keys as described above: Organisation->Group->Member.

 

So our question is: with these table sizes, are we likely to run into noticeable efficiency problems with using UUIDs as primary/foreign keys? And if so, what would be the more recommended approach?

 

 

Cheers


Create client install package with 32-bit iAnywhere

$
0
0

Hello, all

I wonder of someone can offer me a walkthrough for creating a client install package, which would contain 32-bit entity framework support.

 

I am having serious problem with it, becasue my app is 32-bit and it uses entity framework. So far, the only way I managed to get it to work is to install the full SQL Anywhere from the instal disk. I keep failing to create a small client deployment package.

 

I need this for versions 12 and 16.

Can anyone give me a hint on how to do it?

 

Thank you

Arcady

SQL Anywhere 11 on Ubuntu / PHP

$
0
0

Hi there,

 

I have been trying (with no success) to connnect our PHP app to Sybase database.

 

Our actual scenario is:

 

Windows2003/ ODBC {SQL Anywhere 11 Driver} / PHP ------> Windows2008 / Sybase

 

 

 

We are to migrate our PHP:

 

Linux Ubuntu Server / UnixOBC {SQL Anywhere 11 ODBC Driver} / PHP -------> Windows2008 / Sybase

 

 

In the migration process I configured FreeTDS trying somethink like:

 

/etc/fretds/freetds.conf

----------

[global]
    tds version = 4.2

    dump file = /tmp/freetds.log
;    debug flags = 0xffff

;    timeout = 10
;    connect timeout = 10

    text size = 64512


[sybase]
    host = 172.19.2.252
    port = 2640
;    instance = ek_cadu_0103040607
    tds version = 5.0
    ASA database = ek_adm01_11

---------

 

php-script

---------

<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');

 

$cnn = sybase_connect('sybase', 'dba', '_._ENKONTROL_._');

?>

---------

 

This script shows the following errors:

 

Warning: sybase_connect(): message: SQL Anywhere Error -83: Specified database not found (severity 16) in /var/www/testodbc.php on line 4

Warning: sybase_connect(): General SQL Server error: Check messages from the SQL Server (severity 16) in /var/www/testodbc.php on line 4 Warning: sybase_connect(): Unable to connect to server: sybase in /var/www/testodbc.php on line 4

 

 

Can anyone help?. Thank you in advance.

 

Marinho.

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

 

buffer table pool performance with return code 64 in ST05

$
0
0

Hey guys,I had been meeting an issue causing poor Performance in my SAP system.For a full buffered table,I did trace it with ST12 and ST05,I found it's perfectly buffered in AS(as blue background entries in ST05 tracelist),but there were entries with high 'duration' and return code '64'(I know that's mean no records found),instead,the return code '0' entries worked fine,the duration  was pretty low.I had learned from documents of IBM/SAP(we're running with DB2 on AIX) that if you are just checking the exists of some records of certain table(access frequently),you may buffer them in AS,for now it seems to be going into opposite direction,that does  make sense with long time 'duration'.Detailed information seen the attachments.

Internal Error - dbsrv11

$
0
0

hi guys, just wondering if anyone encounters such problem before ?

 

Internam Error - dbsrv11

dbsrv11 has envountered a serious error and needs to close. We are sorry for the inconvenience.

 

 

From the crash log i found :

 

VERSION=11.0.1.2044

FILENAME=C:\Documents and Settings\All Users\Application Data\SQL Anywhere 11\diagnostics\SA11_20140721_103517_9508.crash_log

OS=Windows 2003 Build 3790 Service Pack 2

PROCESSOR=X86_64

EXEC_ARCH=X86

EXEC_PATH=C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe

MODULE_PATH=C:\Program Files\SQL Anywhere 11\Bin32\dbserv11.dll

EXCEPTION_PTR=0F07CB60

EXCEPTION_CODE=2147483651

EXCEPTION_FLAGS=0

EXCEPTION_RECORD=00000000

EXCEPTION_ADDRESS=77E4BEF7

EXCEPTION_NumParameters=1

EXCEPTION_Param0=0084036C

TRYING_TO_SAVE_MINI_DUMP C:\Documents and Settings\All Users\Application Data\SQL Anywhere 11\diagnostics\SA11_20140721_103517_9508.dmp

DUMPLEVEL 0

SAVING_MINI_DUMP_COMPLETED

CRASH_LOG_COMPLETE

ATTEMPTING_TO_SUBMIT_MINIDUMP...

 

 

From another err.xml, there are more encrypted messages here (so, i guess i will not post here in case if it is needed)

 

The platform of this OS :

 

product="SQL Anywhere"

application_version_build="2044"

system_properties="Windows 2003 Build 3790 Service Pack 2"

 

Anyone had such problem before ? Need to know if the root cause is from the OS platform or the software side itself

thank you

How to call GRANT ALL to all of an owner's tables

$
0
0

Hi,

 

I want to call "GRANT ALL ON table-name TO group-name" for all the tables whose owner is "DBA".

 

Instead of doing

 

  GRANT ALL ON dba.iBodegas TO "TRIPODE";

  GRANT ALL ON dba.iInv TO "TRIPODE";

etc... etc.... etc....

 

I wanted to do it in on block.

 

I started doing this:

 

BEGIN

  DECLARE xIdDBA INTEGER;

  DECLARE xUserName VARCHAR(50);

  DECLARE xSQL   LONG VARCHAR;

  SET xUserName = 'TRIPODE';

  SET xIdDBA = (SELECT User_Id FROM SysUserPerm WHERE User_Name ='DBA');

  SET xSQL = (SELECT STRING('GRANT MEMBERSHIP ON "',a.table_name,'" TO "',xUserName,'";')

                        FROM systable a join sysuserperm b on a.creator=b.user_Id WHERE a.creator=xIdDBA);

 

 

  SELECT xSQL;

END

 

 

But that doesn't work becasue I can't load the result set into the xSQL variable.

 

I wanted to load all the GRANT statements into a variable and then EXECUTE IMMEDIATE that :-)

 

Any better ideas?

 

Thanks,

Edgard

Cannot open Interactive sql from command prompt

$
0
0

I have added my own procedure to run as soon as user logs, using

 

 

SET OPTION PUBLIC.post_login_procedure = 'xxx.Myprocedure';

 

 

I need to set custom message on pop up this provides when user logs in. The pop up is working, when I manually login in from Sybase central. however, when I run dbisql -c "DSN=myDSN" from command prompt Interactive sql opens and I get the popup that stays on forever!

 

image.png

 

 

 

I get this pop up only when I have set the popup to appear through post_login_procedure , If i remove that then I can connect to interactive sql without any problem.

 

 

Please help, Thanks


Sybase Wan Performance

$
0
0

I am currently running Sybase Anywhere 10 and connection to the database on the LAN side works great, but on the WAN side it runs really slow.

I was wondering if Sybase 16 will improve my overall performance?

Sybase Wan Performance

$
0
0

I am currently running Sybase Anywhere 10 and connection to the database on the LAN side works great, but on the WAN side it runs really slow.

I was wondering if Sybase 16 will improve my overall performance?

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

 

Sql Anywhere v11 with 5 seats

$
0
0

Hello,

I have a peculiar problem. I have SqlAnywhere v11 with 5 seats. I have been using it since 8/10/2009. And recently the machine where we housed everything crashed completely. Now I am stock. And I need to deploy the application with the database. I don't have the software anywhere else. I contacted the vendor Programmer's Paradise (Alias TechXtend). They were able to justify my order number and invoice. But they don't have the product anywhere for me to get. SAP recommended that I raise the issue here. Is there any help out there?

Placide.

SQL Anywhere 12, Interactive SQL, How to "output" to relative path

$
0
0

Hi everyone,

 

is there a way to store the file from an output-statement relatively to the path of the script-file when running SQL-Scripts from Interactive SQL on windows?

 

If I try this

Select 'Test';
Output To 'test.txt' Format Text;

in a script I only get an "Access denied"-message, so I think Interactive SQL is trying to store the file in a directory where the current windows-user does not have write-permissions. If I use the absolute path to the directory from where the script is opened, everything works fine. So how does Interactive SQL decide where to put the file, if no absolute path is given?

 

Thanks in advance,

 

Torben

SQVI using FBL5N, VBAK, VBAP & VBRP data

$
0
0

I am trying to build a SQVI report using the FBL5N data (BSID and BSAD tables) and the VBAK data.  However I cannot find a way to line the tables. I would like to add the data from the VBELN, AUART and VGBEL fields, along with a custom field, from the VBAK data to the BSID and BSAD tables. The end result is that I would like the data from FBL5N to include these fields from the VBAK table. Ideally I would like to link, BSID, BSAD and VBAK together.  I feel I may need another table or 2 to complete the circuit, is there a way to do this?  If I can get this link down I can probably add the info from VBAP and VBRP.  Thanks.

SQL Anywere 12 insert record for each date between two dates

$
0
0

A part of a function in our database looks like this:

 

 

while @datecount <= today() loop

    set @datecount = dateadd(day, 1, @datecount);


    insert into gt_datetable( countdate ) values ( @datecount );

end loop;

 

We have to insert about 200000 records in this way and wonder if there is a script with a better performance.

 

Thanks

Eric


SQL Anywhere 12 (12.0.1.4155) using EF : Unable to enlist transaction; DTC may be down

$
0
0

What may be causing this error??

 

Sometimes the transactions runs fine, and other times I get this error message.

 

Database.SqlQuery<int>("select dba.getnextid()");

 

NativeError: -803

Message: Unable to enlist transaction; DTC may be down

Source: SQL Anywhere .NET Data Provider

StackTrace:

at iAnywhere.Data.SQLAnywhere.SAException.CheckException(Int32 idEx)

   at iAnywhere.Data.SQLAnywhere.DurableResourceManager.Enlist(SAInternalConnection conn, Transaction tran)

   at iAnywhere.Data.SQLAnywhere.SAInternalConnection.Enlist(Transaction tran)

   at iAnywhere.Data.SQLAnywhere.SAConnection._EnlistTransaction(Transaction tran)

   at iAnywhere.Data.SQLAnywhere.SAConnection.EnlistTransaction(Transaction transaction)

   at System.Data.EntityClient.EntityConnection.EnlistTransaction(Transaction transaction)

 

Can't seem to figure out how to resolve this issue, nor what's causing it.

ODBC Error when migrating from SQL Server 2008 to SQL Anywhere 12

$
0
0

Hello community,

 

i have the following requirement:

 

I need to migrate a Database with some Demo data into a SQL Anywhere 12 Database. The SQL Anywhere 12 Database is part of the SAP BusinessObjects Enterprise XI 3.1 SP7 installation and came with the same as OEM Product.

 

The Environment looks like the following:

 

DB1 is a MS SQL Server 2008 R2 64 Bit running on Windows Server 2008 R2 64 Bit.

 

DB2 is the SAP BusinessObjects Enterprise XI 3.1 SP7 installation with the shipped SQL Anywhere 12 (12.0.1.3873) Database running on SLES 11.3 64 Bit

 

CL1 is my Windows 7 64 Bit Client where Sybase Central is installed in 64 Bit. On CL1 i have a 64 Bit System ODBC Connection connecting to DB1 successfully.

 

Basically i followed the following (pretty straight forward) tutorial:

 

Migrating a SQL Server Database to SQL Anywhere White Paper-Technical: Mobile Enterprise, Database Management iAnywhere …

 

When i want to test the connection from inside Sybase Central (During the migration process) i receive the following error:

 

error.JPG

 

From inside Sybase Central my connection looks as follows:

 

config.JPG

 

And from the ODBC Manager the connection looks as follows:

 

odbc.JPG

 

Personally i found is strange that the Sybase ODBC Driver Manager drops the error. I would expect that the MS SQL ODBC Driver Manager pops the error it its related to the ODBC DSN to DB1.

 

Any ideas?

 

Thanks and Regards

-Seb.

SAP SQL Anywhere Licensing

$
0
0

Hi all,

 

whre can I find more information about the licensing option of SAP SQL Anywhere for SAP BOBJ installations?

Are there any differences to Sybase ASE license?

 

Best regards

Arne

Where are the EBFs?

$
0
0

I'm trying to get to the SQL Anywhere EBFs and keep getting the following on the link I used to follow:

 

--swdFC.doProcess: action perform exception: EcdDataException: EcdDataException: BaseProdList.getMigrationStatus got Exception: null

 

Have they now moved them to a SAP URL or is there a problem with the site?

 

Thanks

Deploying and restricting DBISQL

$
0
0

Hello,

 

we have a PowerBuilder application and want to add a feature where the user can run queries to extract spreadsheets/txt files. The required SQL is stored in a text field in the database. With a simple Select I generate a dynamic datawindow and all is good. Some of the queries though are large compound statements and I put these into a file and call dbisql to execute the file, which works very nicely....... In my development environment So far we haven't deployed dbisql with the application. We do put out dear old dbisqlc but that doesn't do the OUTPUT statement we need.

 

The solution would seem to be to deploy dbisql which is fine. Unfortunately we have some users who will notice and of course they'll be able to login to the database with dbisql using their application login and potentially cause all sorts of havoc. Is there any way we can restrict the people who can use dbisql on our client installations?

 

Failing that can anyone think of an alternative to execute a series of SQL commands stored in a string that is able to output a text file, all done from within an application (PowerBuilder in our case)?

 

TIA, Paul

Viewing all 1302 articles
Browse latest View live


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