Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 1 down vote accepted

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.

share|improve this answer
    
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 7:32

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

share|improve this answer
    
I've done so - keep your fingers crossed that they can provide it :). Also, thank you for the answer. –  Borislav T Sep 16 '10 at 7:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.