cancel
Showing results for 
Search instead for 
Did you mean: 

Database error after Mobilink sync

Former Member
0 Kudos
3,356

Hello,

I have a .Net application running on Windows Mobile 6.5 It starts with an empty database (SQL Anywhere 11.0.1.2376) After performing a full sync the database on the mobile device is filled and the application works. But when I perform a second full sync, close the app and restart it, I get following error when the app want's to connect with the database.


Jdn.Amos.AmosMobile.exe
SAException

   at iAnywhere.Data.SQLAnywhere.SAInternalConnection.CheckException(Int32 idEx, Boolean freeConn)
   at iAnywhere.Data.SQLAnywhere.SAInternalConnection.OpenConnection()
   at iAnywhere.Data.SQLAnywhere.SAInternalConnection..ctor(SAConnection parent, Boolean pooled, Object dtcTran, String connectionString, SAConnectionGroup connectionGroup)
   at iAnywhere.Data.SQLAnywhere.SAConnectionPool..ctor(String connectionString, Hashtable connectionOption)
   at iAnywhere.Data.SQLAnywhere.SAConnectionPoolManager.AllocateConnection(SAConnection parent, Object dtcTran, String connectionString, Hashtable connectionOptions)
   at iAnywhere.Data.SQLAnywhere.SAConnection.Open()
   at Jdn.ApplicationBlocks.Data.DBHandler.PrepareConnection(String sqlName, Dictionary`2 inputParameters, Dictionary`2 outputParameters)
   at Jdn.ApplicationBlocks.Data.DBHandler.ExecuteReader(String sqlName, Dictionary`2 inputParameters, Dictionary`2 outputParameters)
   at Jdn.Fwk.Data.UnTypedDataHandler.ExecuteReader(JdnDataParameterCollection parameter)
   at Jdn.Fwk.Business.BusinessController.Load[T](JdnParameterCollection parameters)
   at Jdn.AmosCompact.Business.Database.Setting.GetSettings()
   at Jdn.Amos.AmosMobile.ModGlobals.GetParamValues()
   at Jdn.Amos.AmosMobile.StartUp.Main()

Jdn assembly is the application.

The connectionstring is "DBF=Storage CardDatabaseamosmobile.db;UID=dba;PWD=sql"

Filesize of DB and Log-file are about 30-40M

If I copy database from mobile device to a pc, I can open it with sybase central.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I used parameter START=Program FilesSQLANY11dbsrv11.exe -c 40p -ca 0 -z -o dbsrv11.txt and now the application starts again.