CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    31

    Validate connections

    Hi.. its me ...again!! =P

    I already open the connection.. but now.. i want to validate the errors..

    anybody could help me with this...?

    Take care



  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Validate connections


    'Something like this?

    'cnn is your adodb.connection
    Dim myErr as ADODB.error

    for Each myErr In cnn.Errors
    Debug.print cnn.myErr.Description
    Debug.print cnn.myErr.NativeError
    Debug.print cnn.myErr.Number
    Debug.print cnn.myErr.Source

    next




    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Aug 2001
    Posts
    31

    Re: Validate connections

    that´s right... !

    but now.. i have this little problem..
    im trying to validate if i want a trusted connection (win nt) or using password and user.. (sql server 7)
    But.. when im working with truste.. i can open the connection,,,, and if i want too use sql... i doesn´t work...

    do u have any ideas?


    take care!
    from monterrey, mexico


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

Featured