Announcement

Collapse
No announcement yet.

Create User ODBC DSN in VB logon script

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Create User ODBC DSN in VB logon script

    Hi there...
    Im looking for a way to create a User DSN in my vb logon script...
    I have searched the net, but did not find anything... Is this possible or not ?

    Best regards,
    Jesper Andersen
    Denmark

  • #2
    Re: Create User ODBC DSN in VB logon script

    You could do it with ODBCConf.exe (although i believe it is now deprecated and editing the registry is recommended):
    Code:
    odbcconf.exe /a {CONFIGDSN "Microsoft Access Driver (*.mdb)" "DSN=Database Name|Description=This is your database|DBQ=C:\User.mdb"}
    Ref: http://www.experts-exchange.com/Prog..._23644891.html

    Hope it helps!
    Caesar's cipher - 3

    ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

    SFX JNRS FC U6 MNGR

    Comment

    Working...
    X