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

Borislav T
  • 178
  • 1
  • 1
  • 6

2 Answers2

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.

Graeme Perrow
  • 545
  • 1
  • 4
  • 16
  • 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 '10 at 07:32
0

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

mfinni
  • 35,711
  • 3
  • 50
  • 86