🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1083

Login Prompt not always coming up with AS400

#1083
From: E. Wolowitz
Date: Thu, 18 Nov 2004 20:35
10 lines
1769 bytes
I've been writing a couple simple queries with ADO connecting to an AS400. I'm using an ADOConnection tied thru ODBC and a query linked to the connection. 

I have LoginPrompt set to true and when in design mode it does in fact prompt me. 

I usually set the connection active and then compile. I explicitly set the query to active after the user sets params to build it. When I load the source I do get the login prompt.

What happens is that when the program runs, it does not show a login prompt or when I try to set the connection active at run time it never prompts and errors out with bad user/pass.

The error comes back with "User ID is invalid, Password Length=0, Prompt_mode = PROMPT_NEVER". Now I know why the user and pass is incorrect, but I'm at a loss as to why it says prompt_never. I'm not sure if this Borland, ODBC or the AS400 killing my login prompt. I assume not the AS400 because I get the prompt at design. Anyone have any thoughts? Kinda stumped here.
Technical Details
Message-ID: <419d15b3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,984cd19af1b96f40,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "E. Wolowitz" <ewolowitz@gsrh.org>
Sender: "E. Wolowitz" <ewolowitz@gsrh.org>
Reply-To: "E. Wolowitz" <ewolowitz@gsrh.org>
Subject: Login Prompt not always coming up with AS400
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 69.7.231.121     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <419d15b3$1@newsgroups.borland.com>
Date: 18 Nov 2004 13:35:47 -0700
X-Trace: newsgroups.borland.com 1100813747 207.105.83.66 (18 Nov 2004 13:35:47 -0700)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail