cancel
Showing results for 
Search instead for 
Did you mean: 

Mobilink > Connection string works with dbping but not with mlsrv

0 Kudos
1,219

I'm trying to start a Mobilink synchronization server, and my connection string works with dbping...

dbping -d -c "uid=xxx;pwd=yyy"

...but fails to work with mlsrv

mlsrv -c "uid=xxx;pwd=yyy" -dl

The error is:

<Main> [-10002] Consolidated database server or ODBC error:  ODBC: [SAP][ODBC Driver][SQL Anywhere]Invalid user ID or password (ODBC State = 28000, Native error code = -103)

Accepted Solutions (1)

Accepted Solutions (1)

regdomaratzki
Product and Topic Expert
Product and Topic Expert

The DSN parameter is required in the connection string for the MobiLink Server.

dbping only connects to SQL Anywhere databases, so when it connects to a database it will by default use dblib (i.e. SQL Anywhere native communication stream), but mlsrv17 is an ODBC application that can connect to a number of different RDBMS, so uses ODBC only, and never used dblib.

0 Kudos

Thank you for the detailed explanation. is this documented anywhere clearly? The doc for mlsrv simply says that -c needs to be passed a connection string, and no further details about ODBC or reqd components within that connection string.

0 Kudos

Also, I tried putting a DSN, if I remember correctly, but got the same behaviour. I'll recehck once I'm on my computer. Is there any specific the DSN needs to be setup with windows?

Breck_Carter
Participant
0 Kudos

Presumably one could use dbping -m to force ODBC usage, when testing a connection path similar to MobiLink.

0 Kudos

Breck, the tip about -m is very useful. The connection string now fails with dbping as well -- so at least I'm seeing consistent behaviour now.

0 Kudos

This the correct answer for the difference in behaviour of dbping and mlsrv. I'm opening a separate question related to DSN.

chris_keating
Product and Topic Expert
Product and Topic Expert

The documentation does indicate that the value supplied to the mlsrv17 -c option should be "ODBC database connection parameters for your consolidated database." See http://dcx.sap.com/index.html#sqla170/en/html/81c951cb6ce21014887280d342d9494d.html*loio81c951cb6ce2...

Answers (0)