+ Reply to Thread
Results 1 to 3 of 3

Can I code the passwords needed for ODBC links to SQLServer

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Can I code the passwords needed for ODBC links to SQLServer

    I use the following code to refresh three separate ODBC links pulling data from a proprietary SQLServer application
    Each link requires that the user enters a long password. It would be much better if my users did not have to do this.
    If I add the line Application.DisplayAlerts = False, the passwords are not needed, but the downloads don't happen either.
    Please Login or Register  to view this content.
    Is it possible for me to enter the password in the code?
    John

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Can I code the passwords needed for ODBC links to SQLServer

    Hi,

    I think that the password would usually be part of the connection string.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,034

    Re: Can I code the passwords needed for ODBC links to SQLServer

    Duplicated thread ... http://www.excelforum.com/excel-prog...sqlserver.html
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can I code the password requirement of an ODBC link from SQLServer?
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2016, 01:08 PM
  2. [SOLVED] Putting passwords in VBA code
    By MissDB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2016, 06:31 AM
  3. What is needed to open an ODBC connection with VBA?
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 06:04 PM
  4. ODBC Links / Query Problems
    By Henry c in forum Excel General
    Replies: 1
    Last Post: 06-06-2011, 06:26 PM
  5. Broken ODBC Links within Excel
    By SSGMiami in forum Excel General
    Replies: 0
    Last Post: 11-08-2007, 04:50 PM
  6. Updating links requires passwords
    By Rasfos in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2007, 10:02 AM
  7. Excel Links with Passwords
    By GThorn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2005, 12:38 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1