"Stream Database operator - failure (SQL Server 2005)"

PetersPeters MemberPosts:2Contributor I
edited May 2019 inHelp
Hello,

I tried to connect to my SQL Server 2005 database with the Stream Database operator. The table is quite small with 100 datasets (the original purpose was to use this operator on very large tables) . I added an integer-key RM_Index just as it said in the description.
The connection works, but i get the following "Process Failed" message:

Database error occurred: Incorrect syntac near the keyword 'AS'. The JDBC driver has thrown ...

我的Process as XML:






<宏/ >














我的latest Log entry:

2011年6月24日23:53 PM INFO: No filename given for result file, using stdout for logging results!
2011年6月24日23:53 PM INFO: Loading initial data.
2011年6月24日23:53 PM INFO: Process //NewLocalRepository/Stream_Test starts
2011年6月24日23:53 PM CONFIG: Connecting to jdbc:jtds:sqlserver://localhost:1433/databasename as username.
2011年6月24日23:53 PM INFO: Stream Database: Primary key 'RM_Index' found: creating a new mapping table 'RM_MAPPING_tablename' which maps from the RapidMiner index 'RM_INDEX' to the primary key. This might take some time...
2011年6月24日23:53 PM SEVERE: Process failed: Database error occurred: Incorrect syntax near the keyword 'AS'.
2011年6月24日23:53 PM SEVERE: Here: Process[1] (Process)
subprocess 'Main Process'
==> +- Stream Database[1] (Stream Database)
I would be glad if someone could help since it concers my bachelor thesis.


Greetings,

Peter

答案

  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University ProfessorPosts:1,984RM Engineering
    Hi,

    to be honest I don't know why it's not working for you, it's working for me..
    Maybe try to manually set the id_attribute on the stream database operator to your id column.

    Regards,
    Marco
  • PetersPeters MemberPosts:2Contributor I
    Hi Marco,

    thank you for your answer. I don't know how to change the id attribute manually. The only parameters for my Stream Database operator are: "define connection", "connection", "table name" and "label attribute". Is there another way to change this (besides to check and understand any java-code)?

    Strangely, the Error-Message-Box changed now (still same settings as before) to:
    " Database error occured: Incorrect syntax near 'AUTO_INCREAMENT'..."
    Maybe this helps.

    我的conclusion was, that either I am doing something wrong, or RapidMiner doesnt work well with Microsoft SQL Server 2005 on the Stream Database operator. I was hoping for the first;).

    Greetings,
    Peter
  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University ProfessorPosts:1,751RM创始人
    Hi Peter,

    the good old stream database operator - causing a lot of headache...

    Actually, the operator only works really well out of the box for mySQL or Oracle. In most other cases, you can make it work by providing an integer column in your table called "RM_INDEX". And sometimes even that does not help. Not sure about MS SQL though...

    Cheers,
    Ingo
Sign InorRegisterto comment.