Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Re: Start Database command "AS" with number = exception

$
0
0

Hi Reimer,

 

I tried that already, even for the path also:

 

String query = "START DATABASE \"" + databasePath + "\" AS \"" + databaseName + "\"";

 

START DATABASE "w:\TOP\DATA\3051\3051.DB" AS "3051"

 

Still the same error ...

 

31-07-14 16:49:11 [ERROR] TechLogger -  -> com.sybase.jdbc3.jdbc.SybSQLException: ASA Error -131: Syntax error near '3051' on line 1

  at com.sybase.jdbc3.tds.Tds.a(Unknown Source)

  at com.sybase.jdbc3.tds.Tds.nextResult(Unknown Source)

  at com.sybase.jdbc3.jdbc.ResultGetter.nextResult(Unknown Source)

  at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source)

  at com.sybase.jdbc3.jdbc.SybStatement.nextResult(Unknown Source)

  at com.sybase.jdbc3.jdbc.SybStatement.executeLoop(Unknown Source)

  at com.sybase.jdbc3.jdbc.SybStatement.execute(Unknown Source)

  at com.sybase.jdbc3.jdbc.SybStatement.execute(Unknown Source)

  at eu.adm.solutions.topaccount2irisxtract.util.SqlUtils.startDatabase(SqlUtils.java:128)

  at eu.adm.solutions.topaccount2irisxtract.util.SqlUtils.getCustomers(SqlUtils.java:95)

  at eu.adm.solutions.topaccount2irisxtract.process.ProcessFiles.processFiles(ProcessFiles.java:38)

  at eu.adm.solutions.topaccount2irisxtract.process.Task.run(Task.java:51)

  at java.util.TimerThread.mainLoop(Unknown Source)

  at java.util.TimerThread.run(Unknown Source)


Viewing all articles
Browse latest Browse all 2182

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>