SQLAnywhere 10.0.1.4051, Windows XP
I have two databases running under the same database server, and I am attempting to set up a remote server with a proxy table. Both databases have matching users and passwords set up in them. (For reference, db where I'm doing the setup is data-dashboard, db I am trying to see data on is data-warehouse)
In the data-dashboard warehouse, I set up a remote server named "remoteWarehouse" in Sybase Central as read-only, SQL Anywhere, JDBC connectivity with connection info "localhost:2638/data-warehouse" (I also tried this without specifying the other database name at the end). I also tried setting it up as an ODBC data source using my system DSN: "DSN=data_warehouse_webCentral". In both cases, when I press the "Test Connection" button it reports that the connection is successful (but either way, later in the process I get the same error I detail below).
Then I set up a proxy table to go with it. I opened the properties of this table and went to the "Miscellaneous" tab, just to see whether it could see how many rows were in the table. When I press the Calculate button, this is the error I get:
"The table's row count could not be obtained from the database. Server 'remoteWarehouse': [Sybase][ODBC Driver][SQL Anywhere]Syntax error near '-' on line 1 [Sybase][ODBC Driver][SQL Anywhere]Server 'remoteWarehouse': [Sybase][ODBC Driver][SQL Anywhere]Syntax error near '-' on line 1 SQLCODE: -660 SQLSTATE: HY000 SQL Statement: SELECT COUNT(*) FROM "dba"."inventory_item_setup_dimension_proxy"
I also get this error for any other type of query I do, whether in ISQL or in some Java code. In each case I can clearly see there that there aren't any '-' characters in my query. When I look at the "remote location" it says "remoteWarehouse;data-warehouse;dba;inventory_item_dimension"
Since there is a hyphen in the remote database name (data-warehouse), could there be a bug handling hyphens in database names? Should I be looking somewhere different for the problem?
asked May 10 '10 at 19:02