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 > Connecting to DB2 with VB .NET

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-06, 15:05
Nebraska_God Nebraska_God is offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Connecting to DB2 with VB .NET

I am trying to connect to a DB2 database with Visual Basic using an ODBC driver (NEON) that is already set up on my PC and currently pulling data from tables into Excel.

When I connect with VB the test connection works and it shows the field names but when I create a table adapter or query and execute it I get a "DBRM OR PACKAGE NAME NOT FOUND IN PLAN" error message.

I use MSQuery to design the SQL that pulls data from the DB2 into Excel and I haven't had a problem so I am somewhat perplexed as to why another Microsoft product is unable to use the same connection.

Any help is appreciated.
Reply With Quote
  #2 (permalink)  
Old 06-21-06, 23:35
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Arrow sql

Does your system return an SQL error ?

If yes please post it
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #3 (permalink)  
Old 06-22-06, 09:16
Nebraska_God Nebraska_God is offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Yes it does, here it is.

SQL Execution Error.

ERROR [51002][NEON][SCOD32.DLL][DB2]dsnt408I SQLCODE = -805, ERROR;
DBRM OR PACKAGE NAME DP954128..OPRXSQ.0D9E7E2D08F1F0F1 NOT FOUND IN PLAN SDBC1010. REASON 02

Here is my SQL statement:

SELECT BATCH, BATCHSTATUS, CLIENT, ACTCOUNT, CURRENTWKST
FROM DP954128.TESTDB01.VWFMBTCH
WHERE (CURRENTWKST = 'A66')

Here is my neon client advanced info:

Subsystem: DSNP
Plan Name: SDBC1010
Catalog Prefix: SYSIBM
Default DB: TESTDB01
Table Filter: TESTDB01

One note is that this same configuration pulls all the data I need into Excel.

Thanks in advance.

Last edited by Nebraska_God; 06-22-06 at 09:29.
Reply With Quote
  #4 (permalink)  
Old 06-29-06, 11:46
Nebraska_God Nebraska_God is offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Any thoughts?
Reply With Quote
  #5 (permalink)  
Old 07-03-06, 05:50
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Hmm

Not really sadly, have you tried recompiling your function ?
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
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