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 > SQL7008 not valid for operation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-05, 15:26
this-is-me this-is-me is offline
Registered User
 
Join Date: Feb 2005
Posts: 2
SQL7008 not valid for operation

Hi

I am using MS SQL Server to connect to iSeries DB2 on AS/400 with Linked Server through ODBC DSN. I was able to run SELECT using four-part naming convention in MS SQL Query Analyzer. But INSERT is not working. Here's my query:-

INSERT INTO LINKEDSERVER1.CATALOG1.SCHEMA1.TABLE1 (COL1)
VALUES ('VAL1')

It generates the following error.

OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [IBM][iSeries Access ODBC Driver][DB2 UDB]SQL7008 - TABLE1 in SCHEMA1 not valid for operation.]

Needless to mention that StarSQL executes the query without errors.

The file is not journaling. I have already set COMMIT to *NONE. So it should work in SQL Query Analyzer. But it does not.


Any ideas? Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-06-08, 16:15
aloyo aloyo is offline
Registered User
 
Join Date: Feb 2008
Posts: 2
If the iSeries files has no members

If the iSeries files has no members you will also get the same error. Try adding one member to the file.
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