+ Reply to Thread
Results 1 to 6 of 6

Safe way to refresh many connections without saving the password?

  1. #1
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Safe way to refresh many connections without saving the password?

    I have a report with multiple (say 50) connections (qeries) into several databases. I don't wanna save the password with the connections. This leads to interesting CTRL+V excercise when refreshing all the connections. Is there a way I can avoid both saving and multiple pasting the password? Say a macro, that would prompt for database and password and refresh all connections within given database? Or some other workaround?

    Any help would be appreciated! Thanks

  2. #2
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Safe way to refresh many connections without saving the password?

    Bump no response.

  3. #3
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Safe way to refresh many connections without saving the password?

    Anyone working with many connections?

  4. #4
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Safe way to refresh many connections without saving the password?

    Bump no response. Trying the last time .

  5. #5
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Safe way to refresh many connections without saving the password?

    Yes, you can.
    But i'd need to see a sample sheet in order to code it well to you.

    Basically what you need to do is refresh the querytable connections from VBA and parse the passwords along with them, then password protect your VBA code.

  6. #6
    Forum Contributor
    Join Date
    11-13-2007
    Location
    Prague
    Posts
    145

    Re: Safe way to refresh many connections without saving the password?

    Thanks, JasperD,

    I think I'm not allowed to upload anything from my work. But maybe what you need is only the connnection properties?

    It looks like this:

    Connection name: MyConnection1
    Connection string: Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=MyID1;Data Source=MyDB;Extended Properties=""
    Command type: SQL
    Command text: select * from MyTable1

    And analogically for MyConnection2 - MyConnection50

    Let me know if you meant something else.

    Thanks a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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