473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

.NET to DB2 via iSeries

Hello,

Does anyone out there have experience with connectivity to DB2 hosted on an
iSeries? I have successfully written a VB.NET 2005 WEB application to do
this but I am having a morning connection problem.

Every morning the iSeries will return an "invalid connection" error on the
first attempt of the day. After that, all other connections work fine. I
am thinking it's an iSeries issue but I can't find any data to back me up.

If you have any experience on this, please let me know.

Thanks,
Jeff
Feb 2 '07 #1
3 2447
Hi Jeff,

Is the VB .NET application always running, or you start it on every
morning? This may help us determine if the error happens when the
application tries to connect to the database at first time, or just
randomly occur. I also suggest you may post this issue to DB2 and iSeries
newsgroup/forum, there may be some way to enable trace or log on the
database, so that we can get more detailed information about the issue.

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Feb 5 '07 #2
If you include name and password to login to your AS400 (iSeries) then you
will not have this problem). If not then you have to login to your AS400
prior to creatinf a connection. That is why the second time it runs OK. You
can create a login script to 400 that you can run on your PC startup
"Jeff Allan" <bo******@community.nospamwrote in message
news:ug**************@TK2MSFTNGP05.phx.gbl...
Hello,

Does anyone out there have experience with connectivity to DB2 hosted on
an iSeries? I have successfully written a VB.NET 2005 WEB application to
do this but I am having a morning connection problem.

Every morning the iSeries will return an "invalid connection" error on the
first attempt of the day. After that, all other connections work fine. I
am thinking it's an iSeries issue but I can't find any data to back me up.

If you have any experience on this, please let me know.

Thanks,
Jeff

Feb 5 '07 #3
Assuming you are using the native provider which is installed with Client
Access then make sure you have the most current version. Last month I could
connection and get data back from DB2 but upon closing the application got
the strangest error which stopped when a new version of CA was installed
which must have fixed the problems for the native provider.

Sample of how I connect (if not connected then a prompt appears to connect
automatcially)
The data source is either Revenue2 or Revenue3, the default collection is
the user-login-name

Using TheConnection As New
iDB2Connection(String.Format("datasource=Revenue{1 }.dor.local;DefaultCollection={0};",
CollectionName, ServerNumber))
....

"Jeff Allan" <bo******@community.nospamwrote in message
news:ug**************@TK2MSFTNGP05.phx.gbl...
Hello,

Does anyone out there have experience with connectivity to DB2 hosted on
an iSeries? I have successfully written a VB.NET 2005 WEB application to
do this but I am having a morning connection problem.

Every morning the iSeries will return an "invalid connection" error on the
first attempt of the day. After that, all other connections work fine. I
am thinking it's an iSeries issue but I can't find any data to back me up.

If you have any experience on this, please let me know.

Thanks,
Jeff

Feb 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Thad Rizzi | last post by:
My webserver is an iSeries and I want to run some PHP scripts on it using SQL to access data on the iSeries. Does anyone have any exapmles or resources on the most effective way to do this? I...
4
by: Dave Sisk | last post by:
Hi folks: We have a script containing DDL statements to create tables and indexes, etc. On DB2 for Unix, I'd do a "db2 -tvf script_name.sql -z logfile_name.log", but I don't think that works on...
4
by: erkki | last post by:
Hi, I have to move iSeries library to new DB2 database. Is there any easier way to do this moving operation than exporting all tables in iSeries into text files and then import them into DB2...
1
by: Yanik Reid | last post by:
When I run the following vb.net code, I'm not able to acces the my database AMFLIB. I use to be able to access AMFLIB with the old ODBC driver from IBM iSeries Access but now I want to use the...
17
by: Sulu's Beard | last post by:
Hey gang, I'm evaluating the CA ERWin product for an upcoming data warehousing project. I'm most excited about the reverse engineering aspect of this system. I've sucessfully tested it on a...
0
by: Twan Kennis | last post by:
Hello! I do have the following problem: I've developed a Windows application which communicates with a DB2-database on the iSeries platform using an ODBC-connection string. This...
3
by: Laurence | last post by:
Hi there, Does somebody know the efficent way to connect DB2/400? Through iSeries Access ODBC/OLEDB driver or DB2 Connect? Which will more fast and efficent? In addition, does DB2 Connect use...
2
by: chmmr | last post by:
Hello, I would like to ask if there are any differences between DB2 in these versions (e.g. support of triggers, Java stored procedures and such). Also, does anyone know from which DB2 AS/400...
1
by: Chevylover54 | last post by:
We have been using ODBC connections that are in the registry of the computer. However these connections aren't in by default so when a new user uses the Access program or when a current user goes to...
6
by: Al G | last post by:
Can someone tell me what I need to get connected to our AS400? I am trying to write an app in VS2005(Data source, Gridview) that requires data from files on our AS400. I've downloaded DB2, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.