How can I programmatically create a DSN?

A. Use the SQLConfigDataSource command. This is documented in the ODBC docs. (For SQL 7.0 this is in the BOL)

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.