locked
Create User DSN with code RRS feed

  • Question

  • Hi all,

    Can one create an ODBC driver on the "User DSN" on the fly?

    I am aiming to create the driver when the user log into the application, and then remove it again when the user closes the application.Thanks

    Deon

    Monday, June 5, 2017 10:43 AM

Answers

  • Just out of curiosity: why do you consider this better than a DSN-less connection?

    -Tom. Microsoft Access MVP

    • Marked as answer by Deon SA Monday, June 5, 2017 1:58 PM
    Monday, June 5, 2017 1:55 PM

All replies

  • The below link should help. I generally use the SQLConfigDataSource API function call:

    http://www.techrepublic.com/article/creating-a-dsn-using-visual-basic/#


    Paul ~~~~ Microsoft MVP (Visual Basic)

    Monday, June 5, 2017 1:41 PM
  • Just out of curiosity: why do you consider this better than a DSN-less connection?

    -Tom. Microsoft Access MVP

    • Marked as answer by Deon SA Monday, June 5, 2017 1:58 PM
    Monday, June 5, 2017 1:55 PM
  • Hi Tom,

    I just read a forum (Stack Overflow) about this and found the solution. Like you are saying, the DSN-less is doing the job.

    Thanks for your assistance.

    Deon

    Monday, June 5, 2017 1:58 PM