Configuring ODBC Data Source

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Configuring ODBC Data Source

    Hi,

    Does anybody knows, how can I configure (add or change) ODBC Data Source
    programmaticaly from ASP (or ASP.NET)?

    Thanx



    RunneR Guest

  2. Similar Questions and Discussions

    1. ODBC driver does not show up in driver list in ODBC data source administrator
      Installed an ODBC driver on a Windows Server 2003 machine. A key shows up in the registry under HKEY_LOCAL_MACHINE- seperate listing under...
    2. Is there a way to work with Unicode database (IBM DB27.2) using ODBC socket data source?
      Is there a way to work with Unicode database (IBM DB2 7.2) using ODBC socket data source? Standard ODBC services shipped with ColdFusion MX 7.0...
    3. ODBC Data Source on Mapped Drive
      We are working on a new web server with CFMX6.1. I am having problems creating an ODBC datasource to an Access database on a network drive. I have...
    4. Problem connecting to ODBC data source from CFAdministrator
      I've set up the data source called vs28718_1 for Windows Authentication but I get the following error in CF Administrator when submitting the data...
    5. How to remove drivers from ODBC Data Source Administrator?
      On my Windows 2000 server there are 2 entries under the System DSN tab of the ODBC Data Source Administrator that refer to 'Adaptive server Anywhere...
  3. #2

    Default Re: Configuring ODBC Data Source

    RunneR wrote:
    > Hi,
    >
    > Does anybody knows, how can I configure (add or change) ODBC Data
    > Source programmaticaly from ASP (or ASP.NET)?
    >
    > Thanx
    Sorry. No, I don't.
    The good news is: you don't need to - you can, and should, use DSNless
    connection strings, preferably using the native OLEDB provider for your
    database. See [url]www.able-consulting.com/data_conn.htm[/url] for examples.

    Bob Barrows


    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

  4. #3

    Default Re: Configuring ODBC Data Source

    This stuff is stored in the registry at HKLM\Software\ODBC\ODBC.INI.
    (System DSNs) So, you could regwrite/read, etc using the commands found
    here.
    [url]http://msdn.microsoft.com/library/en-us/script56/html/wsmthregwrite.asp[/url]

    Why would you want to do this though? I can't help but wonder.

    Ray at work


    "RunneR" <fox_www@mail.ru> wrote in message
    news:3fbd3581$1_1@news.estpak.ee...
    > Hi,
    >
    > Does anybody knows, how can I configure (add or change) ODBC Data Source
    > programmaticaly from ASP (or ASP.NET)?
    >
    > Thanx
    >
    >
    >

    Ray at Guest

  5. #4

    Default Re: Configuring ODBC Data Source

    On Thu, 20 Nov 2003 23:43:28 +0200, "RunneR" <fox_www@mail.ru> wrote:
    >Does anybody knows, how can I configure (add or change) ODBC Data Source
    >programmaticaly from ASP (or ASP.NET)?
    Ugh. (That's for using ODBC in the first place)

    Don't know how it will translate to an ASP or .NET area, but we used
    to distribute an ODBC app by exporting the registry key to a .REG file
    and importing that to create the connection. Might look at writing
    the info directly to the registry key, though that opens up a whole
    'nother can of worms with permissions and such.

    Jeff
    Jeff Cochran Guest

  6. #5

    Default Re: Configuring ODBC Data Source

    Thanx, this works (need just set the permission in reged to allow IIS user
    to change this registru branch).

    Why would I do this? Have a ASP code that is connect to Oracle DB via ODBC
    (yes, maybe ODBC is too old-fashioned, but now we haven' t resources to
    rewrite code). But we have several DB - development and test. So, when
    testers test application - they may just go to wep-page and select what DB
    they want to use.




    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:OyOJ8C7rDHA.684@TK2MSFTNGP09.phx.gbl...
    > This stuff is stored in the registry at HKLM\Software\ODBC\ODBC.INI.
    > (System DSNs) So, you could regwrite/read, etc using the commands found
    > here.
    > [url]http://msdn.microsoft.com/library/en-us/script56/html/wsmthregwrite.asp[/url]
    >
    > Why would you want to do this though? I can't help but wonder.
    >
    > Ray at work
    >
    >
    > "RunneR" <fox_www@mail.ru> wrote in message
    > news:3fbd3581$1_1@news.estpak.ee...
    > > Hi,
    > >
    > > Does anybody knows, how can I configure (add or change) ODBC Data Source
    > > programmaticaly from ASP (or ASP.NET)?
    > >
    > > Thanx
    > >
    > >
    > >
    >
    >

    RunneR Guest

  7. #6

    Default Re: Configuring ODBC Data Source

    Fire the person who didn't include the connection string in one single
    include file, app variable, or anything else that is able to be changes
    site-wide on demand. ;]

    Ray at work

    "RunneR" <fox_www@mail.ru> wrote in message
    news:3fc3c885$1_1@news.estpak.ee...
    > Thanx, this works (need just set the permission in reged to allow IIS user
    > to change this registru branch).
    >
    > Why would I do this? Have a ASP code that is connect to Oracle DB via ODBC
    > (yes, maybe ODBC is too old-fashioned, but now we haven' t resources to
    > rewrite code). But we have several DB - development and test. So, when
    > testers test application - they may just go to wep-page and select what DB
    > they want to use.
    >
    >
    >
    >
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    > news:OyOJ8C7rDHA.684@TK2MSFTNGP09.phx.gbl...
    > > This stuff is stored in the registry at HKLM\Software\ODBC\ODBC.INI.
    > > (System DSNs) So, you could regwrite/read, etc using the commands found
    > > here.
    > > [url]http://msdn.microsoft.com/library/en-us/script56/html/wsmthregwrite.asp[/url]
    > >
    > > Why would you want to do this though? I can't help but wonder.
    > >
    > > Ray at work
    > >
    > >
    > > "RunneR" <fox_www@mail.ru> wrote in message
    > > news:3fbd3581$1_1@news.estpak.ee...
    > > > Hi,
    > > >
    > > > Does anybody knows, how can I configure (add or change) ODBC Data
    Source
    > > > programmaticaly from ASP (or ASP.NET)?
    > > >
    > > > Thanx
    > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Ray at Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139