PRB: User Connection Object Connect Property Remains Populated (177592)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q177592 SYMPTOMS
When a UserConnection object is declared at the global level, the userid
and password stored in the Connect property remains populated after the
connection is closed.
RESOLUTION
To make sure the userid and password in Connect property is cleared after
closing the connection, you can set the user connection object to Nothing
right after closing the connection, such as:
uc.close
SET uc = Nothing
You could also store the initial value of the Connect property to a
variable, and replace the Connect property with that value after the
connection is closed, such as the following:
Dim myConnect As String
myConnect = uc.Connect
uc.EstablishConnection
uc.Close
uc.Connect = myConnect
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
REFERENCES
For additional information about User Connection Designer, please see the
following article in the Microsoft Knowledge Base:
166281 HOWTO: Create and Implement a UserConnection
(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by Adrian Chiang, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB177592 |
---|
|