Results 1 to 2 of 2

Thread: Regarding Passwords

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    Avinashi, TamilNadu, India
    Posts
    20

    Thumbs up

    Hi,
    I'm using Visual Basic 6.0(SP3) with Sql Server 7.0. I'm having a table similar to Master Database's Sysxlogins Table where i'm storing the same username and password from Master's Sysxlogins Table. In Visual Basic, when the user enters the username in a text box i want to
    retrieve the password from that table and store it in a string variable. Here note that the user is not entering the password. The password in table is stored in varbinary datatype. If i retreived the password from table and assigned it to a variable it returns value ike "?]???????". I want the exact password string here for example if the password is "rahul" then i want "rahul" in the string variable. Is it possible?


    Sujatha
    Sujatha

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    I'm not a db person, but...You say that the pass is stored someplace and the user doesn't enter it...can you extract that password somehow? If so..then string it like that.
    Code:
    'This is how you would take the pass out of a text file...i assume you need something similar.
    Private Sub Form_Load()
    Open "test.txt" For Input As #1
        Text1.Text = Input$(LOF(1), 1)
    Close #1
    Dim pass As String
        pass = Text1.Text
        MsgBox pass
    End Sub
    Gl,
    D!m
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width