Re: ODBC connection question by Sergey
Sergey
Fri Jul 18 05:52:40 CDT 2008
George Smith wrote:
> I tried
>
> SQLSETPROP(0, 'Displogin', 3)
>
> Sergey, but all it did was change the login dialog to an error
> (password length is 0)
>
> This is all very strange. I can step through the code, and the
> trouble comes at
>
> OPEN DATABASE (odbc_path+'lms_logger')
>
> I can do this at the command prompt with no trouble.
>
> Also, when the program starts it checks to see if an ODBC connection
> exists. If does this by opening the database (exactly as above) and
> creating an empty view - it is looking for a timeout.)
>
> That works fine.
>
> If I change the connection to "Always ask" and start the program, I
> get a different dialog - that doesn't ask for a password, but wants me
> to pick a data source. Click okay and the connection tests out. I
> get the same dialog where the problem is now. In this case, I click
> okay and it then asks for a password.
>
> (And, of course, if I enter a password, it doesn't ask again until the
> user logs off.)
>
> Does this make any sense?
>
>
Hi George,
Are you using created connection in a view or SPT?
--
--sb--
VFP MVP