Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
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
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
java.sql.SQLException: view1 is a stored procedure, not a view
Nikita
2007-09-03 03:54:39
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
>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
The next package will detect and parse those " as ' for sql standard.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap