4

Currently I have a SQL Anywhere (version 10) database (.db and .log files) - the idea is to extract the data and utilize it for a MS SQL database.

The problem is that I start a SQL Anywhere server and attach the database in question to it, but then when I try to connect to the server, I cannot pass the authentication (I've tried the default dba/sql combo and Windows integrated security).

However, I can use the same server to access the SQL Anywhere demo database without any problems. This leads me to believe that the user authentication is tied to each SQL Anywhere database and not to the SQL Anywhere server which is currently running.

I've read some of the SQL Anywhere Database Administration official documentation, but I didn't come across any strict details on how authentication is handled.

In short, the question is if one can connect to a random SQL Anywhere database which has been just provided by a 3rd party?

Best Regards,
Borislav

2 Answers 2

2

Disclosure: I work in SQL Anywhere engineering.

You are correct - to connect to a SQL anywhere database, you need to provide a username / password recognized by that database. When a database is created, a user called "dba" is created with a password of "sql", but users are free (and encouraged!) to change this password. You can even drop the "dba" user if you want, though doing this without having already created another user with DBA authority will lead to problems later.

The answer to your final question is "you can't". To connect to a database, you must have a valid user name for that database and know the password for that user. If you don't have these, you will need to contact the third party that gave you the database.

1
  • Graeme, thank you very much for the answer - I had gathered as much from other sources, but I really wanted to be sure before asking the 3rd party for the credentials. The point is that they use the database for an application they have bought and unless they have an idea how the application connects to the database, there might be trouble. However, that is outside of the context of the question so I thank you once again for the help.
    – Borislav T
    Sep 16, 2010 at 7:32
0

Can you ask the 3rd party for the username and password for the database that they gave you?

2
  • I've done so - keep your fingers crossed that they can provide it :). Also, thank you for the answer.
    – Borislav T
    Sep 16, 2010 at 7:40
  • I have a similar problem. I have version 12. They only gave me the user and password.
    – Rick
    Jul 10, 2020 at 14:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .