# Relativity Server Connection String for ASA10

**URL:** https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653
**Category:** Relativity Server
**Created:** [December 19, 2022, 7:18am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653 "2022-12-19T07:18:17Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 19, 2022, 7:18am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/1 "2022-12-19T07:18:17Z")

</div>

Hello,  
I’m lost … searched the internet … but have no idea how to build a working connection string based on [ODBC.NET](http://ODBC.NET) / Aux: SQL Anywhere 10. Either get “Database Server not found” or “Datasource not found” or driver error or else.

ODBC System-DSN 32/64 both for ASA10 Server work fine in Delphi as does Schema Modeler with FireDAC Driver connection string.

Database is for a legacy Delphi app which will be migrated to 3-tier with Postgres as Backend.

Any help appreciated, thanks for reading!  
Regards  
Michael

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 19, 2022, 10:13am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/2 "2022-12-19T10:13:35Z")

</div>

Hi,

can you provide your connection string, pls?

replace `user`/`pass`/`server`/etc with the same words for keeping privacy, i.e. `UserID=user`, etc

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 19, 2022, 11:50am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/3 "2022-12-19T11:50:28Z")

</div>

I have an ODBC Datasource DATA\_SVR for access to remote dbserver: DATA\_SVR with db: DATA.

**Schema Modeler**

_FireDAC?AuxDriver=ODBC;Datasource=DATA\_SVR;UserID=myAdmin;Password=myPW;_

Tried / worked with it before Relativity

**Relativity Server**

_[SQLAnywhere.NET?ServerName=goqes\_svr;DatabaseName=goqes;User](http://SQLAnywhere.NET?ServerName=goqes_svr;DatabaseName=goqes;User) ID=dba;Password=sql;_

Error  
Database Provider not found maybe not installed ?  
[ASA 10 installation does not tell anything about [SQLAnywhere.NET](http://SQLAnywhere.NET)]

_[ODBC.NET?AuxDriver=](http://ODBC.NET?AuxDriver=){Sybase System 10};Server=DATA\_SVR;Database=myDB;uid=myAdmin;pwd=myPW;_

An exception was raised on the server: Cannot find database profile  
Inner Exception: ArgumentNullException: Der Wert darf nicht NULL sein.  
Parametername: key’.  
ExceptionMessage=“An exception was raised on the server: Cannot find database profile  
Inner Exception: ArgumentNullException: Der Wert darf nicht NULL sein.  
Parametername: key”  
ExceptionName=“EROUnknownExceptionReceivedFromServer”  
ExceptionDisplayName=“EROUnknownExceptionReceivedFromServer”  
Classes=[EROUnknownExceptionReceivedFromServer,EROUnregisteredServerException,EROException,Exception,TObject]

Tried many variations of these, but nothing worked

Many Thanks.

Kind regards  
Michael

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 19, 2022, 11:56am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/4 "2022-12-19T11:56:35Z")

</div>

Hi,

Can you test workaround from [SQLAnywhere .NET Connection String - Stack Overflow](https://stackoverflow.com/questions/48193784/sqlanywhere-net-connection-string) , pls ?

Note: You should be able to connect to ASA 10 from Schema Modeller using `ODBC.NET` or `SQLAnywhere.NET`. after this you can use Relativity with this DB.

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 19, 2022, 12:47pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/5 "2022-12-19T12:47:42Z")

</div>

Hi

I have ODBC Datasources defined for work in Delphi but that connection string does not work.

Tried all variations of connection strings in Schema Modeler, but no result.

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 19, 2022, 3:39pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/6 "2022-12-19T15:39:30Z")

</div>

FYI: There is no [SQLAnywhere.NET](http://SQLAnywhere.NET) data provider with ASA 10 just a programming interface for C#.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 19, 2022, 3:55pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/7 "2022-12-19T15:55:00Z")

</div>

Hi,

try to use provider from nuget site:

> **[iAnywhere.Data.SQLAnywhere.v4.5 16.0.0.20433](https://www.nuget.org/packages/iAnywhere.Data.SQLAnywhere.v4.5)**
>
> iAnywhere Data SQLAnywhere for .NET v3.5, v4.0 and v4.5 (Looking for version 17, install: Sap.Data.SQLAnywhere)

if open `.nupkg` as zip archive you can get required .dll

note: you may need to update `DataAbstract.daConfig` as

```auto
<SQLAnywhere.NET>
      <AssemblyName Value="iAnywhere.Data.SQLAnywhere.v4.0, Version=16.0.0.20434, Culture=neutral, PublicKeyToken=f222fc4333e0d400" /> ///<<<<<<<<added

```

in these folders:

- `C:\Program Files (x86)\RemObjects Software\Data Abstract (Common)\Bin`
- `C:\Program Files (x86)\RemObjects Software\Data Abstract (Common)\Bin\Relativity`

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 20, 2022, 2:50am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/8 "2022-12-20T02:50:45Z")

</div>

Thanks, where do I put that DLL?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 20, 2022, 5:55am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/9 "2022-12-20T05:55:15Z")

</div>

Hi,

preferable to [Global Assembly Cache - Wikipedia](https://en.wikipedia.org/wiki/Global_Assembly_Cache).  
but you can try to put also into folders near to `DataAbstract.daConfig`

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 20, 2022, 7:47am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/10 "2022-12-20T07:47:10Z")

</div>

```auto
Managed to install the DLL with gacutil, here check result after installing 
---------------------------------------------------------------------------------------------------------------------------------------------------------
PS C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools> .\gacutil.exe -l iAnywhere.Data.SQLAnywhere.v4.0
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.0
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Der globale Assemblycache enthält die folgenden Assemblys:
  iAnywhere.Data.SQLAnywhere.v4.0, Version=16.0.0.20434, Culture=neutral, PublicKeyToken=f222fc4333e0d400, processorArchitecture=MSIL

Anzahl der Elemente = 1

The entry in DataAbstract.daConfig looks like this
"<SQLAnywhere.NET>
      <ProviderName>iAnywhere.Data.SQLAnywhere</ProviderName>
	  <AssemblyName Value="iAnywhere.Data.SQLAnywhere.v4.0, Version=16.0.0.20434, Culture=neutral, PublicKeyToken=f222fc4333e0d400" />
      <Description Value="Sybase SQL Anywhere Data Provider"/>
      <Profile Value="SybaseSQLAnywhere"/>
      <ParamMappings Database="DatabaseName"
                     Server="ServerName" />
      <ParameterHandling Type="ByName"
                         SQLSymbol=":"
                         NameSymbol=":" />
      <OptionalParameters>
        <Parameter Name="ConnectionTimeout"
                   Value="30" />
      </OptionalParameters>
    </SQLAnywhere.NET>

But when I try schema modeler still says " The requested .NET Data provider cannot be found"

```

```auto

```

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 20, 2022, 12:30pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/11 "2022-12-20T12:30:33Z")

</div>

Hi,

> [@mijndesign](#):
>
> Database is for a legacy Delphi app which will be migrated to 3-tier with Postgres as Backend.

Why you need Relativity Server and why you can’t use usual DAD server with FireDAC connection to ASA10? it should be enough for migration to PostgreSQL

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 20, 2022, 1:25pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/12 "2022-12-20T13:25:47Z")

</div>

To be honest I never thought about that alternative. As everything worked fine via ODBC in Delphi I never thought about any problems.  
Just have the need to build up KnowHow with Relativity Server (quite fast) for my current customer and the huge legacy project to prove RO DA is a practical solution with lots of additonal helpfull features . I know there are a lots of hurdles ahead but hope to take one after the other.

I’ll check DAD server and see where get with it.

Many thanks for your help and your input!

Kind regards  
Michael

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 20, 2022, 1:31pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/13 "2022-12-20T13:31:52Z")

</div>

Hi,

this article can be useful: [New Project Wizard](https://docs.dataabstract.com/Delphi/GettingStarted/NewProjectWizard/)

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 22, 2022, 2:02pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/14 "2022-12-22T14:02:54Z")

</div>

I do not giveup easily on something not working but should work.

Searching around found a SQLAnywhere 12 trial (with offical .NET support) downloaded, installed in a VM and [SQLAnywhere.NET](http://SQLAnywhere.NET) connection worked, at least with local databases.  
Checked what changes where made to Windows System/.NET and realized just registering a .NET data provider with gacutil.exe is not enough for common access it’s just for development. There is quite a bit more involved.

But to make a long story short, after a lot of fiddeling around in GAC etc etc found a SQLAnywhere 12 Client download on SAP today. Installed it, got few errrors but after checking and reading about correct parameters finally remote access to my ASA10 dbserver works in Schema Modeler.

One last problem is left: Opening schema modeler from inside Relativity Admin the connection fails again. Hopefully this is just some network access problem and can be solved asap and then go back to working with Relativity Server.

I have to admit with DA Server development I’m missing too much know how even basics (but knew that before and some some day will learn everything).

Everyone stay healthy, merry Xmas and a happy new year!

Michael

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 22, 2022, 2:12pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/15 "2022-12-22T14:12:01Z")

</div>

Hi,

> [@mijndesign](#):
>
> One last problem is left: Opening schema modeler from inside Relativity Admin the connection fails again. Hopefully this is just some network access problem and can be solved asap and then go back to working with Relativity Server.

You should use the same `DataAbstract.daConfig`. if you put some dll to Schema Modeller folder, you should put them also to Relativity folder.

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 22, 2022, 6:16pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/16 "2022-12-22T18:16:28Z")

</div>

No dll’s added/moved/copied anywhere, no additional entries in any config, just plain SQLAnywhere 12 client installation in a clean Windows 10 vm.

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 24, 2022, 4:01pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/17 "2022-12-24T16:01:31Z")

</div>

FYI: Looks like I’m step further: In another VM (Intel) installed ASA12 client and was then able to call Schema Modeler from within Relativity Admin and the [SQLAnywhere.NET](http://SQLAnywhere.NET) connection works.

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 28, 2022, 7:44am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/18 "2022-12-28T07:44:26Z")

</div>

One last final problem cannot be resolved:  
Everything seemed ok, but working trough a schema 2 tables threw erros on validate (with AutoSQL too). ASA12 and up seem to have trouble to resolve / migrate fields from ASA10.  
Maybe if I have some spare time will have a look which field(defintion)s are the cause.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 28, 2022, 12:40pm UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/19 "2022-12-28T12:40:02Z")

</div>

Hi,

try to use usual SQL like

```sql
SELECT
   fld1, fld2 ...
FROM
   table
WHERE
  {WHERE}

```

it will allow to use [Dynamic Where](https://docs.dataabstract.com/Technologies/DynamicWhere/) feature

---

<div class="post-metadata">

### Author: ![mijndesign](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@mijndesign](https://talk.remobjects.com/u/mijndesign)
#### Post date: [December 30, 2022, 9:32am UTC](https://talk.remobjects.com/t/relativity-server-connection-string-for-asa10/27653/20 "2022-12-30T09:32:57Z")

</div>

I did use only such simple SQLs even without , tried it with AutoSQL too. Changed the connection to FireDAC and everything was ok, back to [SQLAnywhere.NET](http://SQLAnywhere.NET) and I got errors. As I said before will look into this when there is some spare time

Have a working DA Server now to work with and try to get my head around DA for Javascript etc
