If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > odbc_exec and SQLSTATE=42704

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-06, 09:23
jEr3mY jEr3mY is offline
Registered User
 
Join Date: Jun 2006
Posts: 2
Red face odbc_exec and SQLSTATE=42704

Hi all !

I have to use DB2 to test something, and when i want to connect me i have an error :

Warning: odbc_exec(): SQL error: [IBM][CLI Driver][DB2/NT] SQL0204N Le nom "ROOT2.SCAT" n'est pas défini. SQLSTATE=42704 , SQL state S0002 in SQLExecDirect in c:\appserv\www\***\ins\RWconnect.php on line 184

My login is root2 and i want to send this query : SELECT type FROM scat WHERE id=1.

Do you have already seen this error ?
Thanks for your help !
Reply With Quote
  #2 (permalink)  
Old 06-21-06, 11:06
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
It means there's no table named "SCAT" in the "ROOT2" schema.
Reply With Quote
  #3 (permalink)  
Old 06-21-06, 11:14
jEr3mY jEr3mY is offline
Registered User
 
Join Date: Jun 2006
Posts: 2
Yes sorry, i start with db2
There's no table scad in the root2 schema, there's in the ADMINISTRATEUR schema.

so : SELECT type FROM ADMINISTRATEUR.scat WHERE id=1
And it works fine

Thx
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On