Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.254
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 5.0.253
  HXTT DBF 7.1.254
  HXTT Excel 6.1.257
  HXTT Json 1.0.225
  HXTT Paradox 7.1.253
  HXTT PDF 2.0.253
  HXTT Text(CSV) 7.1.253
  HXTT Word 1.1.253
  HXTT XML 4.0.254
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 | Refund | Sitemap