Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT ACCESS
java.sql.SQLException: view1 is a stored procedure, not a view
Nikita
2007-09-03 03:54:39.0
I get exception when I try to query a view which has calls to Access functions like IIf.
Here is an example of such a view:
view1: SELECT t1.*, IIf(id>1,'more than 1','less or equal 1') AS iif_col FROM t1;

When I execute query:

SELECT * FROM view1;

HXTT ACCESS throws this:

java.sql.SQLException: view1 is a stored procedure, not a view
Error Code:147456
SQL State:24000
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.access.ae.a(Unknown Source)

Though there is no problem if I execute the query from which view1 was created.

I've uploaded database to you ftp server as viewtest.mdb

Any suggestions?


Thanks in advance,
Nikita
Re:java.sql.SQLException: view1 is a stored procedure, not a view
HXTT Support
2007-09-03 05:52:15.0
>SELECT t1.*, IIf(id>1,'more than 1','less or equal 1') AS iif_col FROM t1;
Because you're using ", not ' to separate string value in MS Access.
Re:java.sql.SQLException: view1 is a stored procedure, not a view
HXTT Support
2007-09-03 06:01:28.0
The next package will detect and parse those " as ' for sql standard.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap