Using Sybase Central with Servoy Server

Hello everyone,

Following Dean’s excellent instructions, I have correctly setup Servoy Server and Sybase to run automatically as services upon machine startup. However, I am not able to connect to my repository using Sybase Central - I get the following error message:

[Sybase][ODBC Driver][Adaptive Server Anywhere]Specified database file already in use

Error code=-816

SQL state=08001

Connection parameters:

User=dba

Password=***

ASTOP=No

DBF=C:\Program Files\Servoy\database\servoy_repository.db

How can I access my DB structure like before when I was using Developer? :( I hope I don’t need to stop server for this…

TIA,

Ben

Hi Ben
It may be that your developer is still connected to an instance of the database.You need to exit from this then try to connect.
Hope this helps.
Marcus

LOGIsoft:
Hello everyone,

Following Dean’s excellent instructions, I have correctly setup Servoy Server and Sybase to run automatically as services upon machine startup. However, I am not able to connect to my repository using Sybase Central - I get the following error message:

[Sybase][ODBC Driver][Adaptive Server Anywhere]Specified database file already in use

Error code=-816

SQL state=08001

Connection parameters:

User=dba

Password=***

ASTOP=No

DBF=C:\Program Files\Servoy\database\servoy_repository.db

How can I access my DB structure like before when I was using Developer? :( I hope I don’t need to stop server for this…

TIA,

Ben

Hi Ben.

The database file is already open in the Sybase iAnywere database server.
So just connect Sybase Central to the database server instance, not to the database file.

Hope this helps.

Thanks Robert, can you provide any pointers on where or how to do this exactly? I don’t know where to put the correct info in Sybase Central, so I’m attaching screen captures for clarity…

Thanks in advance,

Ben

Ben, you can do a find. (Hit the find key)

That will give you the server.

Enter password and username and click ok. That’s it!

Hi Ben,

In the first Tab you put the normal username and password info.
In the second Tab you only fill in the Server info and the database name, NOT the database path/filename.
Hit connect and there you go.

And yes, like Marcel said you can use the find button.

Hope this helps.

Thanks guys, but it’s still not working, and I can’t figure it out, because it should be real easy, I know…

I’m attaching another screen capture with the details (‘myeng’ is what came up when I clicked on the ‘Find’ button).

Ben, take out the db name. It is enough to use the results of the find.

Thanks Marcel, but if I take out the DB name, I still get the same error message, but witout the last line that says ‘DBN=servoy_repository’…

Actually, I don’t know where ‘myeng’ comes from exactly (aside from the fact that the ‘Find’ button comes up with it, listed on the correct port) - I certainly did not name my server that way!

I was already afraid of that. I sometimes have this as well and indicates that something went wrong.

Never found out what though :shock:

I guess you already restarted/reinstalled?

This is going on with a machine that required a couple of tries (installing/unistalling Servoy and Sybase) before I could get my services to start up right. Are you saying I have to start from scratch - again? :( I’m afraid to do this, and nothing tells me I won’t be stuck with the same problem afterwards…

No, not saying anything since this is going to be a ‘debug job’ I think (unless somebody else comes up with a solution).

Thanks for your ideas Marcel (and Robert).

Here’s where I’m at so far: I think the ‘myeng’ entry was coming from my ASASERVICE Configuration Parameters in Sybase (I had ’ -n myeng -c 8m ’ - coming from Dean’s batch file - before the ‘@C:\Progra~1\Servoy\sybase_db\sybase.config’ string). Once I removed the part before the ‘@’, and after restarting the service, the ‘Find’ button comes up with ‘servoy_repository’. I’m still not connecting using Sybase Central and these new parameters, but at least it’s encouraging! :wink:

The only difference I can see with another working configuration that I can compare it to is the fact that, instead of an IP address, the machine name is showing up.

Still hoping someone can shed some light on this… :?

Thanks,

Ben

With the Servoy repository running - open the Sybase Central, and just type “dba” into username and “sql” into password - and hit connect.

Then it will show all started databases - and you can then click to connect to those (usually using default of dba/sql).

I only wish it were that easy - it just doesn’t work with Servoy server on this machine!

When I stop both services (ASASERVICE and Servoy Server) and then start Developer, I can see the repository icon next to the clock in the Windows Server icon tray, and I can connect with Sybase Central, as long as I point it to ‘servoy_repository’. Quitting Developer, starting both services and trying to connect using Sybase Central is still a no go.

Something else is weird with this machine: the repository icon doesn’t show next to the clock when started with Server, even if I checked the box to allow it to ‘interact with desktop’.

Like I said, it must be something machine-specific, because I suspect this setup shouldn’t give me so much grief…

Ben

are you working on that server in a terminal session??

Had some troubles using Sybase Central in a terminal session, where there was allready a Sybase instance in an other session.

If it is, try start the terminal session with: mstsc.exe /console

Hope that helps

Harjo, what can I say? YOU ARE THE MAN!!! :smiley:

This whole situation would probably have been resolved much sooner if I had been more clear as to my method of remotely connecting to this server. Using '/console/ did, in fact, resolve the issue. Fantastic! :lol:

As always, this forum shows that it’s made up of a vibrant and extremely helpful and responsive community of Servoy users, developers and engineers. Hats off to all of you/us! :!:

Hoping to pay it forward some day,

Ben

I’m glad that was the solution! :D

Some more info on this topic for future reference:

http://forums.theplanet.com/index.php?showtopic=66235
http://technet2.microsoft.com/windowsserver/en/library/2cb5c8c9-cadc-44a9-bf39-856127f4c8271033.mspx?mfr=true
http://articles.techrepublic.com.com/5100-6345_11-5208163.html

Thanks again for all your help,

Ben